mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 14:02:19 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/npm-org
Normal file
33
tldr/npm-org
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm-org
|
||||
|
||||
> Manage organizations.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-org>.
|
||||
|
||||
- Add a new user to an organization:
|
||||
|
||||
`npm org set {{organization_name}} {{username}}`
|
||||
|
||||
- Change a user's role in an organization:
|
||||
|
||||
`npm org set {{organization_name}} {{username}} {{developer|admin|owner}}`
|
||||
|
||||
- Remove a user from an organization:
|
||||
|
||||
`npm org rm {{organization_name}} {{username}}`
|
||||
|
||||
- List all users in an organization:
|
||||
|
||||
`npm org ls {{organization_name}}`
|
||||
|
||||
- List all users in an organization, output in JSON format:
|
||||
|
||||
`npm org ls {{organization_name}} --json`
|
||||
|
||||
- Display a user's role in an organization:
|
||||
|
||||
`npm org ls {{organization_name}} {{username}}`
|
||||
Reference in New Issue
Block a user