Skip to content

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.

ScriptPurposeDetail
scripts/init-sandbox-hub-tfvars.mjsBuild 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.shCheck Pages queue bindings, hub-jobs token, queue consumers, signup status blockers.sandbox-provision-chain.md
scripts/deploy-sandbox-lovely-home.shDeploy 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.shDeploy a single hub Pages project (e.g. test-sandbox2) from current branch.sandbox-ai-hub-creation-qa.md
scripts/reset-hub-guide-ai-qa.mjsClear house guide D1 + AI one-shot flag; optional --reopen-wizard.sandbox-ai-hub-creation-qa.md
scripts/deprovision-hub-site.mjsArchive + Terraform destroy + Worker delete after site removed from registry (CI or local).platform-provision.md
scripts/billing-deprovision-hub-site.mjsBilling-aligned teardown (Stripe cancel path); local emergency only.ops-deprovision-stripe-test-hubs.md
scripts/purge-platform-site-for-reuse.mjsRemove platform billing D1 rows after deprovision (reuse slug); does not destroy Cloudflare.ops-deprovision-stripe-test-hubs.md
scripts/platform-site-manage.mjsWizard-driven registry PRs (create / update / delete). Delete opens PR → CI deprovision.platform-admin.md