nest generate

Generate and/or modifies files based on a schematic

Subcommands

NameDescription
applicationGenerate a new application workspace
class, clGenerate a new class
configuration, configGenerate a CLI configuration file
controller, coGenerate a controller declaration
decorator, dGenerate a custom decorator
filter, fGenerate a filter declaration
gateway, gaGenerate a gateway declaration
guard, guGenerate a guard declaration
interceptor, inGenerate an interceptor declaration
interfaceGenerate an interface
middleware, miGenerate a middleware declaration
module, moGenerate a module declaration
pipe, pGenerate a pipe declaration
provider, prGenerate a provider declaration
resolver, rGenerate a GraphQL resolver declaration
service, sGenerate a service declaration
library, libGenerate a new library within a monorepo
sub-app, appGenerate a new application within a monorepo
resource, resGenerate a new CRUD resource