Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

npm-logout (1)

Name

npm-logout - Log out of the registry

Synopsis

npm logout [--registry=<url>] [--scope=<@scope>]

Description

NPM-LOGOUT(1)                                                    NPM-LOGOUT(1)



NAME
       npm-logout - Log out of the registry

SYNOPSIS
         npm logout [--registry=<url>] [--scope=<@scope>]

DESCRIPTION
       When  logged  into a registry that supports token-based authentication,
       tell the server to end this token's session. This will  invalidate  the
       token everywhere you're using it, not just for the current environment.

       When  logged  into  a  legacy  registry that uses username and password
       authentication, this will clear the credentials in your user configura-
       tion. In this case, it will only affect the current environment.

       If --scope is provided, this will find the credentials for the registry
       connected to that scope, if set.

CONFIGURATION
   registry
       Default: https://

       The base URL of the npm package registry. If scope is  also  specified,
       it takes precedence.

   scope
       Default: The scope of your current project, if any, otherwise none.

       If  specified,  you  will be logged out of the specified scope. See npm
       help 7 npm-scope.

         npm logout --scope=@myco


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


       +---------------+-------------------------+
       |ATTRIBUTE TYPE |    ATTRIBUTE VALUE      |
       +---------------+-------------------------+
       |Availability   | runtime/nodejs/nodejs-8 |
       +---------------+-------------------------+
       |Stability      | Pass-thru volatile      |
       +---------------+-------------------------+
SEE ALSO
       o npm help adduser

       o npm help 7 registry

       o npm help config

       o npm help 7 config

       o npm help 5 npmrc

       o npm help whoami





NOTES
       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/v8.15.1.zip

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



                                  August 2018                    NPM-LOGOUT(1)