CmdID

CmdID / Commands

semver

Semantic version string parser. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Check if a version string respects the semantic versioning format (prints an empty string if it does not match)

semver 1.2Identify

Convert a version string to the semantic versioning format

semver --coerce 1.2Identify

Test if 1.2.3 matches the ^1.0 range (prints an empty string if it does not match)

semver 1.2.3 --range "^1.0"Identify

Test with multiple ranges

semver 1.2.3 --range ">=1.0" "<2.0"Identify

Test multiple version strings and return only the ones that match

semver 1.2.3 2.0.0 --range "^1.0"Identify