1NPM-LOGOUT(1) NPM-LOGOUT(1)
2
3
4
6 npm-logout - Log out of the registry
7
8 Synopsis
9 npm logout [--registry=<url>] [--scope=<@scope>]
10
11 Description
12 When logged into a registry that supports token-based authentication,
13 tell the server to end this token's session. This will invalidate the
14 token everywhere you're using it, not just for the current environment.
15
16 When logged into a legacy registry that uses username and password
17 authentication, this will clear the credentials in your user configura‐
18 tion. In this case, it will only affect the current environment.
19
20 If --scope is provided, this will find the credentials for the registry
21 connected to that scope, if set.
22
23 Configuration
24 registry
25 Default: https://registry.npmjs.org/
26
27 The base URL of the npm package registry. If scope is also specified,
28 it takes precedence.
29
30 scope
31 Default: The scope of your current project, if any, otherwise none.
32
33 If specified, you will be logged out of the specified scope. See npm
34 help scope.
35
36 npm logout --scope=@myco
37
38 See Also
39 · npm help adduser
40
41 · npm help registry
42
43 · npm help config
44
45 · npm help whoami
46
47
48
49
50 February 2021 NPM-LOGOUT(1)