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/v7
7 github_path: docs/content/commands/npm-profile.md
8 redirect_from:
9 - /cli-documentation/v7/cli-commands/npm-profile
10 - /cli-documentation/v7/cli-commands/profile
11 - /cli-documentation/v7/commands/npm-profile
12 - /cli-documentation/v7/commands/profile
13 - /cli-documentation/v7/npm-profile
14 - /cli-documentation/v7/profile
15 - /cli/v7/cli-commands/npm-profile
16 - /cli/v7/cli-commands/profile
17 - /cli/v7/commands/profile
18 - /cli/v7/npm-profile
19 - /cli/v7/profile
20 ---
21
22 ### Synopsis
23
24 ```bash
25 npm profile get [--json|--parseable] [<property>]
26 npm profile set [--json|--parseable] <property> <value>
27 npm profile set password
28 npm profile enable-2fa [auth-and-writes|auth-only]
29 npm profile disable-2fa
30 ```
31
32 Note: This command is unaware of workspaces.
33
34 ### Description
35
36 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.
37
38 - `npm profile get [<property>]`: Display all of the properties of your profile, or one or more specific properties. It looks like:
39
40 ```bash
41 +-----------------+---------------------------+
42 | name | example |
43 +-----------------+---------------------------+
44 | email | me@example.com (verified) |
45 +-----------------+---------------------------+
46 | two factor auth | auth-and-writes |
47 +-----------------+---------------------------+
48 | fullname | Example User |
49 +-----------------+---------------------------+
50 | homepage | |
51 +-----------------+---------------------------+
52 | freenode | |
53 +-----------------+---------------------------+
54 | twitter | |
55 +-----------------+---------------------------+
56 | github | |
57 +-----------------+---------------------------+
58 | created | 2015-02-26T01:38:35.892Z |
59 +-----------------+---------------------------+
60 | updated | 2017-10-02T21:29:45.922Z |
61 +-----------------+---------------------------+
62 ```
63
64 - `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
65
66 - `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.
67
68 - `npm profile enable-2fa [auth-and-writes|auth-only]`: Enables two-factor authentication. Defaults to `auth-and-writes` mode. Modes are:
69
70 - `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.
71 - `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`.
72
73 - `npm profile disable-2fa`: Disables two-factor authentication.
74
75 ### Details
76
77 Some of these commands may not be available on non npmjs.com registries.
78
79 ### Configuration
80
81 #### `registry`
82
83 - Default: "https://registry.npmjs.org/"
84 - Type: URL
85
86 The base URL of the npm registry.
87
88 #### `json`
89
90 - Default: false
91 - Type: Boolean
92
93 Whether or not to output JSON data, rather than the normal output.
94
95 - In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`.
96
97 Not supported by all npm commands.
98
99 #### `parseable`
100
101 - Default: false
102 - Type: Boolean
103
104 Output parseable results from commands that write to standard output. For `npm search`, this will be tab-separated table format.
105
106 #### `otp`
107
108 - Default: null
109 - Type: null or String
110
111 This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`.
112
113 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.
114
115 ### See Also
116
117 - [npm adduser](/cli/v7/commands/npm-adduser)
118 - [npm registry](/cli/v7/using-npm/registry)
119 - [npm config](/cli/v7/commands/npm-config)
120 - [npmrc](/cli/v7/configuring-npm/npmrc)
121 - [npm owner](/cli/v7/commands/npm-owner)
122 - [npm whoami](/cli/v7/commands/npm-whoami)
123 - [npm token](/cli/v7/commands/npm-token)