Managing team access to organization packages
See Details
Table of contents
As an organization owner or team admin, you can add or remove package access to or from teams in your organization.
Adding package access to a team
Adding package access to a team on the web
- On the npm "Sign In" page, enter your account details and click Sign In.
- In the upper right corner of the page, click your profile picture, then click Account.
- In the left sidebar, click the name of your organization.
- On the organization settings page, click Teams.
-
Beside the team to which you want to add package access, click Packages.
-
On the "Add Packages" page, in the "Package" field, type the name of the package and select from the dropdown menu.
-
Click + Add Existing Package.
-
Beside the package name, click read or read/write to set the team permissions for the package.
Adding package access to a team using the CLI
As an organization owner or team admin, you can use the CLI access
command to add package access to a team on the command line:
npm access grant <read-only|read-write> <org:team> [<package>]
For more information, see "npm-access".
Removing package access from a team
Removing package access from a team on the web
- On the npm "Sign In" page, enter your account details and click Sign In.
- In the upper right corner of the page, click your profile picture, then click Account.
- In the left sidebar, click the name of your organization.
- On the organization settings page, click Teams.
-
Beside the team from which you want to remove package access, click Packages.
-
Beside the name of the package from which you want to remove access, click x.
Removing package access from a team using the CLI
As an organization owner or team admin, you can also use the CLI access
command to revoke package access from a team on the command line:
npm access revoke <org:team> [<package>]
For more information, see "npm-access".
Changing package access for a team
Changing package access for a team on the web
- On the npm "Sign In" page, enter your account details and click Sign In.
- In the upper right corner of the page, click your profile picture, then click Account.
- In the left sidebar, click the name of your organization.
- On the organization settings page, click Teams.
-
Beside the team from which you want to remove package access, click Packages.
-
Beside the package name, click read or read/write to set the team permissions for the package.
Changing package access for a team from the CLI
As an organization owner or team admin, you can change package access for a team from the command line:
npm access
For more information, see the npm-access
CLI documentation.