Skip to content
Open
Changes from 10 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
33 changes: 33 additions & 0 deletions pages/common/npm-profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# npm profile

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

- View your 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 your public email address:

`npm profile set email {{email}}`

- Set your public name:

`npm profile set name {{name}}`

- Enable two-factor authentication (2FA):

`npm profile enable-2fa {{auth-only|auth-and-writes}}`

- Disable two-factor authentication (2FA):

`npm profile disable-2fa`