Albatross.CommandLine 8.0.1

Prefix Reserved
This package has a SemVer 2.0.0 package version: 8.0.1+23a84a7.
dotnet add package Albatross.CommandLine --version 8.0.1
                    
NuGet\Install-Package Albatross.CommandLine -Version 8.0.1
                    
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="Albatross.CommandLine" Version="8.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Albatross.CommandLine" Version="8.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Albatross.CommandLine" />
                    
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 Albatross.CommandLine --version 8.0.1
                    
#r "nuget: Albatross.CommandLine, 8.0.1"
                    
#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 Albatross.CommandLine@8.0.1
                    
#: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=Albatross.CommandLine&version=8.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Albatross.CommandLine&version=8.0.1
                    
Install as a Cake Tool

Albatross.CommandLine

A .NET library that simplifies creating command-line applications with System.CommandLine. It provides automatic code generation and dependency injection support while maintaining full access to System.CommandLine's capabilities. The framework is opinionated toward async actions with out-of-the-box support for cancellation and graceful shutdown.

Designed for enterprise CLI applications, Albatross.CommandLine enforces consistent async patterns, built-in dependency injection, and graceful shutdown handling. These opinionated choices reduce complexity and ensure scalability from simple utilities to complex enterprise workflows.

Key Features

  • Minimal Boilerplate - Attribute-based command definition with automatic code generation
  • Dependency Injection - Built-in DI container integration
  • Minimum Dependencies - Only depends on System.CommandLine and Microsoft.Extensions.Hosting.
  • Full Flexibility - Direct access to System.CommandLine when needed
  • Cancellation & Graceful Shutdown - Built-in support for Ctrl+C interruption via cancellation tokens and graceful shutdown handling
  • Reusable Parameter - Create customized Option and Argument classes and use [UseOption<T>] and [UseArgument<T>] attributes to compose them into commands with automatic code generation
  • Advanced Option Handlers - Injectable async option handlers with [OptionHandler] attribute for pre-processing and input transformation patterns. Execute database validation, API calls, or transform simple inputs into complex objects before command execution
  • Easy Extensions - Use CommandHost.ConfigureHost() to bootstrap additional services, or use Albatross.CommandLine.Default for pre-configured Serilog logging and JSON/environment configuration support

📖 Documentation

📚 Complete Documentation

🔧 Dependencies

  • System.CommandLine 2.0.1+
  • Microsoft.Extensions.Hosting 8.0.1+

🔧 Prerequisites

  • C# Compiler 4.10.0+ (included with .NET 8 SDK)
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Albatross.CommandLine:

Package Downloads
Albatross.CommandLine.Defaults

Package Description

Albatross.EFCore.Admin

Package Description

Albatross.CommandLine.Inputs

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.1 33 1/9/2026
8.0.1-130.main 28 1/8/2026
8.0.1-114.main 35 1/4/2026
8.0.1-113.main 31 1/4/2026
8.0.1-112.main 31 1/4/2026
8.0.1-103.main 33 1/2/2026
8.0.1-97.main 26 1/1/2026
8.0.1-89.main 30 12/31/2025
8.0.1-78.main 33 12/26/2025
8.0.1-72.main 35 12/24/2025
8.0.1-71.main 28 12/23/2025
8.0.1-54.main 42 12/22/2025
7.8.7 159 3/24/2025
7.8.6 82 3/18/2025
7.8.5 89 3/16/2025
7.8.4 217 3/5/2025
7.8.1 112 12/25/2024
7.8.0 103 12/8/2024
7.6.0 116 11/26/2024
7.5.8 100 11/11/2024
7.5.6 99 11/8/2024
7.5.5 112 11/7/2024