1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:42:10 +02:00

npm-logout: add page (#14835)

This commit is contained in:
Martin Blume 2024-11-16 13:11:03 +01:00 committed by GitHub
parent f95f7c0242
commit dc01fda3f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 2 deletions

View file

@ -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}}`

View file

@ -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}}`