npm-profile.1 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .TH "NPM\-PROFILE" "1" "August 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-profile\fR \- Change settings on your registry profile
  4. .SS Synopsis
  5. .P
  6. .RS 2
  7. .nf
  8. npm profile get [\-\-json|\-\-parseable] [<property>]
  9. npm profile set [\-\-json|\-\-parseable] <property> <value>
  10. npm profile set password
  11. npm profile enable\-2fa [auth\-and\-writes|auth\-only]
  12. npm profile disable\-2fa
  13. .fi
  14. .RE
  15. .SS Description
  16. .P
  17. Change your profile information on the registry\. This not be available if
  18. you're using a non\-npmjs registry\.
  19. .RS 0
  20. .IP \(bu 2
  21. \fBnpm profile get [<property>]\fP:
  22. Display all of the properties of your profile, or one or more specific
  23. properties\. It looks like:
  24. .RE
  25. .P
  26. .RS 2
  27. .nf
  28. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  29. | name | example |
  30. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  31. | email | me@example\.com (verified) |
  32. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  33. | two factor auth | auth\-and\-writes |
  34. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  35. | fullname | Example User |
  36. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  37. | homepage | |
  38. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  39. | freenode | |
  40. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  41. | twitter | |
  42. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  43. | github | |
  44. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  45. | created | 2015\-02\-26T01:38:35\.892Z |
  46. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  47. | updated | 2017\-10\-02T21:29:45\.922Z |
  48. +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
  49. .fi
  50. .RE
  51. .RS 0
  52. .IP \(bu 2
  53. \fBnpm profile set <property> <value>\fP:
  54. Set the value of a profile property\. You can set the following properties this way:
  55. email, fullname, homepage, freenode, twitter, github
  56. .IP \(bu 2
  57. \fBnpm profile set password\fP:
  58. Change your password\. This is interactive, you'll be prompted for your
  59. current password and a new password\. You'll also be prompted for an OTP
  60. if you have two\-factor authentication enabled\.
  61. .IP \(bu 2
  62. \fBnpm profile enable\-2fa [auth\-and\-writes|auth\-only]\fP:
  63. Enables two\-factor authentication\. Defaults to \fBauth\-and\-writes\fP mode\. Modes are:
  64. .RS
  65. .IP \(bu 2
  66. \fBauth\-only\fP: Require an OTP when logging in or making changes to your
  67. account's authentication\. The OTP will be required on both the website
  68. and the command line\.
  69. .IP \(bu 2
  70. \fBauth\-and\-writes\fP: Requires an OTP at all the times \fBauth\-only\fP does, and also requires one when
  71. publishing a module, setting the \fBlatest\fP dist\-tag, or changing access
  72. via \fBnpm access\fP and \fBnpm owner\fP\|\.
  73. .RE
  74. .IP \(bu 2
  75. \fBnpm profile disable\-2fa\fP:
  76. Disables two\-factor authentication\.
  77. .RE
  78. .SS Details
  79. .P
  80. All of the \fBnpm profile\fP subcommands accept \fB\-\-json\fP and \fB\-\-parseable\fP and
  81. will tailor their output based on those\. Some of these commands may not be
  82. available on non npmjs\.com registries\.
  83. .SS See Also
  84. .RS 0
  85. .IP \(bu 2
  86. npm help config
  87. .RE