snippetbashTip
ng add — Add and configure packages for the current workspace project. More information: <https://angular.dev
Viewed 0 times
commandandconfigurecling addaddforpackages
Problem
How to use the
ng add command: Add and configure packages for the current workspace project. More information: <https://angular.dev/cli/add>.Solution
ng add — Add and configure packages for the current workspace project. More information: <https://angular.dev/cli/add>.Add a package to the current project:
ng add {{package}}Add multiple packages:
ng add {{package1 package2 ...}}Add a specific version of a package:
ng add {{package}}@{{version}}Skip the confirmation prompt:
ng add {{package}} --skip-confirmationDisable interactive prompts:
ng add {{package}} --interactive falseDisplay verbose output about internal operations:
ng add {{package}} --verbosePerform a dry run without making any changes:
ng add {{package}} {{[-d|--dry-run]}}Code Snippets
Add a package to the current project
ng add {{package}}Add multiple packages
ng add {{package1 package2 ...}}Add a specific version of a package
ng add {{package}}@{{version}}Skip the confirmation prompt
ng add {{package}} --skip-confirmationDisable interactive prompts
ng add {{package}} --interactive falseContext
tldr-pages: common/ng add
Revisions (0)
No revisions yet.