Hono
Scaffold a Hono API via the official create-hono CLI
Primary commands
bash
npx scafix create hono
npx scafix create hono --template cloudflare-workers
npx scafix create hono --directory services/edge-api --package-manager bunSupported customizations
| Option | CLI flags | Type / values | Default | Notes |
|---|---|---|---|---|
| Runtime template | --template <template> | nodejs Node.jsbun Buncloudflare-workers Cloudflare Workersvercel Vercel | nodejs | Choose the Hono runtime target. |
--yes defaults
| Key | value |
|---|---|
| template | nodejs |
Notes
- Scafix passes your selected package manager through to the official Hono CLI via
--pm. - The runtime template and package manager are both chosen before the scaffold runs, so the generated project is aligned with the selected deployment target from the start.
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.
