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