LinuxCommandLibrary

standard-version

Automated semantic versioning from commits

TLDR

Release new version

$ standard-version
copy
First release
$ standard-version --first-release
copy
Pre-release version
$ standard-version --prerelease alpha
copy
Dry run
$ standard-version --dry-run
copy
Specific version bump
$ standard-version --release-as [major|minor|patch]
copy
Skip changelog
$ standard-version --skip.changelog
copy

SYNOPSIS

standard-version [--release-as type] [--prerelease tag] [options]

DESCRIPTION

standard-version automates semantic versioning and changelog generation for Node.js projects based on the Conventional Commits specification. It analyzes commit messages (feat, fix, BREAKING CHANGE) to determine whether to bump the major, minor, or patch version.
The tool updates the version in package.json, generates or updates a CHANGELOG.md from commit messages, creates a git commit with the version bump, and tags it with the new version number. A dry run mode previews changes without modifying files. Pre-release tags (alpha, beta, rc) are supported for staged releases.

PARAMETERS

--first-release

First version.
--release-as TYPE
Version bump type.
--prerelease TAG
Pre-release tag.
--dry-run
Preview only.
--skip.changelog
Skip changelog.
--sign
Sign tags.

CAVEATS

Needs conventional commits. Node.js project. Git repository required.

HISTORY

standard-version was created for automated semantic versioning based on Conventional Commits specification.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community