Skip to content

vp pm whoami ​

Show the account authenticated with the registry.

bash
vp pm whoami
vp pm whoami --registry https://registry.npmjs.org

Options ​

OptionDescriptionNotes
--registry <url>Select the registry.

Compatibility ​

  • npm: npm whoami.
  • pnpm: 11 or later: pnpm whoami. Earlier versions use npm whoami as a fallback.
  • Yarn Classic: No command. Warns and exits successfully without performing the operation.
  • Yarn Modern: yarn npm whoami.
  • Bun: bun pm whoami.
OptionnpmpnpmYarn ClassicYarn ModernBunNotes
--registry <url>YesYesNoNoYesConfigure the registry in Yarn Modern settings.

Native Options ​

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