LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-profile

manages npm registry user profile

TLDR

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

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.

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

Copied to clipboard
Kai