Skip to content

feat(cli): launch hosted starters from bootstrap CLI-3395 - #7962

Draft
jordienr wants to merge 6 commits into
developfrom
jordi/cli-3395-hosted-bootstrap
Draft

jordienr wants to merge 6 commits into
developfrom
jordi/cli-3395-hosted-bootstrap

Conversation

@jordienr

@jordienr jordienr commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Problem

Bootstrap can create a project from a starter, but users still have to deploy hosted services themselves. Users with an existing Compute-enabled project also need a way to install the starter there.

Fix

Allow catalog entries to declare a hosted Compute service, Storage buckets, migrations, and readiness and launch paths. Bootstrap selects a target, stages the starter in a temporary directory, confirms the hosted changes, deploys the named service, waits for HTTP readiness, and returns its URL. Interactive runs open the app in the browser. A local receipt lets a repeat invocation resume or reopen the installation. Existing catalog entries keep their scaffold workflow. With no template argument the picker now precedes the destination prompt, so hosted entries can skip that prompt altogether.

How to test

  • Run the Bootstrap integration suite from apps/cli with pnpm test:integration:run src/commands/bootstrap. The suite supplies a generic hosted starter and simulates the platform API.
  • For a hosted catalog entry, run supabase bootstrap <template> --remote=<project-ref> twice from the same directory. The first run should provision the service. The second should reopen the ready app. The template owns its sign-in flow.
  • Run an ordinary starter through Bootstrap and verify it still offers its local start command.

QA

  • Exercised the CLI entrypoint with isolated credentials and simulated GitHub, Compute, upload and application endpoints. First launch uploaded one build context, deployed the service and checked readiness. Reopen performed only reads. Both JSON output modes produced parseable results.
  • Verified PostgreSQL 14 migration application, unchanged unrelated history, repeat application, changed-file refusal, rollback on failure and successful retry against a disposable local database.
  • 543 local tests passed across Bootstrap, Compute, project creation, command structure and permission mapping. Branch-target QA verified deployment and reopen against the canonical branch project while preserving the original checkout link. The CLI type check, formatting, lint, binary build and 80/120-column help checks also passed. No live Supabase project was provisioned during QA.

CLI-3395

@jordienr jordienr added the run-ci Run full develop CI (tests) on drafts and non-develop PRs. label Dec 4, 2026
@blacksmith-sh

This comment has been minimized.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci Run full develop CI (tests) on drafts and non-develop PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant