generate
Command
ng generate
ng g
Generates and/or modifies files based on a schematic.
Sub-commands
This command has the following sub-commands
Arguments
schematic
The [collection:schematic] to run.
Value Type
string
Options
defaults
Disable interactive input prompts for options with a default.
Value Type
boolean
Defaultfalse
dry-run
Alias
d
Run through and reports activity without writing out results.
Value Type
boolean
Defaultfalse
force
Force overwriting of existing files.
Value Type
boolean
Defaultfalse
help
Shows a help message for this command in the console.
Value Type
boolean
interactive
Enable interactive input prompts.
Value Type
boolean
Defaulttrue
Jump to details