LinuxCommandLibrary

npm-whoami

displays the logged-in username

TLDR

Show current user

$ npm whoami
copy
Check specific registry
$ npm whoami --registry=[https://registry.example.com]
copy

SYNOPSIS

npm whoami [options]

DESCRIPTION

npm whoami displays the logged-in username. Verifies authentication.
The command shows current user. Useful for debugging auth issues.

PARAMETERS

--registry URL

Registry to check.
--help
Display help information.

CAVEATS

Requires authentication. Per-registry check. Empty if not logged in.

HISTORY

npm whoami provides authentication verification for npm registry access.

SEE ALSO

npm(1), npm-login(1), npm-logout(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community