Skip to content

Commit 2f69059

Browse files
SreyasivsebastiaanspeckManagor
authored
npm-profile: add page (#19051)
Co-authored-by: Sreyaiv <113996310+Sreyaiv@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
1 parent 85095da commit 2f69059

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

pages/common/npm-profile.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# npm profile
2+
3+
> Manage the npm profile and related settings.
4+
> Note: This command is unaware of workspaces.
5+
> More information: <https://docs.npmjs.com/cli/npm-profile>.
6+
7+
- View the npm profile details:
8+
9+
`npm profile get`
10+
11+
- View a specific property of the profile:
12+
13+
`npm profile get {{property}}`
14+
15+
- Set or update a profile property:
16+
17+
`npm profile set {{property}} {{value}}`
18+
19+
- Set the public email address:
20+
21+
`npm profile set email {{email}}`
22+
23+
- Set the public name:
24+
25+
`npm profile set fullname {{name}}`
26+
27+
- Set a new password interactively:
28+
29+
`npm profile set password`
30+
31+
- Enable two-factor authentication (2FA) (defaults to `auth-and-writes`):
32+
33+
`npm profile enable-2fa {{auth-only|auth-and-writes}}`
34+
35+
- Disable two-factor authentication (2FA):
36+
37+
`npm profile disable-2fa`

0 commit comments

Comments
 (0)