Skip to content

mise deps add ​

  • Usage: mise deps add [-D --dev] <PACKAGES>…
  • Effect: modifies state
  • Source code: src/cli/deps/add.rs

Add packages to the project's dependencies

Runs the package manager's own add command, which updates the project's manifest (for npm, package.json) and its lockfile, not mise.toml. To install a CLI tool from npm for mise to manage, use mise use npm:<package> instead. Name each package as <ecosystem>:<package>, such as npm:react or npm:@types/react@19. See https://mise.jdx.dev/dev-tools/deps.html#adding-and-removing-packages.

Arguments ​

  • <PACKAGES>… — Packages to add, such as npm:react or npm:@types/react@19

Flags ​

  • -D --dev — Add as a development dependency
  • -h --help — Print help

Examples ​

Add react to package.json

mise deps add npm:react

Add vitest as a dev dependency

mise deps add -D npm:vitest
MIT LicenseCopyright © 2026jdx.dev