Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

npm-profile (1)

Name

npm-profile - Change settings on your registry profile

Synopsis

npm profile get [--json|--parseable] [<property>]
npm profile set [--json|--parseable] <property> <value>
npm profile set password
npm profile enable-2fa [auth-and-writes|auth-only]
npm profile disable-2fa

Description

NPM-PROFILE(1)                                                  NPM-PROFILE(1)



NAME
       npm-profile - Change settings on your registry profile

SYNOPSIS
         npm profile get [--json|--parseable] [<property>]
         npm profile set [--json|--parseable] <property> <value>
         npm profile set password
         npm profile enable-2fa [auth-and-writes|auth-only]
         npm profile disable-2fa

DESCRIPTION
       Change your profile information on the registry.  This not be available
       if you're using a non-npmjs registry.

       o npm profile get [<property>]: Display all of the properties  of  your
         profile, or one or more specific properties.  It looks like:


         +-----------------+---------------------------+
         | name            | example                   |
         +-----------------+---------------------------+
         | email           | me@example.com (verified) |
         +-----------------+---------------------------+
         | two factor auth | auth-and-writes           |
         +-----------------+---------------------------+
         | fullname        | Example User              |
         +-----------------+---------------------------+
         | homepage        |                           |
         +-----------------+---------------------------+
         | freenode        |                           |
         +-----------------+---------------------------+
         | twitter         |                           |
         +-----------------+---------------------------+
         | github          |                           |
         +-----------------+---------------------------+
         | created         | 2015-02-26T01:38:35.892Z  |
         +-----------------+---------------------------+
         | updated         | 2017-10-02T21:29:45.922Z  |
         +-----------------+---------------------------+

       o npm  profile set <property> <value>: Set the value of a profile prop-
         erty. You can set the following properties this way:
           email, fullname, homepage, freenode, twitter, github

       o npm profile set password: Change your password.  This is interactive,
         you'll  be  prompted  for  your  current password and a new password.
         You'll also be prompted for an OTP if you have two-factor authentica-
         tion enabled.

       o npm  profile enable-2fa [auth-and-writes|auth-only]: Enables two-fac-
         tor authentication. Defaults to auth-and-writes mode. Modes are:

       o auth-only: Require an OTP when logging in or making changes  to  your
         account's  authentication.  The OTP will be required on both the web-
         site and the command line.

       o auth-and-writes: Requires an OTP at all the times auth-only does, and
         also  requires  one  when  publishing  a  module,  setting the latest
         dist-tag, or changing access via npm access and npm owner.


       o npm profile disable-2fa: Disables two-factor authentication.


DETAILS
       All of the npm profile subcommands accept --json  and  --parseable  and
       will  tailor  their  output based on those.  Some of these commands may
       not be available on non npmjs.com registries.


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




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-PROFILE(1)