Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm-logout: add page #14835

Merged
merged 9 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pages/common/npm-login.md
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions pages/common/npm-logout.md
Original file line number Diff line number Diff line change
@@ -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}}`