| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 | .HR.Psection: cli\-commandstitle: npm\-adduserdescription: Set access level on published packages.HR.TH "NPM\-ADDUSER" "1" "August 2021" "" "".SH "NAME"\fBnpm-adduser\fR \- Add a registry user account.SS Synopsis.P.RS 2.nfnpm adduser [\-\-registry=url] [\-\-scope=@orgname] [\-\-always\-auth] [\-\-auth\-type=legacy]aliases: login, add\-user.fi.RE.SS Description.PCreate or verify a user named \fB<username>\fP in the specified registry, andsave the credentials to the \fB\|\.npmrc\fP file\. If no registry is specified,the default registry will be used (see npm help \fBconfig\fP)\..PThe username, password, and email are read in from prompts\..PTo reset your password, go to https://www\.npmjs\.com/forgot.PTo change your email address, go to https://www\.npmjs\.com/email\-edit.PYou may use this command multiple times with the same user account toauthorize on a new machine\.  When authenticating on a new machine,the username, password and email address must all match withyour existing record\..P\fBnpm login\fP is an alias to \fBadduser\fP and behaves exactly the same way\..SS Configuration.SS registry.PDefault: https://registry\.npmjs\.org/.PThe base URL of the npm package registry\. If \fBscope\fP is also specified,this registry will only be used for packages with that scope\. \fBscope\fP defaultsto the scope of the project directory you're currently in, if any\. See npm help \fBscope\fP\|\..SS scope.PDefault: none.PIf specified, the user and login credentials given will be associatedwith the specified scope\. See npm help \fBscope\fP\|\. You can use both at the same time,e\.g\..P.RS 2.nf    npm adduser \-\-registry=http://myregistry\.example\.com \-\-scope=@myco.fi.RE.PThis will set a registry for the given scope and login or create a user forthat registry at the same time\..SS always\-auth.PDefault: false.PIf specified, save configuration indicating that all requests to the givenregistry should include authorization information\. Useful for privateregistries\. Can be used with \fB\-\-registry\fP and / or \fB\-\-scope\fP, e\.g\..P.RS 2.nf    npm adduser \-\-registry=http://private\-registry\.example\.com \-\-always\-auth.fi.RE.PThis will ensure that all requests to that registry (including for tarballs)include an authorization header\. This setting may be necessary for use withprivate registries where metadata and package tarballs are stored on hosts withdifferent hostnames\. See \fBalways\-auth\fP in npm help \fBconfig\fP for more details on always\-auth\. Registry\-specific configuration of \fBalways\-auth\fP takes precedence over any global configuration\..SS auth\-type.RS 0.IP \(bu 2Default: \fB\|'legacy'\fP.IP \(bu 2Type: \fB\|'legacy'\fP, \fB\|'sso'\fP, \fB\|'saml'\fP, \fB\|'oauth'\fP.RE.PWhat authentication strategy to use with \fBadduser\fP/\fBlogin\fP\|\. Some npm registries(for example, npmE) might support alternative auth strategies besides classicusername/password entry in legacy npm\..SS See Also.RS 0.IP \(bu 2npm help registry.IP \(bu 2npm help config.IP \(bu 2npm help npmrc.IP \(bu 2npm help owner.IP \(bu 2npm help whoami.RE
 |