diff options
Diffstat (limited to 'deps/npm/doc/cli/npm-publish.md')
-rw-r--r-- | deps/npm/doc/cli/npm-publish.md | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/deps/npm/doc/cli/npm-publish.md b/deps/npm/doc/cli/npm-publish.md index d849c2860..338728e3e 100644 --- a/deps/npm/doc/cli/npm-publish.md +++ b/deps/npm/doc/cli/npm-publish.md @@ -4,8 +4,8 @@ npm-publish(1) -- Publish a package ## SYNOPSIS - npm publish <tarball> - npm publish <folder> + npm publish <tarball> [--tag <tag>] + npm publish <folder> [--tag <tag>] ## DESCRIPTION @@ -18,8 +18,17 @@ Publishes a package to the registry so that it can be installed by name. A url or file path to a gzipped tar archive containing a single folder with a package.json file inside. +* `[--tag <tag>]` + Registers the published package with the given tag, such that `npm install + <name>@<tag>` will install this version. By default, `npm publish` updates + and `npm install` installs the `latest` tag. + Fails if the package name and version combination already exists in -the registry. Overwrites when the "--force" flag is set. +the registry. + +Once a package is published with a given name and version, that +specific name and version combination can never be used again, even if +it is removed with npm-unpublish(1). ## SEE ALSO |