Skip to content

Commit

Permalink
npm-org: add page (tldr-pages#14604)
Browse files Browse the repository at this point in the history
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
  • Loading branch information
canonnizq and spageektti authored Nov 4, 2024
1 parent c813555 commit 71804f8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pages/common/npm-org.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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}}`

0 comments on commit 71804f8

Please sign in to comment.