nest generate service <service>

Generate a service declaration

Arguments

NameDescription
serviceThe name of the service

Options

NameDescription
-d, --dry-runReport actions that would be taken without writing out results
-p, --project <project>Project in which to generate files
--flatEnforce flat structure of generated element
--specEnforce spec files generation (default: true)
--no-specDisable spec files generation
-c, --collection <collection>Schematics collection to use