Skip to content

vp pm config ​

Read and write package-manager configuration. Alias: vp pm c. This is distinct from vp config, which configures project tooling.

bash
vp pm config list
vp pm config get registry
vp pm config set registry https://registry.npmjs.org --location project
vp pm config delete registry --location project

Configuration keys are manager-specific. The registry examples use npm or pnpm keys, not Yarn 2 configuration keys.

Options ​

  • list displays configuration.
  • get <key> reads a value.
  • set <key> <value> writes a value.
  • delete <key> removes a value.

Here --global selects configuration scope, not Vite+'s global package store.

These subcommands do not accept additional native arguments after --.

list ​

OptionDescriptionNotes
--jsonRequest native JSON output.Output retains the native schema.
-g, --globalUse global config.Overrides --location.
--location <project|user|global>Choose the configuration scope.

get ​

OptionDescriptionNotes
--jsonRequest native JSON output.Output retains the native schema.
-g, --globalUse global config.Overrides --location.
--location <project|user|global>Choose the configuration scope.

set ​

OptionDescriptionNotes
--jsonRequest native JSON output.Output retains the native schema.
-g, --globalUse global config.Overrides --location.
--location <project|user|global>Choose the configuration scope.

delete ​

OptionDescriptionNotes
-g, --globalUse global config.Overrides --location.
--location <project|user|global>Choose the configuration scope.

Compatibility ​

list ​

  • npm: npm config list.
  • pnpm: pnpm config list.
  • Yarn Classic: yarn config list.
  • Yarn Modern: yarn config.
  • Bun: Fallback: npm config list. Uses npm configuration, not bunfig.toml.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
--jsonYesYesYesYesYes
-g, --globalYesYesYesYesYes
--location <project|user|global>project, user, globalproject, user, globaluser, globalproject, user, globalproject, user, globalReads retain merged configuration.

get ​

  • npm: npm config get.
  • pnpm: pnpm config get.
  • Yarn Classic: yarn config get.
  • Yarn Modern: yarn config get.
  • Bun: Fallback: npm config get. Uses npm configuration, not bunfig.toml.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
--jsonYesYesYesYesYes
-g, --globalYesYesYesYesYes
--location <project|user|global>project, user, globalproject, user, globaluser, globalproject, user, globalproject, user, globalReads retain merged configuration.

set ​

  • npm: npm config set.
  • pnpm: pnpm config set.
  • Yarn Classic: yarn config set.
  • Yarn Modern: yarn config set.
  • Bun: Fallback: npm config set. Uses npm configuration, not bunfig.toml.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
--jsonYesYesYesYesYes
-g, --globalYesYesYesYesYes
--location <project|user|global>project, user, globalproject, user, globaluser, globalproject, user, globalproject, user, global

delete ​

  • npm: npm config delete.
  • pnpm: pnpm config delete.
  • Yarn Classic: yarn config delete.
  • Yarn Modern: yarn config unset.
  • Bun: Fallback: npm config delete. Uses npm configuration, not bunfig.toml.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
-g, --globalYesYesYesYesYes
--location <project|user|global>project, user, globalproject, user, globaluser, globalproject, user, globalproject, user, global

Yarn Classic user writes use native defaults.

Native Options ​

For native options, see npm config, pnpm config, Yarn config, Yarn config get, Yarn config set, Yarn config unset, and Yarn Classic config. Native options outside this interface require the native command.

For bunfig.toml settings, see Bun configuration.