jpg619/version-bump-tar-2
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 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/) |