Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
npm-adduser.194 linesDownload Raw Back to man1
1.TH "NPM-ADDUSER" "1" "April 2026" "NPM@11.13.0" ""
2.SH "NAME"
3\fBnpm-adduser\fR - Add a registry user account
4.SS "Synopsis"
5.P
6.RS 2
7.nf
8npm adduser
9
10alias: add-user
11.fi
12.RE
13.P
14Note: This command is unaware of workspaces.
15.SS "Description"
16.P
17Create a new user in the specified registry, and save the credentials to the \fB.npmrc\fR file. If no registry is specified, the default registry will be used (see npm help registry).
18.P
19When you run \fBnpm adduser\fR, the CLI automatically generates a legacy token of \fBpublish\fR type. For more information, see \fBAbout legacy tokens\fR \fI\(la/about-access-tokens#about-legacy-tokens\(ra\fR.
20.P
21When using \fBlegacy\fR for your \fBauth-type\fR, the username, password, and email are read in from prompts.
22.SS "Configuration"
23.SS "\fBregistry\fR"
24.RS 0
25.IP \(bu 4
26Default: "https://registry.npmjs.org/"
27.IP \(bu 4
28Type: URL
29.RE 0
30
31.P
32The base URL of the npm registry.
33.SS "\fBscope\fR"
34.RS 0
35.IP \(bu 4
36Default: the scope of the current project, if any, or ""
37.IP \(bu 4
38Type: String
39.RE 0
40
41.P
42Associate an operation with a scope for a scoped registry.
43.P
44Useful when logging in to or out of a private registry:
45.P
46.RS 2
47.nf
48# log in, linking the scope to the custom registry
49npm login --scope=@mycorp --registry=https://registry.mycorp.com
50
51# log out, removing the link and the auth token
52npm logout --scope=@mycorp
53.fi
54.RE
55.P
56This will cause \fB@mycorp\fR to be mapped to the registry for future installation of packages specified according to the pattern \fB@mycorp/package\fR.
57.P
58This will also cause \fBnpm init\fR to create a scoped package.
59.P
60.RS 2
61.nf
62# accept all defaults, and create a package named "@foo/whatever",
63# instead of just named "whatever"
64npm init --scope=@foo --yes
65.fi
66.RE
67.SS "\fBauth-type\fR"
68.RS 0
69.IP \(bu 4
70Default: "web"
71.IP \(bu 4
72Type: "legacy" or "web"
73.RE 0
74
75.P
76What authentication strategy to use with \fBlogin\fR. Note that if an \fBotp\fR config is given, this value will always be set to \fBlegacy\fR.
77.SS "See Also"
78.RS 0
79.IP \(bu 4
80npm help registry
81.IP \(bu 4
82npm help config
83.IP \(bu 4
84npm help npmrc
85.IP \(bu 4
86npm help owner
87.IP \(bu 4
88npm help whoami
89.IP \(bu 4
90npm help token
91.IP \(bu 4
92npm help profile
93.RE 0
94 
codekingpro/portable-devtools · Team Ai