1NPM-ORG(1) NPM-ORG(1)
2
3
4
6 npm-org - Manage orgs
7
8 Synopsis
9 npm org set orgname username [developer | admin | owner]
10 npm org rm orgname username
11 npm org ls orgname [<username>]
12
13 alias: ogr
14
15 Note: This command is unaware of workspaces.
16
17 Example
18 Add a new developer to an org:
19
20 $ npm org set my-org @mx-smith
21
22 Add a new admin to an org (or change a developer to an admin):
23
24 $ npm org set my-org @mx-santos admin
25
26 Remove a user from an org:
27
28 $ npm org rm my-org mx-santos
29
30 List all users in an org:
31
32 $ npm org ls my-org
33
34 List all users in JSON format:
35
36 $ npm org ls my-org --json
37
38 See what role a user has in an org:
39
40 $ npm org ls my-org @mx-santos
41
42 Description
43 You can use the npm org commands to manage and view users of an organi‐
44 zation. It supports adding and removing users, changing their roles,
45 listing them, and finding specific ones and their roles.
46
47 Configuration
48 registry
49 • Default: "https://registry.npmjs.org/"
50
51 • Type: URL
52
53
54 The base URL of the npm registry.
55
56 otp
57 • Default: null
58
59 • Type: null or String
60
61
62 This is a one-time password from a two-factor authenticator. It's
63 needed when publishing or changing package permissions with npm access.
64
65 If not set, and a registry response fails with a challenge for a one-
66 time password, npm will prompt on the command line for one.
67
68 json
69 • Default: false
70
71 • Type: Boolean
72
73
74 Whether or not to output JSON data, rather than the normal output.
75
76 • In npm pkg set it enables parsing set values with JSON.parse() be‐
77 fore saving them to your package.json.
78
79
80 Not supported by all npm commands.
81
82 parseable
83 • Default: false
84
85 • Type: Boolean
86
87
88 Output parseable results from commands that write to standard output.
89 For npm search, this will be tab-separated table format.
90
91 See Also
92 • npm help "using orgs"
93
94 • Documentation on npm Orgs ⟨https://docs.npmjs.com/orgs/⟩
95
96
97
98 November 2023 NPM-ORG(1)