HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

npm profile — Manage the npm profile and related settings. Note: This command is unaware of workspaces. More infor

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandnpmnpm profileandclimanageprofile

Problem

How to use the npm profile command: Manage the npm profile and related settings. Note: This command is unaware of workspaces. More information: <https://docs.npmjs.com/cli/npm-profile/>.

Solution

npm profile — Manage the npm profile and related settings. Note: This command is unaware of workspaces. More information: <https://docs.npmjs.com/cli/npm-profile/>.

View the npm profile details:
npm profile get


View a specific property of the profile:
npm profile get {{property}}


Set or update a profile property:
npm profile set {{property}} {{value}}


Set the public email address:
npm profile set email {{email}}


Set the public name:
npm profile set fullname {{name}}


Set a new password interactively:
npm profile set password


Enable two-factor authentication (2FA) (defaults to auth-and-writes):
npm profile enable-2fa {{auth-only|auth-and-writes}}


Disable two-factor authentication (2FA):
npm profile disable-2fa

Code Snippets

View the npm profile details

npm profile get

View a specific property of the profile

npm profile get {{property}}

Set or update a profile property

npm profile set {{property}} {{value}}

Set the public email address

npm profile set email {{email}}

Set the public name

npm profile set fullname {{name}}

Context

tldr-pages: common/npm profile

Revisions (0)

No revisions yet.