npm-owner.1 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .TH "NPM\-OWNER" "1" "October 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-owner\fR \- Manage package owners
  4. .SS Synopsis
  5. .P
  6. .RS 2
  7. .nf
  8. npm owner add <user> [<@scope>/]<pkg>
  9. npm owner rm <user> [<@scope>/]<pkg>
  10. npm owner ls [<@scope>/]<pkg>
  11. aliases: author
  12. .fi
  13. .RE
  14. .P
  15. Note: This command is unaware of workspaces\.
  16. .SS Description
  17. .P
  18. Manage ownership of published packages\.
  19. .RS 0
  20. .IP \(bu 2
  21. ls: List all the users who have access to modify a package and push new
  22. versions\. Handy when you need to know who to bug for help\.
  23. .IP \(bu 2
  24. add: Add a new user as a maintainer of a package\. This user is enabled
  25. to modify metadata, publish new versions, and add other owners\.
  26. .IP \(bu 2
  27. rm: Remove a user from the package owner list\. This immediately revokes
  28. their privileges\.
  29. .RE
  30. .P
  31. Note that there is only one level of access\. Either you can modify a package,
  32. or you can't\. Future versions may contain more fine\-grained access levels, but
  33. that is not implemented at this time\.
  34. .P
  35. If you have two\-factor authentication enabled with \fBauth\-and\-writes\fP (see
  36. npm help \fBnpm\-profile\fP) then you'll need to include an otp
  37. on the command line when changing ownership with \fB\-\-otp\fP\|\.
  38. .SS Configuration
  39. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS START \-\->
  40. <!\-\- automatically generated, do not edit manually \-\->
  41. <!\-\- see lib/utils/config/definitions\.js \-\->
  42. .SS \fBregistry\fP
  43. .RS 0
  44. .IP \(bu 2
  45. Default: "https://registry\.npmjs\.org/"
  46. .IP \(bu 2
  47. Type: URL
  48. .RE
  49. .P
  50. The base URL of the npm registry\.
  51. <!\-\- automatically generated, do not edit manually \-\->
  52. <!\-\- see lib/utils/config/definitions\.js \-\->
  53. .SS \fBotp\fP
  54. .RS 0
  55. .IP \(bu 2
  56. Default: null
  57. .IP \(bu 2
  58. Type: null or String
  59. .RE
  60. .P
  61. This is a one\-time password from a two\-factor authenticator\. It's needed
  62. when publishing or changing package permissions with \fBnpm access\fP\|\.
  63. .P
  64. If not set, and a registry response fails with a challenge for a one\-time
  65. password, npm will prompt on the command line for one\.
  66. <!\-\- automatically generated, do not edit manually \-\->
  67. <!\-\- see lib/utils/config/definitions\.js \-\->
  68. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS END \-\->
  69. .SS See Also
  70. .RS 0
  71. .IP \(bu 2
  72. npm help profile
  73. .IP \(bu 2
  74. npm help publish
  75. .IP \(bu 2
  76. npm help registry
  77. .IP \(bu 2
  78. npm help adduser
  79. .RE