1 x new - rbinsztock/angular-cli GitHub Wiki
ng new [name] creates a new angular application.
Default applications are created in a directory of the same name, with an initialized Angular application.
directory
--directory (alias: -d) 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. Will list all files that would have been created when running ng new.
inline-style
--inline-style (alias: -s) default value: false
Should have an inline style.
inline-template
--inline-template (alias: -t) default value: false
Should have an inline template.
minimal
--minimal default value: false
Should create a minimal app.
prefix
--prefix (alias: -p) default value: app
The prefix to use for all component selectors.
You can later change the value in .angular-cli.json (apps[0].prefix).
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: -g) 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: -S) default value: false
Skip creating spec files.
Skip including e2e functionality.
source-dir
--source-dir (alias: -D) default value: src
The name of the source directory.
You can later change the value in .angular-cli.json (apps[0].root).
style
--style default value: css
- css
- scss
- less
- sass
- styl (
stylus)
You can later change the value in .angular-cli.json (defaults.styleExt).
verbose
--verbose (alias: -v) default value: false
Adds more details to output logging.