nx/docs/shared/recipes/console-add-dependency-command.md
2023-05-20 10:04:47 -04:00

12 lines
579 B
Markdown

# Nx Console Add Dependency command
The `Add Dependency` & `Add Dev Dependency` commands allow you to specify a package and version to be installed using your local package manager. If it contains an `init` generator or `ng-add` schematic, you might be prompted to select some options before it's executed.
There are multiple ways to execute the command:
- via the command prompt (`ctrl/cmd + shift + p`)
- via the `Common Nx Commands` view
- via a CodeLens on the root `package.json` (see below)
![Codelens](/shared/images/nx-console/nx-console-add-dependency-codelens.png)