1.0.2 • Published 6 years ago

version-cli v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

version-cli

npm version

A CLI for updating the version numbers of files using the semver guidelines.

Prerequisites

This CLI requires Node 6.0.0 or higher.

Status

Installation

BEFORE YOU INSTALL: please read the prerequisites

npm install -g version-cli

Usage

version TARGET_FILES [options]
OptionDescription
--help, -hprint help information
--version, -vprint the current version
--trial, -lprint what would happen without actually doing anything
--yes, -yjust do it, no questions asked
--silent, -ssilence messages, the --yes flag is assumed
--to, -tuse the specified version
--patch, -pincrement patch version e.g 0.2.1 -> 0.2.2
--minor, -mincrement minor version e.g 0.2.1 -> 0.3.0
--major, -Mincrement major version e.g 0.2.1 -> 1.0.0
--prerelease, --preincrement a prerelease number e.g. 1.2.3-8 -> 1.2.3-9
--prepatchincrement patch and add prerelease e.g. 1.2.3 -> 1.2.4-0
--preminorincrement minor and add prerelease e.g. 1.2.3 -> 1.3.0-0
--premajorincrement major and add prerelease e.g. 1.2.3 -> 2.0.0-0

Please note that patch is the default command used to increment versions

License

MIT