Files
cheatsheet-tldr/tldr/nest
2025-11-23 00:23:40 +00:00

42 lines
852 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# nest
> Initialize, develop, and maintain Nest applications.
> More information: <https://docs.nestjs.com/cli/overview>.
- Display information about installed nest version:
`nest {{[i|info]}}`
- Create a new NestJS project interactively:
`nest {{[n|new]}}`
- Create a new NestJS project without prompting:
`nest {{[n|new]}} {{project_name}} {{[-p|--package-manager]}} {{npm|yarn|pnpm}}`
- Build the NestJS project in the current working directory:
`nest build`
- Run the NestJS project in the current working directory:
`nest start`
- Import a library into the current NestJS project:
`nest add {{library_name}}`
- Generate a new component:
`nest {{[g|generate]}} {{module|controller|service|...}} {{component_name}}`
- Display help:
`nest`