vertical-cli-dependencyinjection 1.0.0-dev.20260819.20

Prefix Reserved
This is a prerelease version of vertical-cli-dependencyinjection.
dotnet add package vertical-cli-dependencyinjection --version 1.0.0-dev.20260819.20
                    
NuGet\Install-Package vertical-cli-dependencyinjection -Version 1.0.0-dev.20260819.20
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="vertical-cli-dependencyinjection" Version="1.0.0-dev.20260819.20" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="vertical-cli-dependencyinjection" Version="1.0.0-dev.20260819.20" />
                    
Directory.Packages.props
<PackageReference Include="vertical-cli-dependencyinjection" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add vertical-cli-dependencyinjection --version 1.0.0-dev.20260819.20
                    
#r "nuget: vertical-cli-dependencyinjection, 1.0.0-dev.20260819.20"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package vertical-cli-dependencyinjection@1.0.0-dev.20260819.20
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=vertical-cli-dependencyinjection&version=1.0.0-dev.20260819.20&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=vertical-cli-dependencyinjection&version=1.0.0-dev.20260819.20&prerelease
                    
Install as a Cake Tool

vertical-cli

Develop CLI applications using a rich argument binding framework.

GitHub Actions Workflow Status NuGet Version NuGet Version

Features

  • Parses position arguments and GNU short and long format options and switches.
  • Binds parsed argument values to strongly typed models using reflection-free source generation.
  • Supports command hierarchy.
  • Injects arguments using response file annotations.
  • Provides a customizable help system.
  • Defines a rich user input validation API.
  • Supports dependency injection using the vertical-cli-dependencyinjection companion package.

Installation

$ dotnet pcakage add vertical-cli --prerelease

Quick start

// Define a command
var rootCommand = new RootCommand("app");

// Provide application logic
rootCommand.SetHandler<IOptions>(async (options, cancellationToken) => 
{
    // TODO: perform application work and return an exit code
    await LoginAsync(options.UserName, options.Password);
    return 0;
});

// Create the application
var app = new CommandLineApplication(rootCommand);

// Configure the parser
app.ConfigureParser<IOptions>(parser => parser
    .ParseOption(x => x.UserName)
    .ParseOption(x => x.Password));

// Applies generated configuration
app.Configure();

// Run the application
return await app.RunAsync(args);

// Define the model for the command
[GeneratedBinding]
public interface IOptions
{
    string UserName { get; }
    string Password { get; }
}

Docs

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-dev.20260819.20 0 8/19/2026
1.0.0-dev.20260818.19 41 8/18/2026
1.0.0-dev.20260817.18 47 8/17/2026
1.0.0-dev.20260817.17 59 8/17/2026
1.0.0-dev.20260817.16 52 8/17/2026
1.0.0-dev.20260814.15 50 8/14/2026
1.0.0-dev.20260812.14 52 8/12/2026