ng add

From Get docs
< CLI Overview and Command ReferenceAngular/docs/10/cli/add


Adds support for an external library to your project.

ng add <collection> [options]

Description

Adds the npm package for a published library to your workspace, and configures the project in the current working directory (or the default project if you are not in a project 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

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

Arguments

Argument Description
<collection> The package to be added.

Options

Option Description
false When true, disables interactive input prompts for options with a default.
false|json|JSON

Shows a help message for this command in the console.

Default: false

false When false, disables interactive input prompts.
--registry=registry The NPM registry to use.
false

Display additional details about internal operations during execution.

Default: false


© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/cli/add