1NPM-LOGOUT(1) NPM-LOGOUT(1)
2
3
4
6 npm-logout - Log out of the registry
7
9 npm logout [--registry=<url>] [--scope=<@scope>]
10
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
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 7 npm-scope.
35
36 npm logout --scope=@myco
37
39 · npm help adduser
40
41 · npm help 7 registry
42
43 · npm help config
44
45 · npm help 7 config
46
47 · npm help 5 npmrc
48
49 · npm help whoami
50
51
52
53
54
55 October 2019 NPM-LOGOUT(1)