Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
orgs.md99 linesDownload Raw Back to using-npm
1---
2title: Organizations
3section: 7
4description: Working with teams & organizations
5---
6
7### Description
8
9There are three levels of org users:
10
111. Super admin, controls billing & adding people to the org.
122. Team admin, manages team membership & package access.
133. Developer, works on packages they are given access to.
14
15The super admin is the only person who can add users to the org because it impacts the monthly bill.
16The super admin will use the website to manage membership.
17Every org has a `developers` team that all users are automatically added to.
18
19The team admin is the person who manages team creation, team membership, and package access for teams.
20The team admin grants package access to teams, not individuals.
21
22The developer will be able to access packages based on the teams they are on.
23Access is either read-write or read-only.
24
25There are two main commands:
26
271. `npm team` see [npm team](/commands/npm-team) for more details
282. `npm access` see [npm access](/commands/npm-access) for more details
29
30### Team Admins create teams
31
32* Check who you’ve added to your org:
33
34```bash
35npm team ls <org>:developers
36```
37
38* Each org is automatically given a `developers` team, so you can see the whole list of team members in your org.
39This team automatically gets read-write access to all packages, but you can change that with the `access` command.
40
41* Create a new team:
42
43```bash
44npm team create <org:team>
45```
46
47* Add members to that team:
48
49```bash
50npm team add <org:team> <user>
51```
52
53### Publish a package and adjust package access
54
55* In package directory, run
56
57```bash
58npm init --scope=<org>
59```
60to scope it for your org & publish as usual
61
62* Grant access:  
63
64```bash
65npm access grant <read-only|read-write> <org:team> [<package>]
66```
67
68* Revoke access:
69
70```bash
71npm access revoke <org:team> [<package>]
72```
73
74### Monitor your package access
75
76* See what org packages a team member can access:
77
78```bash
79npm access list packages <org> <user>
80```
81
82* See packages available to a specific team:
83
84```bash
85npm access list packages <org:team>
86```
87
88* Check which teams are collaborating on a package:
89
90```bash
91npm access list collaborators <pkg>
92```
93
94### See also
95
96* [npm team](/commands/npm-team)
97* [npm access](/commands/npm-access)
98* [npm scope](/using-npm/scope)
99 
codekingpro/portable-devtools · Team Ai