1NPM-ADDUSER(1)                                                  NPM-ADDUSER(1)
2
3
4

NAME

6       npm-adduser - Add a registry user account
7
8   Synopsis
9         npm adduser
10
11         alias: add-user
12
13       Note: This command is unaware of workspaces.
14
15   Description
16       Create  a  new user in the specified registry, and save the credentials
17       to the .npmrc file. If no registry is specified, the  default  registry
18       will be used (see npm help registry).
19
20       When using legacy for your auth-type, the username, password, and email
21       are read in from prompts.
22
23   Configuration
24   registry
25       •   Default: "https://registry.npmjs.org/"
26
27       •   Type: URL
28
29
30       The base URL of the npm registry.
31
32   scope
33       •   Default: the scope of the current project, if any, or ""
34
35       •   Type: String
36
37
38       Associate an operation with a scope for a scoped registry.
39
40       Useful when logging in to or out of a private registry:
41
42         # log in, linking the scope to the custom registry
43         npm login --scope=@mycorp --registry=https://registry.mycorp.com
44
45         # log out, removing the link and the auth token
46         npm logout --scope=@mycorp
47
48       This will cause @mycorp to be mapped to the registry for future instal‐
49       lation of packages specified according to the pattern @mycorp/package.
50
51       This will also cause npm init to create a scoped package.
52
53         # accept all defaults, and create a package named "@foo/whatever",
54         # instead of just named "whatever"
55         npm init --scope=@foo --yes
56
57   auth-type
58       •   Default: "web"
59
60       •   Type: "legacy" or "web"
61
62
63       What  authentication  strategy  to  use with login. Note that if an otp
64       config is given, this value will always be set to legacy.
65
66   See Also
67       •   npm help registry
68
69       •   npm help config
70
71       •   npm help npmrc
72
73       •   npm help owner
74
75       •   npm help whoami
76
77       •   npm help token
78
79       •   npm help profile
80
81
82
83                                 November 2023                  NPM-ADDUSER(1)
Impressum