• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2section: cli-commands
3title: npm-profile
4description: Change settings on your registry profile
5---
6
7# npm-profile(1)
8## Change settings on your registry profile
9
10### Synopsis
11
12```bash
13npm profile get [--json|--parseable] [<property>]
14npm profile set [--json|--parseable] <property> <value>
15npm profile set password
16npm profile enable-2fa [auth-and-writes|auth-only]
17npm profile disable-2fa
18```
19
20### Description
21
22Change your profile information on the registry.  This not be available if
23you're using a non-npmjs registry.
24
25* `npm profile get [<property>]`:
26  Display all of the properties of your profile, or one or more specific
27  properties.  It looks like:
28
29```bash
30+-----------------+---------------------------+
31| name            | example                   |
32+-----------------+---------------------------+
33| email           | me@example.com (verified) |
34+-----------------+---------------------------+
35| two factor auth | auth-and-writes           |
36+-----------------+---------------------------+
37| fullname        | Example User              |
38+-----------------+---------------------------+
39| homepage        |                           |
40+-----------------+---------------------------+
41| freenode        |                           |
42+-----------------+---------------------------+
43| twitter         |                           |
44+-----------------+---------------------------+
45| github          |                           |
46+-----------------+---------------------------+
47| created         | 2015-02-26T01:38:35.892Z  |
48+-----------------+---------------------------+
49| updated         | 2017-10-02T21:29:45.922Z  |
50+-----------------+---------------------------+
51```
52
53* `npm profile set <property> <value>`:
54  Set the value of a profile property. You can set the following properties this way:
55    email, fullname, homepage, freenode, twitter, github
56
57* `npm profile set password`:
58  Change your password.  This is interactive, you'll be prompted for your
59  current password and a new password.  You'll also be prompted for an OTP
60  if you have two-factor authentication enabled.
61
62* `npm profile enable-2fa [auth-and-writes|auth-only]`:
63  Enables two-factor authentication. Defaults to `auth-and-writes` mode. Modes are:
64  * `auth-only`: Require an OTP when logging in or making changes to your
65    account's authentication.  The OTP will be required on both the website
66    and the command line.
67  * `auth-and-writes`: Requires an OTP at all the times `auth-only` does, and also requires one when
68    publishing a module, setting the `latest` dist-tag, or changing access
69    via `npm access` and `npm owner`.
70
71* `npm profile disable-2fa`:
72  Disables two-factor authentication.
73
74### Details
75
76All of the `npm profile` subcommands accept `--json` and `--parseable` and
77will tailor their output based on those.  Some of these commands may not be
78available on non npmjs.com registries.
79
80### See Also
81
82* [npm config](/cli-commands/npm-config)
83