Skip to main content
net10.0net11.0net8.0net9.0.NETStandard2.0

Hosting integration for Nullean.Argh CLI applications.

Published
Nov 11, 2026
11d ago
Total Downloads
46.5K
46,462

Install

dotnet add package Nullean.Argh.Hosting --version 0.27.1
ProductVersions
.NET
net10.0net11.0net8.0net9.0
.NET Standard
netstandard2.0

README

Nullean.Argh.Hosting

NuGet

Microsoft.Extensions.Hosting integration for the Nullean.Argh CLI framework.

Install

dotnet add package Nullean.Argh.Hosting

Quick Start

using Microsoft.Extensions.Hosting;
using Nullean.Argh.Hosting;

var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddArgh(args, b =>
{
    b.Map("hello", MyHandlers.SayHello);
});
await builder.Build().RunAsync();

What You Get

  • Dependency injection β€” handler parameters resolved from the DI container with proper lifetimes
  • CancellationToken linked to host β€” graceful shutdown propagates to your commands automatically
  • Log suppression for intrinsic commands β€” --help, --version, completions, and __schema run silently without host startup noise

Native AOT size

Microsoft.Extensions.Hosting (DI, logging, options) adds several MB to a Native AOT binary, independent of Argh β€” this package is a thin adapter over it. If you don't need DI or hosted-service integration, use Nullean.Argh directly and call app.RunAsync(args) from Main for a much smaller AOT footprint. See AOT and binary size for measurements.

Documentation

Full documentation is available at nullean.github.io/argh.

License

MIT β€” see LICENSE for details.

Links

Changes from Previous Version

No structural changes between v0.25.0 and v0.27.1.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.The published metadata declares 31 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.