mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 06:45:49 +00:00
38 lines
737 B
Plaintext
38 lines
737 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 in a directory of the same name:
|
|
|
|
`nest {{[n|new]}} {{project_name}}`
|
|
|
|
- Build a specific NestJS project:
|
|
|
|
`nest build {{project_name}}`
|
|
|
|
- Run a specific NestJS project:
|
|
|
|
`nest start {{project_name}}`
|
|
|
|
- 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`
|