Angular 6 References/ CLI
References

ng new

This is the documentation for Angular 6.
You can switch to the latest version Angular 10.
ng new [name] [--[argument]=[value]]
ng n

Creates a new angular application.

Default applications are created in a directory of the same name, with an initialized Angular application.

Links & Tutorials

Options

--dryRun#

Run through without making any changes.
Type boolean
Default false
Aliases d

--force#

Forces overwriting of files.
Type boolean
Default false
Aliases f

--verbose#

Adds more details to output logging.
Type boolean
Default false
Aliases v

--collection#

Schematics collection to use.
Type string
Default @schematics/angular
Aliases c

--inlineStyle#

Specifies if the style will be in the ts file.
Type boolean
Default false
Aliases s

--inlineTemplate#

Specifies if the template will be in the ts file.
Type boolean
Default false
Aliases t

--viewEncapsulation#

Specifies the view encapsulation strategy.
Aliases view-encapsulation

--routing#

Generates a routing module.
Type boolean
Default false

--prefix#

The prefix to apply to generated selectors.
Type string
Default app
Aliases p

--style#

The file extension to be used for style files.
Type string
Values css, scss, less, sass, styl
Default css

--skipTests#

Skip creating spec files.
Type boolean
Default false
Aliases S

--skipPackageJson#

Do not add dependencies to `package.json`.
Aliases skip-package-json