For a new project whose service choices need review before setup.
Install and check your version Browse the documentation
1. Inspect the available templates
Check your installed help and list templates first. The source command's JSON output describes template names, service providers, secret slot names and MCP declarations. These are configuration declarations, not credentials or evidence of provisioned resources.
The nextjs-supabase-posthog template declares Supabase and PostHog services with dev and prod environments. Its name does not mean Stack generates a Next.js application; the template is a TOML service definition.
stack templates --help
stack templates list --json Sources: Template listing implementation Starter service definition
2. Write configuration without provisioning
In a fresh project directory, use --noProvision to write the selected configuration without entering the provider setup loop. This operation still writes local files. It is not a no-write preview.
Stack splits service shape into .stack.toml and instance data into .stack.local.toml, adds the local file to .gitignore, and attempts to register the project in the local ~/.stack registry. Existing configuration is protected unless --force is supplied. Keep --force out of an exploratory workflow.
stack init --template nextjs-supabase-posthog --noProvision Sources: Init write and provisioning branches Split configuration writer
3. Review the service boundary
Inspect the declared services and secret slot names in .stack.toml. The starter's resource identifiers are not populated by --noProvision, and an MCP declaration does not show that an editor has loaded a working connection.
Before setup, review provider access, costs and the Phantom Secrets requirements. Stack's source and public packages can differ, so verify the commands supported by the version you installed.
Sources: Unprovisioned starter entries Credentials, costs and installation MCP configuration limits
4. Choose a setup workflow deliberately
Template init without --noProvision attempts provider setup. Separately, templates apply runs setup for eligible entries but skips services already present in the configuration. Do not assume that applying a template after a config-only init will provision every declared service.
Use the templates and stack add references to choose the next action for your project. Review partial results and reported failures individually before treating the project as ready.
Sources: Template init behavior Apply skip and failure handling Service setup guide