Quellcode durchsuchen

npm-logout: add page (#14835)

Martin Blume vor 3 Monaten
Ursprung
Commit
dc01fda3f4
2 geänderte Dateien mit 16 neuen und 2 gelöschten Zeilen
  1. 3 2
      pages/common/npm-login.md
  2. 13 0
      pages/common/npm-logout.md

+ 3 - 2
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: <https://docs.npmjs.com/cli/commands/npm-login>.
 
 - 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}}`

+ 13 - 0
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: <https://docs.npmjs.com/cli/commands/npm-logout>.
+
+- Logout of the registry user account:
+
+`npm logout`
+
+- Logout using a custom registry:
+
+`npm logout --registry={{registry_url}}`