BuildVersion.Cli
10.0.0
dotnet tool install --global BuildVersion.Cli --version 10.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local BuildVersion.Cli --version 10.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=BuildVersion.Cli&version=10.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package BuildVersion.Cli --version 10.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Build Version Command Line Interface
A command line tool to emit automatic build versions in a CI/CD pipeline.
Requirements
You must have the .NET 8, .NET 9, or .NET 10 runtime or SDK installed.
Installation
The tool can be installed globally with the command: dotnet tool install BuildVersion.Cli --global
This will download, install, and alias the tool with the command build-version.
Usage
Running build-version --help will display help as follows:
Description:
A command line tool to emit automatic build versions in a CI/CD pipeline.
Usage:
build-version [options]
Options:
--environment <Development|Production|Staging> (REQUIRED) Environment to generate the build version for.
--output <DevOps|GitHub|Plain> The output format of the build version. [default: Plain]
--base <base> Override the automatically generated version using the base version
--major <major> Override the automatically generated major version
--minor <minor> Override the automatically generated minor version
--patch <patch> Override the patch version or use 'auto' to set it to the current week of the year
--build <build> Override the automatically generated build version
--version Show version information
-?, -h, --help Show help and usage information
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.