---
name: "npm-tag"
section: "1"
platform: "linux"
package: "npm"
version: "1.4.21+ds-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/npm-tag"
---

# npm-tag(1)

Tag a published version

## NAME

**npm-tag** - Tag a published version

## SYNOPSIS

```
npm tag <name>@<version> [<tag>]
```

## DESCRIPTION

Tags the specified version of the package with the specified tag, or the **--tag** config if not specified.

A tag can be used when installing packages as a reference to a version instead of using a specific version number:

-

  ```
  npm install <name>@<tag>
  ```

-

  When installing dependencies, a preferred tagged version may be specified:

-

  ```
  npm install --tag <tag>
  ```

-

  This also applies to **npm dedupe**.

Publishing a package always sets the "latest" tag to the published version.

## SEE ALSO

- •

  npm help publish

- •

  npm help install

- •

  npm help dedupe

- •

  npm help  registry

- •

  npm help config

- •

  npm help  config

- •

  npm help  npmrc

-
