2025-03-14 21:59:59 -06:00
|
|
|
# nest
|
|
|
|
|
|
|
|
|
|
> Initialize, develop, and maintain Nest applications.
|
|
|
|
|
> More information: <https://docs.nestjs.com/cli/overview>.
|
|
|
|
|
|
|
|
|
|
- Display information about installed nest version:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`nest {{[i|info]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Create a new NestJS project interactively:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`nest {{[n|new]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Create a new NestJS project without prompting:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`nest {{[n|new]}} {{project_name}} {{[-p|--package-manager]}} {{npm|yarn|pnpm}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Build the NestJS project in the current working directory:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`nest build`
|
|
|
|
|
|
|
|
|
|
- Run the NestJS project in the current working directory:
|
|
|
|
|
|
|
|
|
|
`nest start`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Import a library into the current NestJS project:
|
|
|
|
|
|
|
|
|
|
`nest add {{library_name}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Generate a new component:
|
|
|
|
|
|
|
|
|
|
`nest {{[g|generate]}} {{module|controller|service|...}} {{component_name}}`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`nest`
|