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-strictSupported customizations
| Option | CLI flags | Type / values | Default | Notes |
|---|---|---|---|---|
| Language | --typescript--no-typescript | ts TypeScriptjs JavaScript | ts | Choose a TypeScript or JavaScript Nest scaffold. |
| Strict mode | --strict--no-strict | boolean | true | Enable strict TypeScript compiler options. |
--yes defaults
| Key | value |
|---|---|
| language | ts |
| strict | true |
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--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.
