Sandbox & QA — scripts index
One-line reference for operator scripts used with platform-sandbox, per-hub sandbox sites, and QA. Detail lives in the linked runbooks.
| Script | Purpose | Detail |
|---|---|---|
scripts/init-sandbox-hub-tfvars.mjs | Build gitignored sandbox-hub.tfvars from prod hub.tfvars + sandbox overrides (including manage_hub_queue_consumers = true). | sandbox-hub-quickstart.md |
scripts/verify-sandbox-provision-chain.sh | Check Pages queue bindings, hub-jobs token, queue consumers, signup status blockers. | sandbox-provision-chain.md |
scripts/deploy-sandbox-lovely-home.sh | Deploy marketing-sandbox + platform-sandbox Pages (sets sandbox manifest filter). After deploy it polls marketing-sandbox…/version.json for up to 3 min until it serves the new version, because Cloudflare switches the custom domain a few seconds after wrangler returns (#1565). | sandbox-hub-quickstart.md |
scripts/deploy-cloudflare-pages-site.sh | Deploy a single hub Pages project (e.g. test-sandbox2) from current branch. | sandbox-ai-hub-creation-qa.md |
scripts/reset-hub-guide-ai-qa.mjs | Clear house guide D1 + AI one-shot flag; optional --reopen-wizard. | sandbox-ai-hub-creation-qa.md |
scripts/deprovision-hub-site.mjs | Archive + Terraform destroy + Worker delete after site removed from registry (CI or local). | platform-provision.md |
scripts/billing-deprovision-hub-site.mjs | Billing-aligned teardown (Stripe cancel path); local emergency only. | ops-deprovision-stripe-test-hubs.md |
scripts/purge-platform-site-for-reuse.mjs | Remove platform billing D1 rows after deprovision (reuse slug); does not destroy Cloudflare. | ops-deprovision-stripe-test-hubs.md |
scripts/platform-site-manage.mjs | Wizard-driven registry PRs (create / update / delete). Delete opens PR → CI deprovision. | platform-admin.md |
Related runbooks
- sandbox-hub-quickstart.md — Terraform + first deploy
- sandbox-provision-chain.md — Stripe → queues → GitHub
- sandbox-ai-hub-creation-qa.md — Workers AI wizard QA
- sandbox-promotion-model.md — feature → sandbox → main
- ops-deprovision-stripe-test-hubs.md — Path A/B teardown (Stripe test hubs on prod platform)