]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/misc/npm-orgs.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / misc / npm-orgs.md
1 npm-orgs(7) -- Working with Teams & Orgs
2 ========================================
3
4 ## DESCRIPTION
5
6 There are three levels of org users:
7
8 1. Super admin, controls billing & adding people to the org.
9 2. Team admin, manages team membership & package access.
10 3. Developer, works on packages they are given access to.
11
12 The super admin is the only person who can add users to the org because it impacts the monthly bill. The super admin will use the website to manage membership. Every org has a `developers` team that all users are automatically added to.
13
14 The team admin is the person who manages team creation, team membership, and package access for teams. The team admin grants package access to teams, not individuals.
15
16 The developer will be able to access packages based on the teams they are on. Access is either read-write or read-only.
17
18 There are two main commands:
19
20 1. `npm team` see npm-team(1) for more details
21 2. `npm access` see npm-access(1) for more details
22
23 ## Team Admins create teams
24
25 * Check who you’ve added to your org:
26
27 ```
28 npm team ls <org>:developers
29 ```
30
31 * 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.
32
33 * Create a new team:
34
35 ```
36 npm team create <org:team>
37 ```
38
39 * Add members to that team:
40
41 ```
42 npm team add <org:team> <user>
43 ```
44
45 ## Publish a package and adjust package access
46
47 * In package directory, run
48
49 ```
50 npm init --scope=<org>
51 ```
52 to scope it for your org & publish as usual
53
54 * Grant access:
55
56 ```
57 npm access grant <read-only|read-write> <org:team> [<package>]
58 ```
59
60 * Revoke access:
61
62 ```
63 npm access revoke <org:team> [<package>]
64 ```
65
66 ## Monitor your package access
67
68 * See what org packages a team member can access:
69
70 ```
71 npm access ls-packages <org> <user>
72 ```
73
74 * See packages available to a specific team:
75
76 ```
77 npm access ls-packages <org:team>
78 ```
79
80 * Check which teams are collaborating on a package:
81
82 ```
83 npm access ls-collaborators <pkg>
84 ```
85
86 ## SEE ALSO
87
88 * npm-team(1)
89 * npm-access(1)
90 * npm-scope(7)