nest-cli
A progressive Node.js framework for building efficient and scalable server-side applications 🚀
| Type | object |
|---|---|
| File match |
.nestcli.json
.nest-cli.json
nest-cli.json
nest.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/nest-cli/latest.json |
| Source | https://www.schemastore.org/nest-cli.json |
Validate with Lintel
npx @lintel/lintel check
Properties
Points at the collection of schematics used to generate components. you generally should not change this value.
Points at the root of the source code for the single project in standard mode structures, or the default project in monorepo mode structures.
The entry file where 'nest start' work with. Default to 'main'.
(monorepo only) For a monorepo mode structure, this value is always true.
(monorepo only) Points at the project root of the default project.
A map with keys specifying compiler options and values specifying the option setting. See https://docs.nestjs.com/cli/monorepo#global-compiler-options for details
{}
10 nested properties
(monorepo only) Points at the file containing the tsconfig.json settings that will be used when nest build or nest start is called without a project option (e.g., when the default project is built or started). 'nest build' will not work as expected without this file.
If true, enable type checking (when SWC is used). See https://docs.nestjs.com/recipes/swc#type-checking for details.
If true, use webpack compiler (deprecated option, use builder instead). If false or not present, use tsc. In monorepo mode, the default is true (use webpack), in standard mode, the default is false (use tsc). See https://docs.nestjs.com/cli/monorepo#cli-properties for details.
Points at a webpack options file. If not specified, Nest looks for the file webpack.config.js.
[]
Enables automatically distributing non-TypeScript assets whenever a compilation step begins (asset distribution does not happen on incremental compiles in --watch mode). Accept glob-like string and object. See https://docs.nestjs.com/cli/monorepo#assets for details.
[]
If true, run in watch-mode, watching all non-TypeScript assets. Setting watchAssets in a top-level compilerOptions property overrides any watchAssets settings within the assets property.
If true, whenever the compiler is invoked, it will first remove the compilation output directory (as configured in tsconfig.json, where the default is ./dist).
If true, enables the shortcut rs to manually restart the server.
A map with keys specifying global generate options and values specifying the option setting. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details
{}
3 nested properties
If the value is boolean, a value of true enables spec generation by default and a value of false disables it. A flag passed on the CLI command line overrides this setting, as does a project-specific generateOptions setting (more below). If the value is an object, each key represents a schematic name, and the boolean value determines whether the default spec generation is enabled / disabled for that specific schematic. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details.
36 nested properties
Generate spec file for application schematics or not.
Disable spec file generation for class schematics.
Alias for class
Generate spec file for configuration schematics or not.
Alias for configuration
Generate spec file for controller schematics or not.
Alias for controller
Generate spec file for decorator schematics or not.
Alias for decorator
Generate spec file for filter schematics or not.
Alias for filter
Generate spec file for gateway schematics or not.
Alias for gateway
Generate spec file for guard schematics or not.
Alias for guard
Generate spec file for interceptor schematics or not.
Alias for interceptor
Generate spec file for interface schematics or not.
Generate spec file for middleware schematics or not.
Alias for middleware
Generate spec file for module schematics or not.
Alias for module
Generate spec file for pipe schematics or not.
Alias for pipe
Generate spec file for provider schematics or not.
Alias for provider
Generate spec file for resolver schematics or not.
Alias for resolver
Generate spec file for service schematics or not.
Alias for resolver
Generate spec file for library schematics or not.
Alias for library
Generate spec file for sub-app schematics or not.
Alias for sub-app
Generate spec file for resource schematics or not.
Alias for resource
If true, all generate commands will generate a flat structure
Base directory
{}
Default import prefix for newly generated libraries.
Definitions
A map with keys specifying compiler options and values specifying the option setting. See https://docs.nestjs.com/cli/monorepo#global-compiler-options for details
(monorepo only) Points at the file containing the tsconfig.json settings that will be used when nest build or nest start is called without a project option (e.g., when the default project is built or started). 'nest build' will not work as expected without this file.
If true, enable type checking (when SWC is used). See https://docs.nestjs.com/recipes/swc#type-checking for details.
If true, use webpack compiler (deprecated option, use builder instead). If false or not present, use tsc. In monorepo mode, the default is true (use webpack), in standard mode, the default is false (use tsc). See https://docs.nestjs.com/cli/monorepo#cli-properties for details.
Points at a webpack options file. If not specified, Nest looks for the file webpack.config.js.
[]
Enables automatically distributing non-TypeScript assets whenever a compilation step begins (asset distribution does not happen on incremental compiles in --watch mode). Accept glob-like string and object. See https://docs.nestjs.com/cli/monorepo#assets for details.
[]
If true, run in watch-mode, watching all non-TypeScript assets. Setting watchAssets in a top-level compilerOptions property overrides any watchAssets settings within the assets property.
If true, whenever the compiler is invoked, it will first remove the compilation output directory (as configured in tsconfig.json, where the default is ./dist).
If true, enables the shortcut rs to manually restart the server.
For finer control, the element can be object.
Glob-like file specifications for the assets to be distributed.
Glob-like file specifications for the assets to be excluded from the include list.
A string specifying the path (relative to the root folder) where the assets should be distributed. Defaults to the same output directory configured for compiler output.
If true, run in watch mode watching specified assets. Setting watchAssets in a top-level compilerOptions property overrides any watchAssets settings within the assets property.
A map with keys specifying global generate options and values specifying the option setting. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details
If the value is boolean, a value of true enables spec generation by default and a value of false disables it. A flag passed on the CLI command line overrides this setting, as does a project-specific generateOptions setting (more below). If the value is an object, each key represents a schematic name, and the boolean value determines whether the default spec generation is enabled / disabled for that specific schematic. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details.
36 nested properties
Generate spec file for application schematics or not.
Disable spec file generation for class schematics.
Alias for class
Generate spec file for configuration schematics or not.
Alias for configuration
Generate spec file for controller schematics or not.
Alias for controller
Generate spec file for decorator schematics or not.
Alias for decorator
Generate spec file for filter schematics or not.
Alias for filter
Generate spec file for gateway schematics or not.
Alias for gateway
Generate spec file for guard schematics or not.
Alias for guard
Generate spec file for interceptor schematics or not.
Alias for interceptor
Generate spec file for interface schematics or not.
Generate spec file for middleware schematics or not.
Alias for middleware
Generate spec file for module schematics or not.
Alias for module
Generate spec file for pipe schematics or not.
Alias for pipe
Generate spec file for provider schematics or not.
Alias for provider
Generate spec file for resolver schematics or not.
Alias for resolver
Generate spec file for service schematics or not.
Alias for resolver
Generate spec file for library schematics or not.
Alias for library
Generate spec file for sub-app schematics or not.
Alias for sub-app
Generate spec file for resource schematics or not.
Alias for resource
If true, all generate commands will generate a flat structure
Base directory
If true, all generate commands will generate a flat structure
If the value is boolean, a value of true enables spec generation by default and a value of false disables it. A flag passed on the CLI command line overrides this setting, as does a project-specific generateOptions setting (more below). If the value is an object, each key represents a schematic name, and the boolean value determines whether the default spec generation is enabled / disabled for that specific schematic. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details.
Generate spec file for application schematics or not.
Disable spec file generation for class schematics.
Alias for class
Generate spec file for configuration schematics or not.
Alias for configuration
Generate spec file for controller schematics or not.
Alias for controller
Generate spec file for decorator schematics or not.
Alias for decorator
Generate spec file for filter schematics or not.
Alias for filter
Generate spec file for gateway schematics or not.
Alias for gateway
Generate spec file for guard schematics or not.
Alias for guard
Generate spec file for interceptor schematics or not.
Alias for interceptor
Generate spec file for interface schematics or not.
Generate spec file for middleware schematics or not.
Alias for middleware
Generate spec file for module schematics or not.
Alias for module
Generate spec file for pipe schematics or not.
Alias for pipe
Generate spec file for provider schematics or not.
Alias for provider
Generate spec file for resolver schematics or not.
Alias for resolver
Generate spec file for service schematics or not.
Alias for resolver
Generate spec file for library schematics or not.
Alias for library
Generate spec file for sub-app schematics or not.
Alias for sub-app
Generate spec file for resource schematics or not.
Alias for resource
Base directory
A map with keys specifying compiler options and values specifying the option setting. See https://docs.nestjs.com/cli/monorepo#global-compiler-options for details
{}
10 nested properties
(monorepo only) Points at the file containing the tsconfig.json settings that will be used when nest build or nest start is called without a project option (e.g., when the default project is built or started). 'nest build' will not work as expected without this file.
If true, enable type checking (when SWC is used). See https://docs.nestjs.com/recipes/swc#type-checking for details.
If true, use webpack compiler (deprecated option, use builder instead). If false or not present, use tsc. In monorepo mode, the default is true (use webpack), in standard mode, the default is false (use tsc). See https://docs.nestjs.com/cli/monorepo#cli-properties for details.
Points at a webpack options file. If not specified, Nest looks for the file webpack.config.js.
[]
Enables automatically distributing non-TypeScript assets whenever a compilation step begins (asset distribution does not happen on incremental compiles in --watch mode). Accept glob-like string and object. See https://docs.nestjs.com/cli/monorepo#assets for details.
[]
If true, run in watch-mode, watching all non-TypeScript assets. Setting watchAssets in a top-level compilerOptions property overrides any watchAssets settings within the assets property.
If true, whenever the compiler is invoked, it will first remove the compilation output directory (as configured in tsconfig.json, where the default is ./dist).
If true, enables the shortcut rs to manually restart the server.
A map with keys specifying global generate options and values specifying the option setting. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details
{}
3 nested properties
If the value is boolean, a value of true enables spec generation by default and a value of false disables it. A flag passed on the CLI command line overrides this setting, as does a project-specific generateOptions setting (more below). If the value is an object, each key represents a schematic name, and the boolean value determines whether the default spec generation is enabled / disabled for that specific schematic. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details.
36 nested properties
Generate spec file for application schematics or not.
Disable spec file generation for class schematics.
Alias for class
Generate spec file for configuration schematics or not.
Alias for configuration
Generate spec file for controller schematics or not.
Alias for controller
Generate spec file for decorator schematics or not.
Alias for decorator
Generate spec file for filter schematics or not.
Alias for filter
Generate spec file for gateway schematics or not.
Alias for gateway
Generate spec file for guard schematics or not.
Alias for guard
Generate spec file for interceptor schematics or not.
Alias for interceptor
Generate spec file for interface schematics or not.
Generate spec file for middleware schematics or not.
Alias for middleware
Generate spec file for module schematics or not.
Alias for module
Generate spec file for pipe schematics or not.
Alias for pipe
Generate spec file for provider schematics or not.
Alias for provider
Generate spec file for resolver schematics or not.
Alias for resolver
Generate spec file for service schematics or not.
Alias for resolver
Generate spec file for library schematics or not.
Alias for library
Generate spec file for sub-app schematics or not.
Alias for sub-app
Generate spec file for resource schematics or not.
Alias for resource
If true, all generate commands will generate a flat structure
Base directory
The npm package name of the cli plugin, eg @nestjs/swagger.
If set to true, plugin will generate descriptions and example values for properties based on comments.
(GraphQL Only) GraphQL types files suffix. Default value: ['.input.ts', '.args.ts', '.entity.ts', '.model.ts']. See https://docs.nestjs.com/graphql/cli-plugin#using-the-cli-plugin for details.
[
".input.ts",
".args.ts",
".entity.ts",
".model.ts"
]
(Swagger Only) DTO (Data Transfer Object) files suffix. Default value: ['.dto.ts', '.entity.ts']. See https://docs.nestjs.com/openapi/cli-plugin#using-the-cli-plugin for details
[
".dto.ts",
".entity.ts"
]
(Swagger Only) Controller files suffix. See https://docs.nestjs.com/openapi/cli-plugin#using-the-cli-plugin for details
(Swagger Only) If set to true, the module will reuse class-validator validation decorators (e.g. @Max(10) will add max: 10 to schema definition). See https://docs.nestjs.com/openapi/cli-plugin#using-the-cli-plugin for details
(Swagger Only) The property key to set the comment text to on ApiProperty. See https://docs.nestjs.com/openapi/cli-plugin#using-the-cli-plugin for details
(Swagger Only) The property key to set the comment text to on ApiOperation. See https://docs.nestjs.com/openapi/cli-plugin#using-the-cli-plugin for details