Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2015-08-14 03:00:38 +0300
committerRebecca Turner <me@re-becca.org>2015-08-14 22:25:49 +0300
commite833bb4a43077028f6dcc6f837e1c8e7230ff44b (patch)
treeb33c593515eb8db318d88a5f38c957a853da0c39 /doc
parentcf38208a94906d61e4679998d5bc3dbb75346db9 (diff)
docs: updated cli/npm-access.md for new full access api
PR-URL: https://github.com/npm/npm/pull/9011
Diffstat (limited to 'doc')
-rw-r--r--doc/cli/npm-access.md23
1 files changed, 17 insertions, 6 deletions
diff --git a/doc/cli/npm-access.md b/doc/cli/npm-access.md
index 85db7e654..aabdbe03c 100644
--- a/doc/cli/npm-access.md
+++ b/doc/cli/npm-access.md
@@ -6,10 +6,11 @@ npm-access(1) -- Set access level on published packages
npm access public [<package>]
npm access restricted [<package>]
- npm access add <read-only|read-write> <entity> [<package>]
- npm access rm <entity> [<package>]
+ npm access grant <read-only|read-write> <scope:team> [<package>]
+ npm access revoke <scope:team> [<package>]
- npm access ls [<package>]
+ npm access ls-packages [<user>|<scope>|<scope:team>]
+ npm access ls-collaborators [<package> [<user>]]
npm access edit [<package>]
## DESCRIPTION
@@ -23,13 +24,20 @@ subcommand.
* public / restricted:
Set a package to be either publicly accessible or restricted.
-* add / rm:
+* grant / revoke:
Add or remove the ability of users and teams to have read-only or read-write
access to a package.
-* ls:
+* ls-packages:
+
+ Show all of the packages a user or a team is able to access, along with the
+ access level, except for read-only public packages (it won't print the whole
+ registry listing)
+
+* ls-collaborators:
Show all of the access privileges for a package. Will only show permissions
- for packages to which you have at least read access.
+ for packages to which you have at least read access. If `<user>` is passed in,
+ the list is filtered only to teams _that_ user happens to belong to.
* edit:
Set the access privileges for a package at once using `$EDITOR`.
@@ -56,8 +64,11 @@ If your account is not paid, then attempts to publish scoped packages will fail
with an HTTP 402 status code (logically enough), unless you use
`--access=public`.
+Management of teams and team memberships is done with the `npm team` command.
+
## SEE ALSO
+* npm-team(1)
* npm-publish(1)
* npm-config(7)
* npm-registry(7)