nest generate resource <resource>
Generate a new CRUD resource
Arguments
Name | Description |
---|---|
resource | The name of the resource |
Options
Name | Description |
---|---|
-d, --dry-run | Report actions that would be taken without writing out results |
-p, --project <project> | Project in which to generate files |
--flat | Enforce flat structure of generated element |
--spec | Enforce spec files generation (default: true) |
--no-spec | Disable spec files generation |
-c, --collection <collection> | Schematics collection to use |