// /home/trung/work/AgMission/branches/satloc-resume/server/scripts/README.md # Subscription Management Scripts Scripts for managing addon subscription pausing and resuming via Stripe. ## Prerequisites - Node.js installed - `stripe` and `dotenv` packages (already in project dependencies) ## Scripts ### pause_addon_subs.js Pauses all active addon_1 subscriptions with optional auto-resume date. ```bash # Basic usage (uses ./environment.env) node scripts/pause_addon_subs.js # With production environment node scripts/pause_addon_subs.js --env [environment_prod.env](http://_vscodecontentref_/1) # Preview changes without applying node scripts/pause_addon_subs.js --dry-run # Set auto-resume date node scripts/pause_addon_subs.js --resume-date 2026-03-01 # Full example node scripts/pause_addon_subs.js \ --env [environment_prod.env](http://_vscodecontentref_/2) \ --resume-date 2026-03-01 \ --reason "addon_launch_promo"