1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 22:15:42 +02:00

npm-adduser: add page (#14418)

This commit is contained in:
Bharatesh 2024-10-30 10:39:12 +05:30 committed by GitHub
parent ada35663ba
commit 95be8d6dd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,20 @@
# npm adduser
> Add a registry user account.
> More information: <https://docs.npmjs.com/cli/npm-adduser>.
- Create a new user in the specified registry and save credentials to `.npmrc`:
`npm adduser --registry={{registry_url}}`
- Log in to a private registry with a specific scope:
`npm login --scope={{@mycorp}} --registry={{https://registry.mycorp.com}}`
- Log out from a specific scope and remove the auth token:
`npm logout --scope={{@mycorp}}`
- Create a scoped package during initialization:
`npm init --scope={{@foo}} {{--yes}}`