nest generate
Generate and/or modifies files based on a schematic
Subcommands
Name | Description |
---|---|
application | Generate a new application workspace |
class, cl | Generate a new class |
configuration, config | Generate a CLI configuration file |
controller, co | Generate a controller declaration |
decorator, d | Generate a custom decorator |
filter, f | Generate a filter declaration |
gateway, ga | Generate a gateway declaration |
guard, gu | Generate a guard declaration |
interceptor, in | Generate an interceptor declaration |
interface | Generate an interface |
middleware, mi | Generate a middleware declaration |
module, mo | Generate a module declaration |
pipe, p | Generate a pipe declaration |
provider, pr | Generate a provider declaration |
resolver, r | Generate a GraphQL resolver declaration |
service, s | Generate a service declaration |
library, lib | Generate a new library within a monorepo |
sub-app, app | Generate a new application within a monorepo |
resource, res | Generate a new CRUD resource |