/Angular 7

ng add

Adds support for an external library to your project.

ng add <collection> [options]


Adds the npm package for a published library to your workspace, and configures your default app project to use that library, in whatever way is specified by the library's schematic. For example, adding @angular/pwa configures your project for PWA support.

The default app project is the value of defaultProject in angular.json.


Argument Description

The package to be added.


Option Description

When true, disables interactive input prompts for options with a default.

--help= true|false|json|JSON

Shows a help message for this command in the console.

Default: false


When false, disables interactive input prompts.

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.