ng Verified current stable Not installed? Package Management

Ng / Add Multiple Packages

Add Multiple Packages

Easily add multiple packages to your Angular project with a single command for efficiency.

$
Terminal
ng add <package1 package2 ...>

When To Use

Bulk upgrade of dependencies across multiple Angular projects for consistency.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Successfully added package1
Successfully added package2

Run 'ng install' to finalize changes.

Command Breakdown

What each part is doing

ng
Base Command
The executable that performs this operation. Here it runs Ng before the shell applies any redirect operators.
<package1 package2 ...>
package1 package2 ...
The value supplied for package1 package2 ....

How To Run

Execution path

  1. Step 1

    Open your terminal.

  2. Step 2

    Run the command: ng add package1 package2 ...

  3. Step 3

    Verify the installation in your project.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.