Mike Brocchi 9f77c868d2 feat(@angular/cli): Update command runner.
This change removes the dependency of the ember-cli command structure.
2018-03-06 17:57:38 -05:00

1.5 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: -l)

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.

collection

--collection (aliases: -c) default value: @schematics/angular

Schematics collection to use.