2021-05-10 17:31:02 -04:00
|
|
|
.TH "NPM\-LOGOUT" "1" "May 2021" "" ""
|
2015-02-20 09:03:34 -08:00
|
|
|
.SH "NAME"
|
2019-11-18 21:01:39 +02:00
|
|
|
\fBnpm-logout\fR \- Log out of the registry
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Synopsis
|
2015-02-20 09:03:34 -08:00
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
2015-10-09 23:13:57 -07:00
|
|
|
npm logout [\-\-registry=<url>] [\-\-scope=<@scope>]
|
2015-02-20 09:03:34 -08:00
|
|
|
.fi
|
|
|
|
.RE
|
2021-03-23 14:58:11 -04:00
|
|
|
.P
|
|
|
|
Note: This command is unaware of workspaces\.
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Description
|
2015-02-20 09:03:34 -08:00
|
|
|
.P
|
2020-12-11 18:54:56 -05:00
|
|
|
When logged into a registry that supports token\-based authentication, tell
|
|
|
|
the server to end this token's session\. This will invalidate the token
|
|
|
|
everywhere you're using it, not just for the current environment\.
|
2015-02-20 09:03:34 -08:00
|
|
|
.P
|
2020-12-11 18:54:56 -05:00
|
|
|
When logged into a legacy registry that uses username and password
|
|
|
|
authentication, this will clear the credentials in your user configuration\.
|
|
|
|
In this case, it will \fIonly\fR affect the current environment\.
|
2015-02-20 09:03:34 -08:00
|
|
|
.P
|
2015-07-24 15:09:52 -07:00
|
|
|
If \fB\-\-scope\fP is provided, this will find the credentials for the registry
|
2015-02-20 09:03:34 -08:00
|
|
|
connected to that scope, if set\.
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Configuration
|
2015-02-20 09:03:34 -08:00
|
|
|
.SS registry
|
|
|
|
.P
|
2019-07-24 23:00:03 -07:00
|
|
|
Default: https://registry\.npmjs\.org/
|
2015-02-20 09:03:34 -08:00
|
|
|
.P
|
2015-07-24 15:09:52 -07:00
|
|
|
The base URL of the npm package registry\. If \fBscope\fP is also specified,
|
2015-02-20 09:03:34 -08:00
|
|
|
it takes precedence\.
|
|
|
|
.SS scope
|
|
|
|
.P
|
2016-12-18 20:22:09 -08:00
|
|
|
Default: The scope of your current project, if any, otherwise none\.
|
2015-02-20 09:03:34 -08:00
|
|
|
.P
|
2019-11-18 21:01:39 +02:00
|
|
|
If specified, you will be logged out of the specified scope\. See npm help \fBscope\fP\|\.
|
2015-02-20 09:03:34 -08:00
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
2016-03-29 23:30:51 -07:00
|
|
|
npm logout \-\-scope=@myco
|
2015-02-20 09:03:34 -08:00
|
|
|
.fi
|
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS See Also
|
2015-02-20 09:03:34 -08:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help adduser
|
2015-02-20 09:03:34 -08:00
|
|
|
.IP \(bu 2
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help registry
|
2015-02-20 09:03:34 -08:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help config
|
2015-02-20 09:03:34 -08:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help whoami
|
2015-02-20 09:03:34 -08:00
|
|
|
|
|
|
|
.RE
|