Skip to content

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 bun

Supported customizations

OptionCLI flagsType / valuesDefaultNotes
Runtime template--template <template>nodejs Node.js
bun Bun
cloudflare-workers Cloudflare Workers
vercel Vercel
nodejsChoose the Hono runtime target.

--yes defaults

Keyvalue
templatenodejs

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 --debug apply 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.

Released under the MIT License.