npm-logout.1 1.3 KB

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