2.6 KiB
ng new
Overview
ng new [name]
creates a new angular application.
Default applications are created in a directory of the same name, with an initialized Angular application.
Options
directory
`--directory` (alias: `-dir`) _default value: dir_
The directory name to create the app in.
dry-run
`--dry-run` (alias: `-d`) _default value: false_
Run through without making any changes.
inline-style
`--inline-style` (alias: `-is`) _default value: false_
Should have an inline style.
inline-template
`--inline-template` (alias: `-it`) _default value: false_
Should have an inline template.
prefix
`--prefix` (alias: `-p`) _default value: app_
The prefix to use for all component selectors.
routing
`--routing` _default value: false_
Generate a routing module.
skip-commit
`--skip-commit` (alias: `-sc`) _default value: false_
Skip committing the first commit to git.
skip-git
`--skip-git` (alias: `-sg`) _default value: false_
Skip initializing a git repository.
skip-install
`--skip-install` (alias: `-si`) _default value: false_
Skip installing packages.
skip-tests
--skip-tests
(aliases: -st
) default value: false
Skip creating spec files.
Skip including e2e functionality.
source-dir
`--source-dir` (alias: `-sd`) _default value: src_
The name of the source directory.
style
`--style` _default value: css_
The style file default extension.
verbose
`--verbose` (alias: `-v`) _default value: false_
Adds more details to output logging.