Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.1 KiB

  1. .TH "NPM\-PUBLISH" "1" "August 2018" "" ""
  2. .SH "NAME"
  3. \fBnpm-publish\fR \- Publish a package
  4. .SH SYNOPSIS
  5. .P
  6. .RS 2
  7. .nf
  8. npm publish [<tarball>|<folder>] [\-\-tag <tag>] [\-\-access <public|restricted>] [\-\-otp otpcode] [\-\-dry\-run]
  9. Publishes '\.' if no argument supplied
  10. Sets tag 'latest' if no \-\-tag specified
  11. .fi
  12. .RE
  13. .SH DESCRIPTION
  14. .P
  15. Publishes a package to the registry so that it can be installed by name\. All
  16. files in the package directory are included if no local \fB\|\.gitignore\fP or
  17. \fB\|\.npmignore\fP file exists\. If both files exist and a file is ignored by
  18. \fB\|\.gitignore\fP but not by \fB\|\.npmignore\fP then it will be included\. See
  19. npm help 7 \fBnpm\-developers\fP for full details on what's included in the published
  20. package, as well as details on how the package is built\.
  21. .P
  22. By default npm will publish to the public registry\. This can be overridden by
  23. specifying a different default registry or using a npm help 7 \fBnpm\-scope\fP in the name
  24. (see npm help 5 \fBpackage\.json\fP)\.
  25. .RS 0
  26. .IP \(bu 2
  27. \fB<folder>\fP:
  28. A folder containing a package\.json file
  29. .IP \(bu 2
  30. \fB<tarball>\fP:
  31. A url or file path to a gzipped tar archive containing a single folder
  32. with a package\.json file inside\.
  33. .IP \(bu 2
  34. \fB[\-\-tag <tag>]\fP
  35. Registers the published package with the given tag, such that \fBnpm install
  36. <name>@<tag>\fP will install this version\. By default, \fBnpm publish\fP updates
  37. and \fBnpm install\fP installs the \fBlatest\fP tag\. See npm help \fBnpm\-dist\-tag\fP for
  38. details about tags\.
  39. .IP \(bu 2
  40. \fB[\-\-access <public|restricted>]\fP
  41. Tells the registry whether this package should be published as public or
  42. restricted\. Only applies to scoped packages, which default to \fBrestricted\fP\|\.
  43. If you don't have a paid account, you must publish with \fB\-\-access public\fP
  44. to publish scoped packages\.
  45. .IP \(bu 2
  46. \fB[\-\-otp <otpcode>]\fP
  47. If you have two\-factor authentication enabled in \fBauth\-and\-writes\fP mode
  48. then you can provide a code from your authenticator with this\. If you
  49. don't include this and you're running from a TTY then you'll be prompted\.
  50. .IP \(bu 2
  51. \fB[\-\-dry\-run]\fP
  52. Does everything publish would do except actually publishing to the registry\.
  53. Reports the details of what would have been published\.
  54. .RE
  55. .P
  56. Fails if the package name and version combination already exists in
  57. the specified registry\.
  58. .P
  59. Once a package is published with a given name and version, that
  60. specific name and version combination can never be used again, even if
  61. it is removed with npm help unpublish\.
  62. .P
  63. As of \fBnpm@5\fP, both a sha1sum and an integrity field with a sha512sum of the
  64. tarball will be submitted to the registry during publication\. Subsequent
  65. installs will use the strongest supported algorithm to verify downloads\.
  66. .P
  67. Similar to \fB\-\-dry\-run\fP see npm help \fBnpm\-pack\fP, which figures out the files to be
  68. included and packs them into a tarball to be uploaded to the registry\.
  69. .SH SEE ALSO
  70. .RS 0
  71. .IP \(bu 2
  72. npm help 7 registry
  73. .IP \(bu 2
  74. npm help 7 scope
  75. .IP \(bu 2
  76. npm help adduser
  77. .IP \(bu 2
  78. npm help owner
  79. .IP \(bu 2
  80. npm help deprecate
  81. .IP \(bu 2
  82. npm help dist\-tag
  83. .IP \(bu 2
  84. npm help pack
  85. .IP \(bu 2
  86. npm help profile
  87. .RE