Link Search Menu Expand Document

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}}