1 ---
2 title: Managing your profile settings
3 redirect_from:
4 - /getting-started/modifying_your_profile_from_command_line
5 ---
6
7 import shared from '~/shared.js'
8
9 You can manage settings for your user account profile from the web or command line.
10
11 ## Managing user account profile settings from the web
12
13 From the web, you can change the following user profile settings:
14
15 - Avatar
16 - Password
17 - Full name
18 - Link GitHub Account
19 - Link Twitter Account
20 - Email address added to package metadata
21 - Two-factor authentication status
22
23 1. <>{shared['user-login'].text}</>
24
25 <>{shared['user-login'].image}</>
26
27 2. <>{shared['account-settings'].text}</>
28
29 <>{shared['account-settings'].image}</>
30
31 ### Linking your npm and GitHub accounts
32
33 1. On the account settings page, you will find a button to link your GitHub account. Click that.
34
35 <Screenshot src="/getting-started/managing-your-npm-user-account/connect-github.png" alt="Screenshot of linking from Account Setting without any accounts linked" />
36
37 2. If you are not currently logged in to GitHub you will be prompted to go through the authentication flow.
38
39 <Screenshot src="/getting-started/managing-your-npm-user-account/github-login.png" alt="GitHub login form" />
40
41 3. After successfully logging in, or if you already had an active browser sessions, you will be prompted to "authorize npm account link", click the button.
42
43 <Screenshot src="/getting-started/managing-your-npm-user-account/github-authorize.png" alt="Landing page to authorize the installation of the npm account linking app" />
44
45 4. You will be redirected to npm and the link will show as successful in your settings.
46
47 <Screenshot src="/getting-started/managing-your-npm-user-account/github-success.png" alt="Screenshot of linking from Account Setting with successfully linked GitHub account" />
48
49 ### Linking your npm and Twitter accounts
50
51 1. On the account settings page, you will find a button to link your Twitter account. Click that.
52
53 <Screenshot src="/getting-started/managing-your-npm-user-account/connect-twitter.png" alt="Screenshot of linking from Account Setting without any accounts linked" />
54
55 2. If you are not currently logged in to Twitter you will be prompted to go through the authentication flow. Click "Log in"
56
57 <Screenshot src="/getting-started/managing-your-npm-user-account/twitter-login.png" alt="Twitter login form" />
58
59 3. After successfully logging in, or if you already had an active browser sessions, you will be prompted to "Authorize app", click the button.
60
61 <Screenshot src="/getting-started/managing-your-npm-user-account/twitter-authorize.png" alt="Landing page to authorize the installation of the npm account linking app" />
62
63 4. You will be redirected to npm and the link will show as successful in your settings.
64
65 <Screenshot src="/getting-started/managing-your-npm-user-account/twitter-success.png" alt="Screenshot of linking from Account Setting with successfully linked Twitter account" />
66
67 ### Removing your GitHub account from npm
68
69 1. On the account settings page, you will find a button to remove your GitHub account. Click that.
70
71 <Screenshot src="/getting-started/managing-your-npm-user-account/github-remove.png" alt="Screenshot of linking from Account Setting with a cursor hovering over remove button" />
72
73 _Note: Clicking remove will only remove the link from your npm account. You need to `revoke` permissions from your [GitHub app authorization settings](https://github.com/settings/apps/authorizations) to permanently remove the integration from your GitHub account_
74
75 ### Removing your Twitter account from npm
76
77 1. On the account settings page, you will find a button to remove your GitHub account. Click that.
78
79 <Screenshot src="/getting-started/managing-your-npm-user-account/twitter-remove.png" alt="Screenshot of linking from Account Setting with a cursor hovering over remove button" />
80
81 _Note: Clicking remove will only remove the link from your npm account. You need to `revoke` permissions from your [Twitter connect apps management page](https://twitter.com/settings/connected_apps) to permanently remove the integration from your Twitter account_
82
83 ## Managing user account profile settings from the command line
84
85 <Note>
86
87 **Note:** Your npm client must be version 5.5.1 or higher to change your account settings from the CLI. To update to the latest version of npm, on the command line, run `npm install npm@latest -g`
88
89 </Note>
90
91 ### Viewing user account profile settings from the command line
92
93 To view your user profile settings from the CLI, on the command line, run the following command:
94
95 ```
96 npm profile get
97 ```
98
99 <Screenshot src="/getting-started/managing-your-npm-user-account/profile-settings-cli.png" alt="Screenshot of command-line interface profile settings table" />
100
101 ### Updating user account profile settings from the command line
102
103 From the CLI, you can change the following properties for your user account:
104
105 - `email`
106 - `two-factor auth`
107 - `fullname`
108 - `homepage`
109 - `freenode`
110 - `password`
111
112 1. On the command line, type the following command, replacing `property` with the name of the property, and `value` with the new value:
113
114 ```
115 npm profile set <prop> <value>
116 ```
117
118 2. When prompted, provide your current password.
119
120 3. If you have enabled two-factor authentication on your account, when prompted, enter a one-time password.
121
122 For more details, see the `profile` [command line documentation](https://docs.npmjs.com/cli/profile).
123
124 #### Setting a password from the command line
125
126 1. On the command line, type the following command:
127
128 ```
129 npm profile set password
130 ```
131
132 2. When prompted, provide your current password.
133
134 3. When prompted, type a new password.
135
136 <Note>
137
138 To protect your account, when you reset your password from the command line, it must:
139
140 - be longer than 10 characters
141 - not contain part of your username
142 - not be in the "[Have I Been Pwned](https://haveibeenpwned.com/)" breach database
143
144 </Note>
145
146 #### Configuring two-factor authentication from the command line
147
148 Enabling two-factor authentication on your account helps protect against unauthorized access to your account and packages.
149
150 To enable, configure, and disable two-factor authentication from the command line, see "[Configuring two-factor authentication](/configuring-two-factor-authentication#configuring-2fa-from-the-command-line)".