npm Publish & Registry/Show current username

Display the authenticated npm username.

Section: Registry auth and account actions

Show current username

bash
bash
npm whoami
Explanation

Display the authenticated npm username.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Registry auth and account actions
Login to registry
Authenticate to a registry.
OpenIn sheetbashsame section
Logout from registry
Clear login credentials for the current registry.
OpenIn sheetbashsame section
List packages you can access
Show package access rules for the current account.
OpenIn sheetbashsame section
List package owners
Show owners of a package.
OpenIn sheetbashsame section
Add a package owner
Grant owner rights on a package.
OpenIn sheetbashsame section
Bump patch version
Increment patch version and create a git tag by default.
OpenIn sheetbash1 tag match