Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

npm-org (1)

Name

npm-org - Manage orgs Synopsis npm org set orgname username [developer | admin | owner] npm org rm orgname username npm org ls orgname [<username>] alias: ogr Note: This command is unaware of workspaces. Example Add a new developer to an org: $ npm org set my-org @mx-smith Add a new admin to an org (or change a developer to an admin): $ npm org set my-org @mx-santos admin Remove a user from an org: $ npm org rm my-org mx-santos List all users in an org: $ npm org ls my-org List all users in JSON format: $ npm org ls my-org --json See what role a user has in an org: $ npm org ls my-org @mx-santos Description You can use the npm org commands to manage and view users of an organi- zation. It supports adding and removing users, changing their roles, listing them, and finding specific ones and their roles. Configuration registry o Default: "https://registry.npmjs.org/" o Type: URL The base URL of the npm registry. otp o Default: null o Type: null or String This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with npm access. If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one. json o Default: false o Type: Boolean Whether or not to output JSON data, rather than the normal output. o In npm pkg set it enables parsing set values with JSON.parse() before saving them to your package.json. Not supported by all npm commands. parseable o Default: false o Type: Boolean Output parseable results from commands that write to standard output. For npm search, this will be tab-separated table format. See Also o npm help using orgs o Documentation on npm Orgs https://docs.npmjs.com/orgs/

Synopsis

Please see following description for synopsis

Description

NPM-ORG(1)                                                          NPM-ORG(1)



NAME
       npm-org - Manage orgs

   Synopsis
         npm org set orgname username [developer | admin | owner]
         npm org rm orgname username
         npm org ls orgname [<username>]

         alias: ogr

       Note: This command is unaware of workspaces.

   Example
       Add a new developer to an org:

         $ npm org set my-org @mx-smith

       Add a new admin to an org (or change a developer to an admin):

         $ npm org set my-org @mx-santos admin

       Remove a user from an org:

         $ npm org rm my-org mx-santos

       List all users in an org:

         $ npm org ls my-org

       List all users in JSON format:

         $ npm org ls my-org --json

       See what role a user has in an org:

         $ npm org ls my-org @mx-santos

   Description
       You can use the npm org commands to manage and view users of an organi-
       zation.  It supports adding and removing users, changing  their  roles,
       listing them, and finding specific ones and their roles.

   Configuration
   registry
       o Default: "https://registry.npmjs.org/"

       o Type: URL


       The base URL of the npm registry.

   otp
       o Default: null

       o Type: null or String


       This  is  a  one-time  password  from  a two-factor authenticator. It's
       needed when publishing or changing package permissions with npm access.

       If not set, and a registry  response  fails  with  a  challenge  for  a
       one-time password, npm will prompt on the command line for one.

   json
       o Default: false

       o Type: Boolean


       Whether or not to output JSON data, rather than the normal output.

       o In npm pkg set it enables parsing set values with JSON.parse() before
         saving them to your package.json.


       Not supported by all npm commands.

   parseable
       o Default: false

       o Type: Boolean


       Output parseable results from commands that write to  standard  output.
       For npm search, this will be tab-separated table format.

   See Also
       o npm help using orgs

       o Documentation on npm Orgs https://docs.npmjs.com/orgs/




ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+--------------------------+
       |ATTRIBUTE TYPE |     ATTRIBUTE VALUE      |
       +---------------+--------------------------+
       |Availability   | runtime/nodejs/nodejs-18 |
       +---------------+--------------------------+
       |Stability      | Pass-thru volatile       |
       +---------------+--------------------------+

NOTES
       Source  code  for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source    was   downloaded   from    https://github.com/nodejs/node/ar-
       chive/v18.1.0.zip.

       Further information about this software can be found on the open source
       community website at https://github.com/nodejs/node.



                                  April 2022                        NPM-ORG(1)