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 - Email address added to package metadata
20 - Two-factor authentication status
21
22 1. <>{shared['user-login'].text}</>
23
24 <>{shared['user-login'].image}</>
25
26 2. <>{shared['account-settings'].text}</>
27
28 <>{shared['account-settings'].image}</>
29
30 ### Linking your npm and GitHub accounts
31
32 1. On the account settings page, you will find a button to link your GitHub account. Click that.
33
34 <Screenshot src="/getting-started/managing-your-npm-user-account/connect-github.png" alt="Screenshot of linking from Account Setting without any accounts linked" />
35
36 2. If you are not currently logged in to GitHub you will be prompted to go through the authentication flow.
37
38 <Screenshot src="/getting-started/managing-your-npm-user-account/github-login.png" alt="GitHub login form" />
39
40 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.
41
42 <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" />
43
44 4. You will be redirected to npm and the link will show as successful in your settings.
45
46 <Screenshot src="/getting-started/managing-your-npm-user-account/github-success.png" alt="Screenshot of linking from Account Setting with successfully linked GitHub account" />
47
48 ### Removing your GitHub account from npm
49
50 1. On the account settings page, you will find a button to remove your GitHub account. Click that.
51
52 <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" />
53
54 _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_
55
56 ## Managing user account profile settings from the command line
57
58 <Note>
59
60 **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`
61
62 </Note>
63
64 ### Viewing user account profile settings from the command line
65
66 To view your user profile settings from the CLI, on the command line, run the following command:
67
68 ```
69 npm profile get
70 ```
71
72 <Screenshot src="/getting-started/managing-your-npm-user-account/profile-settings-cli.png" alt="Screenshot of command-line interface profile settings table" />
73
74 ### Updating user account profile settings from the command line
75
76 From the CLI, you can change the following properties for your user account:
77
78 - `email`
79 - `two-factor auth`
80 - `fullname`
81 - `homepage`
82 - `freenode`
83 - `password`
84
85 1. On the command line, type the following command, replacing `property` with the name of the property, and `value` with the new value:
86
87 ```
88 npm profile set <prop> <value>
89 ```
90
91 2. When prompted, provide your current password.
92
93 3. If you have enabled two-factor authentication on your account, when prompted, enter a one-time password.
94
95 For more details, see the `profile` [command line documentation](https://docs.npmjs.com/cli/profile).
96
97 #### Setting a password from the command line
98
99 1. On the command line, type the following command:
100
101 ```
102 npm profile set password
103 ```
104
105 2. When prompted, provide your current password.
106
107 3. When prompted, type a new password.
108
109 <Note>
110
111 To protect your account, when you reset your password from the command line, it must:
112
113 - be longer than 10 characters
114 - not contain part of your username
115 - not be in the "[Have I Been Pwned](https://haveibeenpwned.com/)" breach database
116
117 </Note>
118
119 #### Configuring two-factor authentication from the command line
120
121 Enabling two-factor authentication on your account helps protect against unauthorized access to your account and packages.
122
123 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)".