2021-05-10 17:31:02 -04:00
|
|
|
.TH "NPM\-ORG" "1" "May 2021" "" ""
|
2019-01-29 14:43:00 -08:00
|
|
|
.SH "NAME"
|
2019-11-18 21:01:39 +02:00
|
|
|
\fBnpm-org\fR \- Manage orgs
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Synopsis
|
2019-01-29 14:43:00 -08:00
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
npm org set <orgname> <username> [developer | admin | owner]
|
|
|
|
npm org rm <orgname> <username>
|
|
|
|
npm org ls <orgname> [<username>]
|
|
|
|
.fi
|
|
|
|
.RE
|
2021-03-23 14:58:11 -04:00
|
|
|
.P
|
|
|
|
Note: This command is unaware of workspaces\.
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Example
|
2019-01-29 14:43:00 -08:00
|
|
|
.P
|
|
|
|
Add a new developer to an org:
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
$ npm org set my\-org @mx\-smith
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
Add a new admin to an org (or change a developer to an admin):
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
$ npm org set my\-org @mx\-santos admin
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
Remove a user from an org:
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
$ npm org rm my\-org mx\-santos
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
List all users in an org:
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
$ npm org ls my\-org
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
List all users in JSON format:
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
$ npm org ls my\-org \-\-json
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
See what role a user has in an org:
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
$ npm org ls my\-org @mx\-santos
|
|
|
|
.fi
|
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Description
|
2019-01-29 14:43:00 -08:00
|
|
|
.P
|
2020-12-11 18:54:56 -05:00
|
|
|
You can use the \fBnpm org\fP 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\.
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS See Also
|
2019-01-29 14:43:00 -08:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
npm help using orgs
|
|
|
|
.IP \(bu 2
|
2019-01-29 14:43:00 -08:00
|
|
|
Documentation on npm Orgs \fIhttps://docs\.npmjs\.com/orgs/\fR
|
|
|
|
|
|
|
|
.RE
|