Back to technologies
/nest
NestJS command reference
Common NestJS CLI commands for bootstrapping and code generation.
12 matches
Project Setup
4 commands
nest new project-nameCreate a new NestJS project.
nest buildCompile the application for production.
nest start --watchRun the app in watch mode for development.
nest infoDisplay CLI and environment information.
Generate Resources
4 commands
nest g module usersGenerate a new NestJS module.
nest g service usersGenerate a service class for business logic.
nest g controller usersGenerate a controller for HTTP routes.
nest g resource authGenerate a full CRUD resource scaffold.
Note: Useful when starting REST endpoints quickly.
Testing & Debugging
4 commands
pnpm testRun the unit test suite.
pnpm test:e2eRun end-to-end tests.
pnpm lintCheck the project for lint issues.
node --inspect-brk dist/main.jsLaunch the built app with the Node debugger attached.