1.0.10 • Published 9 months ago

nest-generate v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

All Options:

USAGE

 npx nest-generate <OPTIONS> <name>

ARGUMENTS

 <name>      Name of the model or module      required      

OPTIONS

 -a                         Generate all (Module + Controller + Service + Interface + Schema)                                                          optional      default: false
 --all                      Generate all (Module + Controller + Service + Interface + Schema)                                                          optional      default: false
 -m                         Generate a Module                                                                                                          optional      default: false
 --module                   Generate a Module                                                                                                          optional      default: false
 --sch                      Generate a Schema for the model                                                                                            optional      default: false
 --schema                   Generate a Schema for the model                                                                                            optional      default: false
 --schema-class <name>      Specify a custom class name for the schema                                                                                 optional                    
 --schema-dir <dir>         Specify a subdirectory to put the Schema in (ie. 'schema')                                                                 optional                    
 -c                         Generate a Controller for the model                                                                                        optional      default: false
 --controller               Generate a Controller for the model                                                                                        optional      default: false
 -s                         Generate a Service for the model                                                                                           optional      default: false
 --service                  Generate a Service for the model                                                                                           optional      default: false
 -d                         Generate dtos for the model                                                                                                optional      default: false
 --dto                      Generate dtos for the model                                                                                                optional      default: false
 --crud                     Generates CRUD actions within the Controller and Service                                                                   optional      default: false
 -i                         Generate a Interface                                                                                                       optional      default: false
 --interface                Generate a Interface                                                                                                       optional      default: false
 --old                      Generate a Schema and interface for the model with old nest version                                                        optional      default: false
 -p <prefix>                Specify root/prefix dir to generate in                                                                                     optional                    
 --prefix <prefix>          Specify root/prefix dir to generate in                                                                                     optional                    
 --auth <name>              CRUD actions will add authentication guards, requiring a logged in user. Name of a custom @(Guard<name>) class to use      optional                    
 --no-subdir                Don't put generated files in <name> subdirectory (only if not using a module)                                              optional      default: false
 --casing <pascal>          default = "example.controller.ts", pascal = "ExampleController.ts"                                                         optional                    

GLOBAL OPTIONS

 -h, --help         Display help                                      
 -V, --version      Display version                                   
 --no-color         Disable colors                                    
 --quiet            Quiet mode - only displays warn and error messages
 -v, --verbose      Verbose mode - will also output debug messages  
1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago