{ "id": "cli/generate", "title": "ng generate", "contents": "\n
\n
\n mode_edit\n code\n
\n \n\n\n
\n \n CLI\n
\n\n \n
\n

ng generatelink

\n
\n\n\n \n\n
\n \n

Generates and/or modifies files based on a schematic.

\n\n \nng generate <schematic> [options]\n\nng g <schematic> [options]\n\n\n\n \n\n \n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<schematic>\n

The schematic or collection:schematic to generate.

\n\n

This option can take one of the following sub-commands:

\n

\n
string
\n\n\n \n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --defaults\n \n \n

Disable interactive input prompts for options with a default.

\n\n \n
boolean
\n --dry-run\n \n \n

Run through and reports activity without writing out results.

\n\n

Aliases: -d

\n
booleanfalse
\n --force\n \n \n

Force overwriting of existing files.

\n\n

Aliases: -f

\n
booleanfalse
\n --help\n \n \n

Shows a help message for this command in the console.

\n\n \n
true|false|json|JSONfalse
\n --interactive\n \n \n

Enable interactive input prompts.

\n\n \n
boolean
\n\n\n \n

Schematic commandslink

\n\n

app-shelllink

\n\n\nng generate app-shell [options]\n\n\n\n\nng g app-shell [options]\n\n\n\n

Generates an app shell for running a server-side version of an app.

\n\n\n\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --app-dir\n \n \n

The name of the application directory.

\n\n \n
stringapp
\n --app-id\n \n \n

The app ID to use in withServerTransition().

\n\n \n
stringserverApp
\n --client-project\n \n \n

The name of the related client app.

\n\n \n
string
\n --main\n \n \n

The name of the main entry-point file.

\n\n \n
stringmain.server.ts
\n --root-module-class-name\n \n \n

The name of the root module class.

\n\n \n
stringAppServerModule
\n --root-module-file-name\n \n \n

The name of the root module file

\n\n \n
stringapp.server.module.ts
\n --route\n \n \n

Route path used to produce the app shell.

\n\n \n
stringshell
\n\n\n\n

applicationlink

\n\n\nng generate application <name> [options]\n\n\n\n\nng g application <name> [options]\n\n\n\n

Generates a new basic app definition in the \"projects\" subfolder of the workspace.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the new app.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --inline-style\n \n \n

Include styles inline in the root component.ts file. Only CSS styles can be included inline. Default is false, meaning that an external styles file is created and referenced in the root component.ts file.

\n\n

Aliases: -s

\n
boolean
\n --inline-template\n \n \n

Include template inline in the root component.ts file. Default is false, meaning that an external template file is created and referenced in the root component.ts file.

\n\n

Aliases: -t

\n
boolean
\n --legacy-browsers\n \n \n \n

Deprecated: Legacy browsers support is deprecated since version 12. For more information, see https://angular.io/guide/browser-support

\n\n \n \n

Add support for legacy browsers like Internet Explorer using differential loading.

\n\n \n
booleanfalse
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the application.

\n\n \n
boolean
\n --minimal\n \n \n

Create a bare-bones project without any testing frameworks. (Use for learning purposes only.)

\n\n \n
booleanfalse
\n --prefix\n \n \n

A prefix to apply to generated selectors.

\n\n

Aliases: -p

\n
stringapp
\n --routing\n \n \n

Create a routing NgModule.

\n\n \n
booleanfalse
\n --skip-install\n \n \n

Skip installing dependency packages.

\n\n \n
booleanfalse
\n --skip-package-json\n \n \n

Do not add dependencies to the \"package.json\" file.

\n\n \n
booleanfalse
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the application.

\n\n

Aliases: -S

\n
booleanfalse
\n --strict\n \n \n

Creates an application with stricter bundle budgets settings.

\n\n \n
booleantrue
\n --style\n \n \n

The file extension or preprocessor to use for style files.

\n\n \n
css|scss|sass|less|stylcss
\n --view-encapsulation\n \n \n

The view encapsulation strategy to use in the new app.

\n\n \n
Emulated|None|ShadowDom
\n\n\n\n

classlink

\n\n\nng generate class <name> [options]\n\n\n\n\nng g class <name> [options]\n\n\n\n

Creates a new generic class definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the new class.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the class.

\n\n \n
booleanfalse
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the new class.

\n\n \n
booleanfalse
\n --type\n \n \n

Adds a developer-defined type to the filename, in the format \"name.type.ts\".

\n\n \n
string
\n\n\n\n

componentlink

\n\n\nng generate component <name> [options]\n\n\n\n\nng g component <name> [options]\n\n\n\n

Creates a new generic component definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the component.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --change-detection\n \n \n

The change detection strategy to use in the new component.

\n\n

Aliases: -c

\n
Default|OnPushDefault
\n --display-block\n \n \n

Specifies if the style will contain :host { display: block; }.

\n\n

Aliases: -b

\n
booleanfalse
\n --export\n \n \n

The declaring NgModule exports this component.

\n\n \n
booleanfalse
\n --flat\n \n \n

Create the new files at the top level of the current project.

\n\n \n
booleanfalse
\n --inline-style\n \n \n

Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.

\n\n

Aliases: -s

\n
booleanfalse
\n --inline-template\n \n \n

Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.

\n\n

Aliases: -t

\n
booleanfalse
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the component.

\n\n \n
boolean
\n --module\n \n \n

The declaring NgModule.

\n\n

Aliases: -m

\n
string
\n --prefix\n \n \n

The prefix to apply to the generated component selector.

\n\n

Aliases: -p

\n
string
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --selector\n \n \n

The HTML selector to use for this component.

\n\n \n
string
\n --skip-import\n \n \n

Do not import this component into the owning NgModule.

\n\n \n
booleanfalse
\n --skip-selector\n \n \n

Specifies if the component should have a selector or not.

\n\n \n
booleanfalse
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the new component.

\n\n \n
booleanfalse
\n --style\n \n \n

The file extension or preprocessor to use for style files.

\n\n \n
css|scss|sass|less|stylcss
\n --type\n \n \n

Adds a developer-defined type to the filename, in the format \"name.type.ts\".

\n\n \n
stringComponent
\n --view-encapsulation\n \n \n

The view encapsulation strategy to use in the new component.

\n\n

Aliases: -v

\n
Emulated|None|ShadowDom
\n\n\n\n

directivelink

\n\n\nng generate directive <name> [options]\n\n\n\n\nng g directive <name> [options]\n\n\n\n

Creates a new generic directive definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the new directive.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --export\n \n \n

The declaring NgModule exports this directive.

\n\n \n
booleanfalse
\n --flat\n \n \n

When true (the default), creates the new files at the top level of the current project.

\n\n \n
booleantrue
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the directive.

\n\n \n
boolean
\n --module\n \n \n

The declaring NgModule.

\n\n

Aliases: -m

\n
string
\n --prefix\n \n \n

A prefix to apply to generated selectors.

\n\n

Aliases: -p

\n
string
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --selector\n \n \n

The HTML selector to use for this directive.

\n\n \n
string
\n --skip-import\n \n \n

Do not import this directive into the owning NgModule.

\n\n \n
booleanfalse
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the new class.

\n\n \n
booleanfalse
\n\n\n\n

enumlink

\n\n\nng generate enum <name> [options]\n\n\n\n\nng g enum <name> [options]\n\n\n\n

Generates a new, generic enum definition for the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the enum.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the enum.

\n\n \n
boolean
\n --project\n \n \n

The name of the project in which to create the enum. Default is the configured default project for the workspace.

\n\n \n
string
\n\n\n\n

guardlink

\n\n\nng generate guard <name> [options]\n\n\n\n\nng g guard <name> [options]\n\n\n\n

Generates a new, generic route guard definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the new route guard.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --flat\n \n \n

When true (the default), creates the new files at the top level of the current project.

\n\n \n
booleantrue
\n --implements\n \n \n

Specifies which interfaces to implement.

\n\n \n
array
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the guard.

\n\n \n
boolean
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the new guard.

\n\n \n
booleanfalse
\n\n\n\n

interceptorlink

\n\n\nng generate interceptor <name> [options]\n\n\n\n\nng g interceptor <name> [options]\n\n\n\n

Creates a new, generic interceptor definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the interceptor.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --flat\n \n \n

When true (the default), creates files at the top level of the project.

\n\n \n
booleantrue
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the interceptor.

\n\n \n
boolean
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the new interceptor.

\n\n \n
booleanfalse
\n\n\n\n

interfacelink

\n\n\nng generate interface <name> <type> [options]\n\n\n\n\nng g interface <name> <type> [options]\n\n\n\n

Creates a new generic interface definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the interface.

\n\n \n
string
<type>\n

Adds a developer-defined type to the filename, in the format \"name.type.ts\".

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the interface.

\n\n \n
boolean
\n --prefix\n \n \n

A prefix to apply to generated selectors.

\n\n \n
string
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n\n\n\n

librarylink

\n\n\nng generate library <name> [options]\n\n\n\n\nng g library <name> [options]\n\n\n\n

Creates a new generic library project in the current workspace.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the library.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --entry-file\n \n \n

The path at which to create the library's public API file, relative to the workspace root.

\n\n \n
stringpublic-api
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the library.

\n\n \n
boolean
\n --prefix\n \n \n

A prefix to apply to generated selectors.

\n\n

Aliases: -p

\n
stringlib
\n --skip-install\n \n \n

Do not install dependency packages.

\n\n \n
booleanfalse
\n --skip-package-json\n \n \n

Do not add dependencies to the \"package.json\" file.

\n\n \n
booleanfalse
\n --skip-ts-config\n \n \n

Do not update \"tsconfig.json\" to add a path mapping for the new library. The path mapping is needed to use the library in an app, but can be disabled here to simplify development.

\n\n \n
booleanfalse
\n\n\n\n

modulelink

\n\n\nng generate module <name> [options]\n\n\n\n\nng g module <name> [options]\n\n\n\n

Creates a new generic NgModule definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the NgModule.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --flat\n \n \n

Create the new files at the top level of the current project root.

\n\n \n
booleanfalse
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the module.

\n\n \n
boolean
\n --module\n \n \n

The declaring NgModule.

\n\n

Aliases: -m

\n
string
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --route\n \n \n

The route path for a lazy-loaded module. When supplied, creates a component in the new module, and adds the route to that component in the Routes array declared in the module provided in the --module option.

\n\n \n
string
\n --routing\n \n \n

Create a routing module.

\n\n \n
booleanfalse
\n --routing-scope\n \n \n

The scope for the new routing module.

\n\n \n
Child|RootChild
\n\n\n\n

pipelink

\n\n\nng generate pipe <name> [options]\n\n\n\n\nng g pipe <name> [options]\n\n\n\n

Creates a new generic pipe definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the pipe.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --export\n \n \n

The declaring NgModule exports this pipe.

\n\n \n
booleanfalse
\n --flat\n \n \n

When true (the default) creates files at the top level of the project.

\n\n \n
booleantrue
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the pipe.

\n\n \n
booleanfalse
\n --module\n \n \n

The declaring NgModule.

\n\n

Aliases: -m

\n
string
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --skip-import\n \n \n

Do not import this pipe into the owning NgModule.

\n\n \n
booleanfalse
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the new pipe.

\n\n \n
booleanfalse
\n\n\n\n

resolverlink

\n\n\nng generate resolver <name> [options]\n\n\n\n\nng g resolver <name> [options]\n\n\n\n

Generates a new, generic resolver definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the new resolver.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --flat\n \n \n

When true (the default), creates the new files at the top level of the current project.

\n\n \n
booleantrue
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the new resolver.

\n\n \n
booleanfalse
\n\n\n\n

servicelink

\n\n\nng generate service <name> [options]\n\n\n\n\nng g service <name> [options]\n\n\n\n

Creates a new, generic service definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the service.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --flat\n \n \n

When true (the default), creates files at the top level of the project.

\n\n \n
booleantrue
\n --lint-fix\n \n \n \n

Deprecated: Use \"ng lint --fix\" directly instead.

\n\n \n \n

Apply lint fixes after generating the service.

\n\n \n
boolean
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --skip-tests\n \n \n

Do not create \"spec.ts\" test files for the new service.

\n\n \n
booleanfalse
\n\n\n\n

service-workerlink

\n\n\nng generate service-worker [options]\n\n\n\n\nng g service-worker [options]\n\n\n\n

Pass this schematic to the \"run\" command to create a service worker

\n\n\n\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --configuration\n \n \n \n

Deprecated: No longer has an effect.

\n\n \n \n

The configuration to apply service worker to.

\n\n \n
string
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --target\n \n \n

The target to apply service worker to.

\n\n \n
stringbuild
\n\n\n\n

web-workerlink

\n\n\nng generate web-worker <name> [options]\n\n\n\n\nng g web-worker <name> [options]\n\n\n\n

Creates a new generic web worker definition in the given or default project.

\n\n\n\n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<name>\n

The name of the worker.

\n\n \n
string
\n\n\n\n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --project\n \n \n

The name of the project.

\n\n \n
string
\n --snippet\n \n \n

Add a worker creation snippet in a sibling file of the same name.

\n\n \n
booleantrue
\n --target\n \n \n

The target to apply web worker to.

\n\n \n
stringbuild
\n\n\n\n\n
\n
\n\n\n" }