Astro
Scaffold an Astro project via the official create astro CLI
Primary commands
bash
npx scafix create astro
npx scafix create astro --template blog --package-manager pnpm
npx scafix create astro --template docs --name docs-siteSupported customizations
| Option | CLI flags | Type / values | Default | Notes |
|---|---|---|---|---|
| Template | --template <template> | minimal Minimalblog Blogdocs Docs | minimal | Select the official Astro starter template. |
--yes defaults
| Key | value |
|---|---|
| template | minimal |
Notes
- Scafix asks the official Astro CLI to install dependencies during scaffolding.
- Astro's upstream git initialization is disabled so the shared Scafix
--gitflow remains the single owner of repository setup.
Shared flow reminder
- Shared flags such as
--name,--directory,--package-manager,--git, and--debugapply here as well. - If required values are omitted and a TTY is available, Scafix prompts for them before calling the stack adapter.
- See CLI Reference for the shared command surface used by
scafix.
