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
6.3 KiB

  1. <!doctype html>
  2. <html>
  3. <title>npm-publish</title>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" type="text/css" href="../../static/style.css">
  6. <link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-publish.html">
  7. <script async=true src="../../static/toc.js"></script>
  8. <body>
  9. <div id="wrapper">
  10. <h1><a href="../cli/npm-publish.html">npm-publish</a></h1> <p>Publish a package</p>
  11. <h2 id="synopsis">SYNOPSIS</h2>
  12. <pre><code>npm publish [&lt;tarball&gt;|&lt;folder&gt;] [--tag &lt;tag&gt;] [--access &lt;public|restricted&gt;] [--otp otpcode] [--dry-run]
  13. Publishes &#39;.&#39; if no argument supplied
  14. Sets tag &#39;latest&#39; if no --tag specified</code></pre><h2 id="description">DESCRIPTION</h2>
  15. <p>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 <code>.gitignore</code> or
  17. <code>.npmignore</code> file exists. If both files exist and a file is ignored by
  18. <code>.gitignore</code> but not by <code>.npmignore</code> then it will be included. See
  19. <code><a href="../misc/npm-developers.html">npm-developers(7)</a></code> for full details on what&#39;s included in the published
  20. package, as well as details on how the package is built.</p>
  21. <p>By default npm will publish to the public registry. This can be overridden by
  22. specifying a different default registry or using a <code><a href="../misc/npm-scope.html">npm-scope(7)</a></code> in the name
  23. (see <code><a href="../files/package.json.html">package.json(5)</a></code>).</p>
  24. <ul>
  25. <li><p><code>&lt;folder&gt;</code>:
  26. A folder containing a package.json file</p>
  27. </li>
  28. <li><p><code>&lt;tarball&gt;</code>:
  29. A url or file path to a gzipped tar archive containing a single folder
  30. with a package.json file inside.</p>
  31. </li>
  32. <li><p><code>[--tag &lt;tag&gt;]</code>
  33. Registers the published package with the given tag, such that <code>npm install
  34. &lt;name&gt;@&lt;tag&gt;</code> will install this version. By default, <code>npm publish</code> updates
  35. and <code>npm install</code> installs the <code>latest</code> tag. See <code><a href="../cli/npm-dist-tag.html">npm-dist-tag(1)</a></code> for
  36. details about tags.</p>
  37. </li>
  38. <li><p><code>[--access &lt;public|restricted&gt;]</code>
  39. Tells the registry whether this package should be published as public or
  40. restricted. Only applies to scoped packages, which default to <code>restricted</code>.
  41. If you don&#39;t have a paid account, you must publish with <code>--access public</code>
  42. to publish scoped packages.</p>
  43. </li>
  44. <li><p><code>[--otp &lt;otpcode&gt;]</code>
  45. If you have two-factor authentication enabled in <code>auth-and-writes</code> mode
  46. then you can provide a code from your authenticator with this. If you
  47. don&#39;t include this and you&#39;re running from a TTY then you&#39;ll be prompted.</p>
  48. </li>
  49. <li><p><code>[--dry-run]</code>
  50. Does everything publish would do except actually publishing to the registry.
  51. Reports the details of what would have been published.</p>
  52. </li>
  53. </ul>
  54. <p>Fails if the package name and version combination already exists in
  55. the specified registry.</p>
  56. <p>Once a package is published with a given name and version, that
  57. specific name and version combination can never be used again, even if
  58. it is removed with <a href="../cli/npm-unpublish.html">npm-unpublish(1)</a>.</p>
  59. <p>As of <code>npm@5</code>, both a sha1sum and an integrity field with a sha512sum of the
  60. tarball will be submitted to the registry during publication. Subsequent
  61. installs will use the strongest supported algorithm to verify downloads.</p>
  62. <p>Similar to <code>--dry-run</code> see <code><a href="../cli/npm-pack.html">npm-pack(1)</a></code>, which figures out the files to be
  63. included and packs them into a tarball to be uploaded to the registry.</p>
  64. <h2 id="see-also">SEE ALSO</h2>
  65. <ul>
  66. <li><a href="../misc/npm-registry.html">npm-registry(7)</a></li>
  67. <li><a href="../misc/npm-scope.html">npm-scope(7)</a></li>
  68. <li><a href="../cli/npm-adduser.html">npm-adduser(1)</a></li>
  69. <li><a href="../cli/npm-owner.html">npm-owner(1)</a></li>
  70. <li><a href="../cli/npm-deprecate.html">npm-deprecate(1)</a></li>
  71. <li><a href="../cli/npm-dist-tag.html">npm-dist-tag(1)</a></li>
  72. <li><a href="../cli/npm-pack.html">npm-pack(1)</a></li>
  73. <li><a href="../cli/npm-profile.html">npm-profile(1)</a></li>
  74. </ul>
  75. </div>
  76. <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
  77. <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
  78. <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
  79. <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
  80. <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
  81. <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
  82. <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
  83. <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
  84. </table>
  85. <p id="footer">npm-publish &mdash; npm@6.4.1</p>