mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 13:35:24 +02:00
npm-{login,logout}: update page (#14857)
This commit is contained in:
parent
b280d37776
commit
3a97d7dc7a
2 changed files with 7 additions and 7 deletions
|
@ -1,17 +1,17 @@
|
||||||
# npm login
|
# npm login
|
||||||
|
|
||||||
> Login to a registry user account.
|
> Log in to a registry user account.
|
||||||
> See also: `npm logout` for logging out.
|
> See also: `npm logout` for logging out.
|
||||||
> More information: <https://docs.npmjs.com/cli/commands/npm-login>.
|
> More information: <https://docs.npmjs.com/cli/commands/npm-login>.
|
||||||
|
|
||||||
- Login to a registry user account and save the credentials to the `.npmrc` file:
|
- Log in to a registry user account and save the credentials to the `.npmrc` file:
|
||||||
|
|
||||||
`npm login`
|
`npm login`
|
||||||
|
|
||||||
- Login using a custom registry:
|
- Log in using a custom registry:
|
||||||
|
|
||||||
`npm login --registry={{registry_url}}`
|
`npm login --registry={{registry_url}}`
|
||||||
|
|
||||||
- Login using a specific authentication strategy:
|
- Log in using a specific authentication strategy:
|
||||||
|
|
||||||
`npm login --auth-type={{legacy|web}}`
|
`npm login --auth-type={{legacy|web}}`
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# npm logout
|
# npm logout
|
||||||
|
|
||||||
> Logout of the registry user account.
|
> Log out of the registry user account.
|
||||||
> See also: `npm login` for logging in.
|
> See also: `npm login` for logging in.
|
||||||
> More information: <https://docs.npmjs.com/cli/commands/npm-logout>.
|
> More information: <https://docs.npmjs.com/cli/commands/npm-logout>.
|
||||||
|
|
||||||
- Logout of the registry user account:
|
- Log out of the registry user account:
|
||||||
|
|
||||||
`npm logout`
|
`npm logout`
|
||||||
|
|
||||||
- Logout using a custom registry:
|
- Log out using a custom registry:
|
||||||
|
|
||||||
`npm logout --registry={{registry_url}}`
|
`npm logout --registry={{registry_url}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue