Skip to docs content

scpm dist-tag add

  • Usage: scpm dist-tag add [--otp <OTP>] <SPEC> [TAG]

Add or update a dist-tag on a package.

Spec must include a concrete version: scpm dist-tag add react@18.2.0 stable. The tag argument defaults to latest.

Arguments

<SPEC>

Package spec in name@version form (exact version required, ranges and tags aren't resolved here)

[TAG]

Tag to create or update. Defaults to latest

Flags

--otp <OTP>

One-time password from a 2FA authenticator; sent as npm-otp