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/v6
7 github_path: docs/content/commands/npm-profile.md
8 redirect_from:
9 - /cli-documentation/v6/cli-commands/npm-profile
10 - /cli-documentation/v6/cli-commands/profile
11 - /cli-documentation/v6/commands/npm-profile
12 - /cli-documentation/v6/commands/profile
13 - /cli-documentation/v6/npm-profile
14 - /cli-documentation/v6/profile
15 - /cli/v6/cli-commands/npm-profile
16 - /cli/v6/cli-commands/profile
17 - /cli/v6/commands/profile
18 - /cli/v6/npm-profile
19 - /cli/v6/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 ### Description
33
34 Change your profile information on the registry. This not be available if you're using a non-npmjs registry.
35
36 - `npm profile get [<property>]`: Display all of the properties of your profile, or one or more specific properties. It looks like:
37
38 ```bash
39 +-----------------+---------------------------+
40 | name | example |
41 +-----------------+---------------------------+
42 | email | me@example.com (verified) |
43 +-----------------+---------------------------+
44 | two factor auth | auth-and-writes |
45 +-----------------+---------------------------+
46 | fullname | Example User |
47 +-----------------+---------------------------+
48 | homepage | |
49 +-----------------+---------------------------+
50 | freenode | |
51 +-----------------+---------------------------+
52 | twitter | |
53 +-----------------+---------------------------+
54 | github | |
55 +-----------------+---------------------------+
56 | created | 2015-02-26T01:38:35.892Z |
57 +-----------------+---------------------------+
58 | updated | 2017-10-02T21:29:45.922Z |
59 +-----------------+---------------------------+
60 ```
61
62 - `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
63
64 - `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.
65
66 - `npm profile enable-2fa [auth-and-writes|auth-only]`: Enables two-factor authentication. Defaults to `auth-and-writes` mode. Modes are:
67 - `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.
68 - `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`.
69
70 - `npm profile disable-2fa`: Disables two-factor authentication.
71
72 ### Details
73
74 All of the `npm profile` subcommands accept `--json` and `--parseable` and will tailor their output based on those. Some of these commands may not be available on non npmjs.com registries.
75
76 ### See Also
77
78 - [npm config](/cli/v6/commands/npm-config)