3 <title>npm-publish</title>
4 <meta http-equiv="content-type" value="text/html;utf-8">
5 <link rel="stylesheet" type="text/css" href="../../static/style.css">
9 <h1><a href="../cli/npm-publish.html">npm-publish</a></h1> <p>Publish a package</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm publish <tarball>
14 npm publish <folder></code></pre>
16 <h2 id="DESCRIPTION">DESCRIPTION</h2>
18 <p>Publishes a package to the registry so that it can be installed by name.</p>
20 <ul><li><p><code><folder></code>:
21 A folder containing a package.json file</p></li><li><p><code><tarball></code>:
22 A url or file path to a gzipped tar archive containing a single folder
23 with a package.json file inside.</p></li></ul>
25 <p>Fails if the package name and version combination already exists in
26 the registry. Overwrites when the "--force" flag is set.</p>
28 <h2 id="SEE-ALSO">SEE ALSO</h2>
30 <ul><li><a href="../misc/npm-registry.html">npm-registry(7)</a></li><li><a href="../cli/npm-adduser.html">npm-adduser(1)</a></li><li><a href="../cli/npm-owner.html">npm-owner(1)</a></li><li><a href="../cli/npm-deprecate.html">npm-deprecate(1)</a></li><li><a href="../cli/npm-tag.html">npm-tag(1)</a></li></ul>
32 <p id="footer">npm-publish — npm@1.3.19</p>
35 var wrapper = document.getElementById("wrapper")
36 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
37 .filter(function (el) {
38 return el.parentNode === wrapper
39 && el.tagName.match(/H[1-6]/)
43 , toc = document.createElement("ul")
44 toc.innerHTML = els.map(function (el) {
45 var i = el.tagName.charAt(1)
55 out += "<li><a href='#" + el.id + "'>" +
56 ( el.innerText || el.text || el.innerHTML)
61 document.body.appendChild(toc)