vp pm whoami
Show the account authenticated with the registry.
bash
vp pm whoami
vp pm whoami --registry https://registry.npmjs.orgOptions
| Option | Description | Notes |
|---|---|---|
--registry <url> | Select the registry. |
Compatibility
- npm:
npm whoami. - pnpm: 11 or later:
pnpm whoami. Earlier versions usenpm whoamias a fallback. - Yarn Classic: No command. Warns and exits successfully without performing the operation.
- Yarn Modern:
yarn npm whoami. - Bun:
bun pm whoami.
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|---|---|---|---|---|---|---|
--registry <url> | Yes | Yes | No | No | Yes | Configure 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.