Skip to content

vp pm list ​

List installed dependencies. Alias: vp pm ls. The global CLI also accepts vp list and vp ls.

bash
vp pm list
vp pm list react --depth 2
vp pm list --json
vp list -g

Options ​

OptionDescriptionNotes
--depth <depth>Maximum depth of dependency tree.
--jsonRequest native JSON output.Output retains the native schema.
--longShow extended information.
--parseableParseable output format.
-P, --prodOnly production dependencies.
-D, --devInclude dev dependencies.
--no-optionalExclude optional dependencies.
--exclude-peersExclude peer dependencies.
--only-projectsShow only project packages.
--find-by <finder_name>Use a finder function.
-r, --recursiveList across all workspaces.
--filter <pattern>Select workspaces by pattern.Can be repeated.
-g, --globalList global packages.Requires the global CLI. Uses the global package store.

Compatibility ​

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

  • npm: npm list.
  • pnpm: pnpm list.
  • Yarn Classic: yarn list.
  • Yarn Modern: No command. Warns and exits successfully without performing the operation.
  • Bun: bun pm ls.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
--depth <depth>YesYesYesNoNo
--jsonYesYesYesNoNo
--longYesYesNoNoNo
--parseableYesYesNoNoNo
-P, --prodYesYesYesNoNo
-D, --devYesYesYesNoNo
--no-optionalYesYesNoNoNo
--exclude-peersYesYesNoNoNo
--only-projectsNoYesNoNoNo
--find-by <finder_name>NoYesNoNoNo
-r, --recursiveYesYesNoNoNo
--filter <pattern>YesYesNoNoNo
-g, --globalYesYesYesYesYes

These results describe installed packages, not Vite+'s bundled tools. Use vp toolchain [tool] to inspect bundled Vite, Rolldown, Oxc, and other tool versions.

Native Options ​

For native options, see npm ls, pnpm list, Yarn Classic list, and Bun pm ls. To pass these options through Vite+, see Native Arguments.