commands.sh

npm adduser

all

Add a registry user account.

More info →

Options (1)

-y, --yesboolean

Create a scoped package during initialization

Example: npm init --scope {{@organization}} {{[-y|--yes]}}

Examples (4)

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 @organization --registry https://registry.example.com

Log out from a specific scope and remove the auth token

npm logout --scope @organization

Create a scoped package during initialization

npm init --scope @organization [-y|--yes]
made by @shridhargupta | data from tldr-pages