1NPM-TEAM(1) NPM-TEAM(1)
2
3
4
6 npm-team - Manage organization teams and team memberships
7
8 Synopsis
9 npm team create <scope:team>
10 npm team destroy <scope:team>
11
12 npm team add <scope:team> <user>
13 npm team rm <scope:team> <user>
14
15 npm team ls <scope>|<scope:team>
16
17 npm team edit <scope:team>
18
19 Description
20 Used to manage teams in organizations, and change team memberships.
21 Does not handle permissions for packages.
22
23 Teams must always be fully qualified with the organization/scope they
24 belong to when operating on them, separated by a colon (:). That is, if
25 you have a wombats team in a wisdom organization, you must always refer
26 to that team as wisdom:wombats in these commands.
27
28 If you have two-factor authentication enabled in auth-and-writes mode,
29 then you can provide a code from your authenticator with [--otp <otp‐
30 code>]. If you don't include this then you will be prompted.
31
32 • create / destroy: Create a new team, or destroy an existing one.
33 Note: You cannot remove the developers team, <a
34 href="https://docs.npmjs.com/about-developers-team" tar‐
35 get="_blank">learn more.</a>
36
37 • add / rm: Add a user to an existing team, or remove a user from a
38 team they belong to.
39
40 • ls: If performed on an organization name, will return a list of ex‐
41 isting teams under that organization. If performed on a team, it will
42 instead return a list of all users belonging to that particular team.
43
44 • edit: Edit a current team.
45
46
47 Details
48 npm team always operates directly on the current registry, configurable
49 from the command line using --registry=<registry url>.
50
51 In order to create teams and manage team membership, you must be a team
52 admin under the given organization. Listing teams and team memberships
53 may be done by any member of the organizations.
54
55 Organization creation and management of team admins and organization
56 members is done through the website, not the npm CLI.
57
58 To use teams to manage permissions on packages belonging to your orga‐
59 nization, use the npm access command to grant or revoke the appropriate
60 permissions.
61
62 See Also
63 • npm help access
64
65 • npm help registry
66
67
68
69
70 April 2021 NPM-TEAM(1)