1.3 KiB

ng generate

Overview

ng generate [name] generates the specified blueprint

Available blueprints:

Options

dry-run

--dry-run (aliases: -d) default value: false

Run through without making any changes. Will list all files that would have been created when running ng generate.

lint-fix

--lint-fix (aliases: -lf)

Use lint to fix files after generation.

You can also set default true to use lint every time after generation. To do this, change the value in .angular-cli.json (defaults.lintFix).

verbose

--verbose (aliases: -v) default value: false

Adds more details to output logging.