.TH "NPM\-LOGOUT" "1" "November 2023" "9.2.0" .SH "NAME" \fBnpm-logout\fR .SH Synopsis .P Note: This command is unaware of workspaces\. .SH Description .P When logged into a registry that supports token\-based authentication, tell .br the server to end this token's session\. This will invalidate the token .br everywhere you're using it, not just for the current environment\. .P When logged into a legacy registry that uses username and password .br authentication, this will clear the credentials in your user configuration\. .br In this case, it will \fIonly\fR affect the current environment\. .P If \fB\-\-scope\fP is provided, this will find the credentials for the registry .br connected to that scope, if set\. .SH Configuration .SH See Also .RS 1 .IP \(bu 2 npm adduser .IP \(bu 2 npm registry .IP \(bu 2 npm config .IP \(bu 2 npm whoami .RE