Skip to content

Commit 0611f0b

Browse files
committed
docs(cli): clarify on what 'nest build' does
1 parent f966702 commit 0611f0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/cli/usages.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ $ nest g <schematic> <name> [options]
8989

9090
Compiles an application or workspace into an output folder.
9191

92+
Also, the `build` command is responsible for:
93+
94+
- mapping paths (if using path aliases) via `tsconfig-paths`
95+
- annotating DTOs with OpenAPI decorators (if `@nestjs/swagger` CLI plugin is enabled)
96+
- annotating DTOs with GraphQL decorators (if `@nestjs/graphql` CLI plugin is enabled)
97+
9298
```bash
9399
$ nest build <name> [options]
94100
```

0 commit comments

Comments
 (0)