]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/cli/npm-adduser.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / cli / npm-adduser.md
1 npm-adduser(1) -- Add a registry user account
2 =============================================
3
4 ## SYNOPSIS
5
6     npm adduser [--registry=url] [--scope=@orgname] [--always-auth]
7
8     aliases: login, add-user
9
10 ## DESCRIPTION
11
12 Create or verify a user named `<username>` in the specified registry, and
13 save the credentials to the `.npmrc` file. If no registry is specified,
14 the default registry will be used (see `npm-config(7)`).
15
16 The username, password, and email are read in from prompts.
17
18 To reset your password, go to <https://www.npmjs.com/forgot>
19
20 To change your email address, go to <https://www.npmjs.com/email-edit>
21
22 You may use this command multiple times with the same user account to
23 authorize on a new machine.  When authenticating on a new machine,
24 the username, password and email address must all match with
25 your existing record.
26
27 `npm login` is an alias to `adduser` and behaves exactly the same way.
28
29 ## CONFIGURATION
30
31 ### registry
32
33 Default: https://registry.npmjs.org/
34
35 The base URL of the npm package registry. If `scope` is also specified,
36 this registry will only be used for packages with that scope. See `npm-scope(7)`.
37
38 ### scope
39
40 Default: none
41
42 If specified, the user and login credentials given will be associated
43 with the specified scope. See `npm-scope(7)`. You can use both at the same time,
44 e.g.
45
46     npm adduser --registry=http://myregistry.example.com --scope=@myco
47
48 This will set a registry for the given scope and login or create a user for
49 that registry at the same time.
50
51 ### always-auth
52
53 Default: false
54
55 If specified, save configuration indicating that all requests to the given
56 registry should include authorization information. Useful for private
57 registries. Can be used with `--registry` and / or `--scope`, e.g.
58
59     npm adduser --registry=http://private-registry.example.com --always-auth
60
61 This will ensure that all requests to that registry (including for tarballs)
62 include an authorization header. This setting may be necessary for use with
63 private registries where metadata and package tarballs are stored on hosts with
64 different hostnames. See `always-auth` in `npm-config(7)` for more details on
65 always-auth. Registry-specific configuration of `always-auth` takes precedence
66 over any global configuration.
67
68 ## SEE ALSO
69
70 * npm-registry(7)
71 * npm-config(1)
72 * npm-config(7)
73 * npmrc(5)
74 * npm-owner(1)
75 * npm-whoami(1)