mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
42 lines
852 B
Plaintext
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`
|