1 ---
2 title: npm-profile
3 section: 1
4 description: Change settings on your registry profile
5 github_repo: npm/cli
6 github_branch: release/v8
7 github_path: docs/lib/content/commands/npm-profile.md
8 redirect_from:
9 - /cli-documentation/v8/cli-commands/npm-profile
10 - /cli-documentation/v8/cli-commands/profile
11 - /cli-documentation/v8/commands/npm-profile
12 - /cli-documentation/v8/commands/profile
13 - /cli-documentation/v8/npm-profile
14 - /cli-documentation/v8/profile
15 - /cli/v8/cli-commands/npm-profile
16 - /cli/v8/cli-commands/profile
17 - /cli/v8/commands/profile
18 - /cli/v8/npm-profile
19 - /cli/v8/profile
20 ---
21
22 ### Synopsis
23
24 ```bash
25 npm profile enable-2fa [auth-only|auth-and-writes]
26 npm profile disable-2fa
27 npm profile get [<key>]
28 npm profile set <key> <value>
29 ```
30
31 Note: This command is unaware of workspaces.
32
33 ### Description
34
35 Change your profile information on the registry. Note that this command depends on the registry implementation, so third-party registries may not support this interface.
36
37 - `npm profile get [<property>]`: Display all of the properties of your profile, or one or more specific properties. It looks like:
38
39 ```bash
40 +-----------------+---------------------------+
41 | name | example |
42 +-----------------+---------------------------+
43 | email | me@example.com (verified) |
44 +-----------------+---------------------------+
45 | two factor auth | auth-and-writes |
46 +-----------------+---------------------------+
47 | fullname | Example User |
48 +-----------------+---------------------------+
49 | homepage | |
50 +-----------------+---------------------------+
51 | freenode | |
52 +-----------------+---------------------------+
53 | twitter | |
54 +-----------------+---------------------------+
55 | github | |
56 +-----------------+---------------------------+
57 | created | 2015-02-26T01:38:35.892Z |
58 +-----------------+---------------------------+
59 | updated | 2017-10-02T21:29:45.922Z |
60 +-----------------+---------------------------+
61 ```
62
63 - `npm profile set <property> <value>`: Set the value of a profile property. You can set the following properties this way: email, fullname, homepage, freenode, twitter, github
64
65 - `npm profile set password`: Change your password. This is interactive, you'll be prompted for your current password and a new password. You'll also be prompted for an OTP if you have two-factor authentication enabled.
66
67 - `npm profile enable-2fa [auth-and-writes|auth-only]`: Enables two-factor authentication. Defaults to `auth-and-writes` mode. Modes are:
68 - `auth-only`: Require an OTP when logging in or making changes to your account's authentication. The OTP will be required on both the website and the command line.
69 - `auth-and-writes`: Requires an OTP at all the times `auth-only` does, and also requires one when publishing a module, setting the `latest` dist-tag, or changing access via `npm access` and `npm owner`.
70
71 - `npm profile disable-2fa`: Disables two-factor authentication.
72
73 ### Details
74
75 Some of these commands may not be available on non npmjs.com registries.
76
77 ### Configuration
78
79 #### `registry`
80
81 - Default: "https://registry.npmjs.org/"
82 - Type: URL
83
84 The base URL of the npm registry.
85
86 #### `json`
87
88 - Default: false
89 - Type: Boolean
90
91 Whether or not to output JSON data, rather than the normal output.
92
93 - In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`.
94
95 Not supported by all npm commands.
96
97 #### `parseable`
98
99 - Default: false
100 - Type: Boolean
101
102 Output parseable results from commands that write to standard output. For `npm search`, this will be tab-separated table format.
103
104 #### `otp`
105
106 - Default: null
107 - Type: null or String
108
109 This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`.
110
111 If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one.
112
113 ### See Also
114
115 - [npm adduser](/cli/v8/commands/npm-adduser)
116 - [npm registry](/cli/v8/using-npm/registry)
117 - [npm config](/cli/v8/commands/npm-config)
118 - [npmrc](/cli/v8/configuring-npm/npmrc)
119 - [npm owner](/cli/v8/commands/npm-owner)
120 - [npm whoami](/cli/v8/commands/npm-whoami)
121 - [npm token](/cli/v8/commands/npm-token)