]> 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-access.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-access.md
1 npm-access(1) -- Set access level on published packages
2 =======================================================
3
4 ## SYNOPSIS
5
6     npm access public [<package>]
7     npm access restricted [<package>]
8
9     npm access grant <read-only|read-write> <scope:team> [<package>]
10     npm access revoke <scope:team> [<package>]
11
12     npm access ls-packages [<user>|<scope>|<scope:team>]
13     npm access ls-collaborators [<package> [<user>]]
14     npm access edit [<package>]
15
16 ## DESCRIPTION
17
18 Used to set access controls on private packages.
19
20 For all of the subcommands, `npm access` will perform actions on the packages
21 in the current working directory if no package name is passed to the
22 subcommand.
23
24 * public / restricted:
25   Set a package to be either publicly accessible or restricted.
26
27 * grant / revoke:
28   Add or remove the ability of users and teams to have read-only or read-write
29   access to a package.
30
31 * ls-packages:
32
33   Show all of the packages a user or a team is able to access, along with the
34   access level, except for read-only public packages (it won't print the whole
35   registry listing)
36
37 * ls-collaborators:
38   Show all of the access privileges for a package. Will only show permissions
39   for packages to which you have at least read access. If `<user>` is passed in,
40   the list is filtered only to teams _that_ user happens to belong to.
41
42 * edit:
43   Set the access privileges for a package at once using `$EDITOR`.
44
45 ## DETAILS
46
47 `npm access` always operates directly on the current registry, configurable
48 from the command line using `--registry=<registry url>`.
49
50 Unscoped packages are *always public*.
51
52 Scoped packages *default to restricted*, but you can either publish them as
53 public using `npm publish --access=public`, or set their access as public using
54 `npm access public` after the initial publish.
55
56 You must have privileges to set the access of a package:
57
58 * You are an owner of an unscoped or scoped package.
59 * You are a member of the team that owns a scope.
60 * You have been given read-write privileges for a package, either as a member
61   of a team or directly as an owner.
62
63 If your account is not paid, then attempts to publish scoped packages will fail
64 with an HTTP 402 status code (logically enough), unless you use
65 `--access=public`.
66
67 Management of teams and team memberships is done with the `npm team` command.
68
69 ## SEE ALSO
70
71 * npm-team(1)
72 * npm-publish(1)
73 * npm-config(7)
74 * npm-registry(7)