Skip to content
Merged
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions pages/common/npm-profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 your 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:

`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`