]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/man/man1/npm-access.1
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / man / man1 / npm-access.1
1 .TH "NPM\-ACCESS" "1" "October 2016" "" ""
2 .SH "NAME"
3 \fBnpm-access\fR \- Set access level on published packages
4 .SH SYNOPSIS
5 .P
6 .RS 2
7 .nf
8 npm access public [<package>]
9 npm access restricted [<package>]
10
11 npm access grant <read\-only|read\-write> <scope:team> [<package>]
12 npm access revoke <scope:team> [<package>]
13
14 npm access ls\-packages [<user>|<scope>|<scope:team>]
15 npm access ls\-collaborators [<package> [<user>]]
16 npm access edit [<package>]
17 .fi
18 .RE
19 .SH DESCRIPTION
20 .P
21 Used to set access controls on private packages\.
22 .P
23 For all of the subcommands, \fBnpm access\fP will perform actions on the packages
24 in the current working directory if no package name is passed to the
25 subcommand\.
26 .RS 0
27 .IP \(bu 2
28 public / restricted:
29 Set a package to be either publicly accessible or restricted\.
30 .IP \(bu 2
31 grant / revoke:
32 Add or remove the ability of users and teams to have read\-only or read\-write
33 access to a package\.
34 .IP \(bu 2
35 ls\-packages:
36 Show all of the packages a user or a team is able to access, along with the
37 access level, except for read\-only public packages (it won't print the whole
38 registry listing)
39 .IP \(bu 2
40 ls\-collaborators:
41 Show all of the access privileges for a package\. Will only show permissions
42 for packages to which you have at least read access\. If \fB<user>\fP is passed in,
43 the list is filtered only to teams \fIthat\fR user happens to belong to\.
44 .IP \(bu 2
45 edit:
46 Set the access privileges for a package at once using \fB$EDITOR\fP\|\.
47
48 .RE
49 .SH DETAILS
50 .P
51 \fBnpm access\fP always operates directly on the current registry, configurable
52 from the command line using \fB\-\-registry=<registry url>\fP\|\.
53 .P
54 Unscoped packages are \fIalways public\fR\|\.
55 .P
56 Scoped packages \fIdefault to restricted\fR, but you can either publish them as
57 public using \fBnpm publish \-\-access=public\fP, or set their access as public using
58 \fBnpm access public\fP after the initial publish\.
59 .P
60 You must have privileges to set the access of a package:
61 .RS 0
62 .IP \(bu 2
63 You are an owner of an unscoped or scoped package\.
64 .IP \(bu 2
65 You are a member of the team that owns a scope\.
66 .IP \(bu 2
67 You have been given read\-write privileges for a package, either as a member
68 of a team or directly as an owner\.
69
70 .RE
71 .P
72 If your account is not paid, then attempts to publish scoped packages will fail
73 with an HTTP 402 status code (logically enough), unless you use
74 \fB\-\-access=public\fP\|\.
75 .P
76 Management of teams and team memberships is done with the \fBnpm team\fP command\.
77 .SH SEE ALSO
78 .RS 0
79 .IP \(bu 2
80 npm help team
81 .IP \(bu 2
82 npm help publish
83 .IP \(bu 2
84 npm help 7 config
85 .IP \(bu 2
86 npm help 7 registry
87
88 .RE
89