Skip to content

NestJS

Scaffold a NestJS API via the official Nest CLI

Primary commands

bash
npx scafix create nest
npx scafix create nest --name api-core --package-manager pnpm
npx scafix create nest --no-typescript --no-strict

Supported customizations

OptionCLI flagsType / valuesDefaultNotes
Language--typescript
--no-typescript
ts TypeScript
js JavaScript
tsChoose a TypeScript or JavaScript Nest scaffold.
Strict mode--strict
--no-strict
booleantrueEnable strict TypeScript compiler options.

--yes defaults

Keyvalue
languagets
stricttrue

Notes

  • The upstream Nest CLI does not scaffold with Bun directly. When you choose --package-manager bun, Scafix uses npm for the scaffold step and then installs project dependencies with Bun afterward.

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.