• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2section: cli-commands
3title: npm-org
4description: Manage orgs
5---
6
7# npm-org(1)
8
9## Manage orgs
10
11### Synopsis
12
13```bash
14npm org set <orgname> <username> [developer | admin | owner]
15npm org rm <orgname> <username>
16npm org ls <orgname> [<username>]
17```
18
19### Example
20
21Add a new developer to an org:
22
23```bash
24$ npm org set my-org @mx-smith
25```
26
27Add a new admin to an org (or change a developer to an admin):
28
29```bash
30$ npm org set my-org @mx-santos admin
31```
32
33Remove a user from an org:
34
35```bash
36$ npm org rm my-org mx-santos
37```
38
39List all users in an org:
40
41```bash
42$ npm org ls my-org
43```
44
45List all users in JSON format:
46
47```bash
48$ npm org ls my-org --json
49```
50
51See what role a user has in an org:
52
53```bash
54$ npm org ls my-org @mx-santos
55```
56
57### Description
58
59You can use the `npm org` commands to manage and view users of an organization.
60It supports adding and removing users, changing their roles, listing them, and
61finding specific ones and their roles.
62
63### See Also
64
65* [Documentation on npm Orgs](https://docs.npmjs.com/orgs/)
66