CLI command reference
nest new
Creates a new (standard mode) Nest project.
Description
Creates and initializes a new Nest project. Prompts for package manager.
- Creates a folder with the given
<name> - Populates the folder with configuration files
- Creates sub-folders for source code (
/src) and end-to-end tests (/test) - Populates the sub-folders with default files for app components and tests
Arguments
Options
nest generate
Generates and/or modifies files based on a schematic
Arguments
Schematics
Options
nest build
Compiles an application or workspace into an output folder.
Also, the build command is responsible for:
- mapping paths (if using path aliases) via
tsconfig-paths - annotating DTOs with OpenAPI decorators (if
@nestjs/swaggerCLI plugin is enabled) - annotating DTOs with GraphQL decorators (if
@nestjs/graphqlCLI plugin is enabled)
Arguments
Options
nest start
Compiles and runs an application (or default project in a workspace).
Arguments
Options
nest add
Imports a library that has been packaged as a nest library, running its install schematic.
Arguments
nest info
Displays information about installed nest packages and other helpful system info. For example:

