From eda195cdf643106412cdb6dbe4ed81163c13d429 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 28 Sep 2025 19:16:42 -0400 Subject: [PATCH 1/3] chore: Remove deprecated npm access commands They were removed by 9c32c6c8d6fc5bdfd6af685731fe26920d7e5446 Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/lib/content/commands/npm-access.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/docs/lib/content/commands/npm-access.md b/docs/lib/content/commands/npm-access.md index 312546f05c88e..04d63c73460ff 100644 --- a/docs/lib/content/commands/npm-access.md +++ b/docs/lib/content/commands/npm-access.md @@ -16,29 +16,10 @@ For all of the subcommands, `npm access` will perform actions on the packages in the current working directory if no package name is passed to the subcommand. -* public / restricted (deprecated): - Set a package to be either publicly accessible or restricted. - * grant / revoke (deprecated): Add or remove the ability of users and teams to have read-only or read-write access to a package. -* 2fa-required / 2fa-not-required (deprecated): - Configure whether a package requires that anyone publishing it have two-factor - authentication enabled on their account. - -* ls-packages (deprecated): - 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 (deprecated): - Show all of the access privileges for a package. Will only show permissions - for packages to which you have at least read access. If `` is passed in, - the list is filtered only to teams _that_ user happens to belong to. - -* edit (not implemented) - ### Details `npm access` always operates directly on the current registry, configurable From aa20a679a9f17735e34c741a27acb86a068f7044 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 28 Sep 2025 19:18:37 -0400 Subject: [PATCH 2/3] docs: Fix npm access references Update to match 9c32c6c8d6fc5bdfd6af685731fe26920d7e5446 Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/lib/content/commands/npm-access.md | 2 +- docs/lib/content/using-npm/orgs.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/lib/content/commands/npm-access.md b/docs/lib/content/commands/npm-access.md index 04d63c73460ff..c84ab167bc4a6 100644 --- a/docs/lib/content/commands/npm-access.md +++ b/docs/lib/content/commands/npm-access.md @@ -29,7 +29,7 @@ Unscoped packages are *always public*. Scoped packages *default to restricted*, but you can either publish them as public using `npm publish --access=public`, or set their access as public using -`npm access public` after the initial publish. +`npm access set status=public` after the initial publish. You must have privileges to set the access of a package: diff --git a/docs/lib/content/using-npm/orgs.md b/docs/lib/content/using-npm/orgs.md index 5fe9ac6de377f..0732649f027f8 100644 --- a/docs/lib/content/using-npm/orgs.md +++ b/docs/lib/content/using-npm/orgs.md @@ -71,19 +71,19 @@ npm access revoke [] * See what org packages a team member can access: ```bash -npm access ls-packages +npm access list packages ``` * See packages available to a specific team: ```bash -npm access ls-packages +npm access list packages ``` * Check which teams are collaborating on a package: ```bash -npm access ls-collaborators +npm access list collaborators ``` ### See also From 655752f5b5bd4c170a590539fb992ff18f1fe346 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:41:14 -0400 Subject: [PATCH 3/3] docs: Undeprecate `npm access` <`grant`|`revoke`> Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/lib/content/commands/npm-access.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lib/content/commands/npm-access.md b/docs/lib/content/commands/npm-access.md index c84ab167bc4a6..907b94e7edea2 100644 --- a/docs/lib/content/commands/npm-access.md +++ b/docs/lib/content/commands/npm-access.md @@ -16,7 +16,7 @@ For all of the subcommands, `npm access` will perform actions on the packages in the current working directory if no package name is passed to the subcommand. -* grant / revoke (deprecated): +* grant / revoke: Add or remove the ability of users and teams to have read-only or read-write access to a package.