www.LinuxHowtos.org
NPM\-ORGS
Section: (7)Updated: December 2016
Index Return to Main Contents
NAME
npm-orgs - Working with Teams & OrgsDESCRIPTION
There are three levels of org users:-
- 1.
- Super admin, controls billing & adding people to the org.
- 2.
- Team admin, manages team membership & package access.
- 3.
-
Developer, works on packages they are given access to.
-
- 1.
- npm team see npm help team for more details
- 2.
-
npm access see npm help access for more details
Team Admins create teams
-
- *
-
Check who you’ve added to your org:
-
npm team ls <org>:developers
-
- *
- Each org is automatically given a developers team, so you can see the whole list of team members in your org. This team automatically gets read-write access to all packages, but you can change that with the access command.
- *
-
Create a new team:
-
npm team create <org:team>
-
- *
-
Add members to that team:
-
npm team add <org:team> <user>
Publish a package and adjust package access
-
- *
-
In package directory, run
-
npm init --scope=<org>
-
- *
-
Grant access:
-
npm access grant <read-only|read-write> <org:team> [<package>]
-
- *
-
Revoke access:
-
npm access revoke <org:team> [<package>]
Monitor your package access
-
- *
-
See what org packages a team member can access:
-
npm access ls-packages <org> <user>
-
- *
-
See packages available to a specific team:
-
npm access ls-packages <org:team>
-
- *
-
Check which teams are collaborating on a package:
-
npm access ls-collaborators <pkg>
SEE ALSO
-
- *
- npm help team
- *
- npm help access
- *
-
npm help 7 scope