add
ng add
Adds the npm package for a published library to your workspace, and configures
the project in the current working directory to use that library, as specified by the library's schematic.
For example, adding @angular/pwa
configures your project for PWA support:
ng add @angular/pwa
Arguments
collection
The package to be added.
string
Options
defaults
Disable interactive input prompts for options with a default.
boolean
Defaultfalse
dry-run
d
Run through and reports activity without writing out results.
boolean
Defaultfalse
force
Force overwriting of existing files.
boolean
Defaultfalse
help
Shows a help message for this command in the console.
boolean
interactive
Enable interactive input prompts.
boolean
Defaulttrue
registry
The NPM registry to use.
string
skip-confirmation
Skip asking a confirmation prompt before installing and executing the package. Ensure package name is correct prior to using this option.
boolean
Defaultfalse
verbose
Display additional details about internal operations during execution.
boolean
Defaultfalse