Skip to content

vp update ​

Update project dependencies using the selected manager's update rules. Alias: vp up.

bash
vp update
vp update react
vp update --latest
vp update -g

Options ​

OptionDescriptionNotes
-L, --latestUpdate to latest version (ignore semver range).Global mode clears recorded version ranges.
-g, --globalUpdate global packages.Requires the global CLI. Uses the global package store.
--concurrency <number>Number of global package updates to run in parallel.Requires --global. Must be a positive integer.
--reinstall-node-mismatchReinstall up-to-date global packages installed with a different Node.js version.Requires --global.
--ignore-node-mismatchSkip up-to-date global packages installed with a different Node.js version.Requires --global.
-r, --recursiveUpdate recursively in all workspace packages.
--filter <pattern>Select workspaces by pattern.Can be repeated.
-w, --workspace-rootInclude workspace root.
-D, --devSelect development dependencies.
-P, --prodSelect production dependencies.
-i, --interactiveInteractive mode.
--no-optionalExclude optionalDependencies.
--no-saveRequest native no-save behavior.
--workspaceUpdate only dependencies available in the workspace.

Compatibility ​

The commands below describe project operations. Global mode is described under Options.

  • npm: npm update.
  • pnpm: pnpm update.
  • Yarn Classic: yarn upgrade or yarn upgrade-interactive.
  • Yarn Modern: yarn up.
  • Bun: bun update.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
-L, --latestGlobal mode onlyYesYesYesYes
-g, --globalYesYesYesYesYes
--concurrency <number>YesYesYesYesYes
--reinstall-node-mismatchYesYesYesYesYes
--ignore-node-mismatchYesYesYesYesYes
-r, --recursiveYesYesNoYesYes
--filter <pattern>YesYesOne filterNo1.4 or later
-w, --workspace-rootYesYesNoNoNo
-D, --devYesYesNoNo1.4 or later
-P, --prodYesYesYesNoYes
-i, --interactiveNoYesYesYesYes
--no-optionalYesYesYesNoYes
--no-saveYesYesNo--recursive without --latestYes
--workspaceNoYesNoNoNo

To change a dependency's declared range on npm, use add with a new version specification. Yarn Modern follows project-wide update semantics. Recursive mode without --latest re-resolves existing ranges without rewriting manifests; combining it with --latest uses ordinary yarn up.

Native Options ​

For native options, see npm update, pnpm update, Yarn up, Yarn Classic upgrade, Yarn Classic upgrade-interactive, and Bun update. To pass these options through Vite+, see Native Arguments.