Skip to content

freiheitstools/semver-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SemVer Commandline Client

semver is a commandline client to process and manipulate semantic version numbers according to the semantic versioning specification 2.0.0 on the command line.

Examples

Getting the next major version for a given version number
$ semver nextmajor 193.94.2
194.0.0
Getting the version number for a release candidate
$ semver nextpatch --suffix=RC-1 4.5.6-SNAPSHOT
4.5.7-RC-1

Benefits

semver is intended to be used in any kind of automated workflows dealing with version information, e.g. in CI/CD pipelines. Therefore, semver is a good alternative to scripting and regular expressions.

Supported Platforms

semver is written in Java and provided as native binaries for MacOS and Linux. Beside the native binaries, it is also provided as standard jar.

Requirements

The jar distribution of semver requires Java 11.

Usage

$ semver.macos.x86_64.bin --help
Usage: semver [-hV] [COMMAND]
  -h, --help      Show this help message and exit.
  -V, --version   Print version information and exit.
Commands:
  nextmajor  Return the next major version for a given version
  nextminor  Return the next minor version for a given version
  nextpatch  Return the next patch version for a given version
  strip      Returns the version without suffix and build number
  validate   Validates a given version

About

Commandline utility to process semantic version numbers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages