add
ng addAdds 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
collectionThe package to be added.
stringOptions
defaultsDisable interactive input prompts for options with a default.
booleanDefaultfalsedry-rundRun through and reports activity without writing out results.
booleanDefaultfalseforceForce overwriting of existing files.
booleanDefaultfalsehelpShows a help message for this command in the console.
booleaninteractiveEnable interactive input prompts.
booleanDefaulttrueregistryThe NPM registry to use.
stringskip-confirmationSkip asking a confirmation prompt before installing and executing the package. Ensure package name is correct prior to using this option.
booleanDefaultfalseverboseDisplay additional details about internal operations during execution.
booleanDefaultfalse