@nest-extended/cli
The command-line tool that scaffolds NestJS apps and resources following the nest-extended
conventions. It installs the nest-cli binary.
$npm install -g @nest-extended/cli
Commands
| Command | Alias | Purpose |
|---|---|---|
nest-cli generate app <name> | g app | Scaffold a complete NestJS app |
nest-cli generate service <name> | g service | Generate a CRUD resource bundle |
nest-cli generate auth | g auth | Add an auth + users module |
nest-cli migration run | m run | Run version migration scripts |
Quick start
# scaffold an app
nest-cli g app my-api --db PostgreSQL --orm prisma --validator zod --pm npm --auth
# add resources
cd my-api
nest-cli g service product
nest-cli g service order/itemSee the full CLI Reference for every flag, the generated file layout and the name-transformation rules.