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