From dc01fda3f440797910248bc86734c40d7372487e Mon Sep 17 00:00:00 2001 From: Martin Blume Date: Sat, 16 Nov 2024 13:11:03 +0100 Subject: [PATCH] npm-logout: add page (#14835) --- pages/common/npm-login.md | 5 +++-- pages/common/npm-logout.md | 13 +++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 pages/common/npm-logout.md diff --git a/pages/common/npm-login.md b/pages/common/npm-login.md index 2e03830b5..d27fcf4c0 100644 --- a/pages/common/npm-login.md +++ b/pages/common/npm-login.md @@ -1,16 +1,17 @@ # npm login > Login to a registry user account. +> See also: `npm logout` for logging out. > More information: . - Login to a registry user account and save the credentials to the `.npmrc` file: `npm login` -- Login, using a custom registry: +- Login using a custom registry: `npm login --registry={{registry_url}}` -- Login, using a specific authentication strategy: +- Login using a specific authentication strategy: `npm login --auth-type={{legacy|web}}` diff --git a/pages/common/npm-logout.md b/pages/common/npm-logout.md new file mode 100644 index 000000000..70ee3b04a --- /dev/null +++ b/pages/common/npm-logout.md @@ -0,0 +1,13 @@ +# npm logout + +> Logout of the registry user account. +> See also: `npm login` for logging in. +> More information: . + +- Logout of the registry user account: + +`npm logout` + +- Logout using a custom registry: + +`npm logout --registry={{registry_url}}`