npm-profile

manages npm registry user profile

TLDR

Show all profile properties
$ npm profile get
Get a specific profile property (e.g. email, fullname, homepage)
$ npm profile get [property]
Set a profile field (email, fullname, homepage, twitter, github)
$ npm profile set [field] [value]
Change password (interactive prompt)
$ npm profile set password
Enable two-factor authentication (defaults to auth-and-writes)
$ npm profile enable-2fa [auth-only|auth-and-writes]
Disable 2FA
$ npm profile disable-2fa
Output as JSON
$ npm profile get --json

SYNOPSIS

npm profile enable-2fa [auth-only|auth-and-writes]npm profile disable-2fanpm profile get [key]npm profile set key value

DESCRIPTION

npm profile manages your user profile on the npm registry. It can view and update profile settings (email, fullname, homepage, social handles), change your password interactively, and configure two-factor authentication for account security.This command depends on the registry implementation; third-party registries may not support all subcommands.

PARAMETERS

get [property]

Display all profile properties or one specific property.
set property value
Set a profile property. Supported: email, fullname, homepage, freenode, twitter, github.
set password
Interactively change the account password.
enable-2fa [mode]
Enable two-factor authentication. Mode is `auth-only` (login/auth changes) or `auth-and-writes` (also publish, dist-tag, access changes). Default is `auth-and-writes`.
disable-2fa
Disable two-factor authentication.
--registry URL
Override the registry URL (default https://registry.npmjs.org/).
--otp CODE
Provide a one-time password for 2FA-protected actions.
--json
Output results as JSON.

INSTALL

sudo pacman -S npm
sudo apk add npm
brew install npm

CAVEATS

Most subcommands only work against npmjs.com or compatible registries. The command is unaware of workspaces. Changing email or enabling 2FA may require an OTP when prompted.

SEE ALSO

npm(1), npm-adduser(1), npm-access(1), npm-config(1)