vm2.SemVerTool 1.2.0

dotnet tool install --global vm2.SemVerTool --version 1.2.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local vm2.SemVerTool --version 1.2.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=vm2.SemVerTool&version=1.2.0
                    
nuke :add-package vm2.SemVerTool --version 1.2.0
                    

vm2.SemVerTool

NuGet Version NuGet Downloads GitHub License

A .NET command-line tool for validating, comparing, and bumping Semantic Versioning 2.0.0 strings. Built on top of vm2.SemVer.

Installation

dotnet tool install --global vm2.SemVerTool

Commands

validate

Validate a string against the SemVer 2.0.0 specification.

semver validate 1.2.3-preview.1+build.42
'1.2.3-preview.1+build.42' is a VALID SemVer 2.0.0:
    Major: 1
    Minor: 2
    Patch: 3
    Version core: 1.2.3
    Pre-release identifiers: preview.1
    Build metadata identifiers: build.42

Invalid strings return exit code 1:

semver validate "not-a-version"
# 'not-a-version' is NOT VALID SemVer 2.0.0.

compare

Compare two SemVer strings. Exit codes indicate the result:

Exit Code Meaning
0 Equal
1 First is greater
255 First is less
semver compare 1.2.3 2.0.0
# '1.2.3' is less than '2.0.0'.

bump

Bump the major, minor, or patch version. Optionally add pre-release and build metadata identifiers.

semver bump 1.2.3 --part minor
# Bumped minor: 1.3.0

semver bump 1.2.3 --part major --pre-release alpha.1
# Bumped major: 2.0.0-alpha.1

semver bump 1.2.3 -p p -r beta.1 -b build.99
# Bumped patch: 1.2.4-beta.1+build.99

Options:

Option Short Description Default
--part -p Part to bump: major/j, minor/n, patch/p patch
--pre-release -r Pre-release identifier to append (none)
--build-metadata -b Build metadata identifier to append (none)

Global Options

Option Short Description
--quiet -q Suppress verbose output. Only print the bare result.

Quiet mode is useful for scripting:

bumped=$(semver bump 1.2.3 -p minor -q)
echo "$bumped"   # 1.3.0

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.2.0 46 5/20/2026
1.2.0-preview.1 30 5/20/2026
1.1.1-preview.7 49 4/30/2026
1.1.1-preview.6 44 4/30/2026
1.1.1-preview.5 50 4/30/2026
1.1.1-preview.4 61 4/24/2026
1.1.1-preview.3 59 4/22/2026
1.1.1-preview.2 46 4/22/2026
1.1.1-preview.1 50 4/22/2026
1.1.0 105 4/14/2026
1.1.0-preview.6 51 4/22/2026
1.1.0-preview.5 52 4/22/2026
1.1.0-preview.4 53 4/17/2026
1.1.0-preview.3 54 4/14/2026
1.1.0-preview.2 49 4/14/2026
1.1.0-preview.1 56 4/11/2026

v1.2.0