The bootstrap command scaffolds a new application from a Neon starter template. By default it runs interactively: it prompts you to pick a template, scaffolds it into the target directory, then offers the usual setup steps (install dependencies, initialize git, link the directory to a Neon project). Requires neon 2.25.0 or later; check your version with neon --version.
Usage
neon bootstrap [directory] [options]The directory argument is optional. Use . to scaffold into the current directory, or leave it out and bootstrap prompts you for one. The target directory must be empty unless you pass --force.
Options
Run with --list-templates to see the available templates, and pass one with --template to skip the interactive picker.
The post-scaffold steps (--install, --git, --link) all default to on. In interactive mode, bootstrap asks about each one; use the negated form (--no-install, --no-git, --no-link) to skip a step without being asked. With --link, bootstrap runs neon link in the scaffolded directory after installing.
Use --default (alias -y) for a quick start: it scaffolds the default template (or the one you pass with --template) and runs dependency install and git init without prompting. Linking is left to you, since it needs a project choice.
Examples
Create ./my-app from an interactively chosen template:
neon bootstrap my-appScaffold a specific template into the current directory:
neon bootstrap . --template honoQuick start: scaffold the default template and run setup without prompting:
neon bootstrap my-app --defaultAgent mode
Pass --agent to skip the prompts and emit a JSON state-machine response designed for AI agents. The output is a single JSON object with a discriminated status field describing the next step.
neon bootstrap my-app --template hono --agent







