In order to help people manage their projects, the CLI tool has been created. It helps on many grounds at once, from scaffolding the project to build well-structured applications. The Nest CLI is based on the @angular-devkit package. Also, there're special schematics that are dedicated to the Nest development @nestjs/schematics.
It has to be installed @angular-devkit/schematics-cli
package:
npm install -g @angular-devkit/schematics-cli
npm install -g @kalacs/schematics
schematics @kalacs/schematics:rest_module --no-dry-run --spec --language="ts" --sourceRoot="src" --name="cat" --attributes='name:string:Min(10, 20);age:number:IsUUID('3'):Max(20);breed:string:IsUUID("1")'
- move common components (eg. PaginationInterceptor) to separate repository
- make database service selectable
- make swagger module optional
- CLI Author - Thomas Ricart and Kamil Mysliwiec
- Website - https://nestjs.com
- Twitter - @nestframework