Skip to content

Commit 7fbe07a

Browse files
authored
docs: clean up deprecated npm access commands (#8603)
1 parent ac9143e commit 7fbe07a

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

docs/lib/content/commands/npm-access.md

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,10 @@ For all of the subcommands, `npm access` will perform actions on the packages
1616
in the current working directory if no package name is passed to the
1717
subcommand.
1818

19-
* public / restricted (deprecated):
20-
Set a package to be either publicly accessible or restricted.
21-
22-
* grant / revoke (deprecated):
19+
* grant / revoke:
2320
Add or remove the ability of users and teams to have read-only or read-write
2421
access to a package.
2522

26-
* 2fa-required / 2fa-not-required (deprecated):
27-
Configure whether a package requires that anyone publishing it have two-factor
28-
authentication enabled on their account.
29-
30-
* ls-packages (deprecated):
31-
Show all of the packages a user or a team is able to access, along with the
32-
access level, except for read-only public packages (it won't print the whole
33-
registry listing)
34-
35-
* ls-collaborators (deprecated):
36-
Show all of the access privileges for a package. Will only show permissions
37-
for packages to which you have at least read access. If `<user>` is passed in,
38-
the list is filtered only to teams _that_ user happens to belong to.
39-
40-
* edit (not implemented)
41-
4223
### Details
4324

4425
`npm access` always operates directly on the current registry, configurable
@@ -48,7 +29,7 @@ Unscoped packages are *always public*.
4829

4930
Scoped packages *default to restricted*, but you can either publish them as
5031
public using `npm publish --access=public`, or set their access as public using
51-
`npm access public` after the initial publish.
32+
`npm access set status=public` after the initial publish.
5233

5334
You must have privileges to set the access of a package:
5435

docs/lib/content/using-npm/orgs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ npm access revoke <org:team> [<package>]
7171
* See what org packages a team member can access:
7272

7373
```bash
74-
npm access ls-packages <org> <user>
74+
npm access list packages <org> <user>
7575
```
7676

7777
* See packages available to a specific team:
7878

7979
```bash
80-
npm access ls-packages <org:team>
80+
npm access list packages <org:team>
8181
```
8282

8383
* Check which teams are collaborating on a package:
8484

8585
```bash
86-
npm access ls-collaborators <pkg>
86+
npm access list collaborators <pkg>
8787
```
8888

8989
### See also

0 commit comments

Comments
 (0)