cints.CmdStarter.Hosting 1.0.0

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

CmdStarter.Hosting

CmdStarter.Hosting adds Generic Host integration to the cints.CmdStarter package: it registers CmdStarter with the services of the host, so commands can use the host's configuration, options and logging. It runs the requested command, or the REPL, between the start and the stop of the host's hosted services.

var builder = Host.CreateApplicationBuilder(new HostApplicationBuilderSettings { ContentRootPath = AppContext.BaseDirectory });
// ...
builder.AddCmdStarter(options => options.AddCommandsFromAssembly(typeof(Program).Assembly));
using var host = builder.Build();
return await host.RunCmdStarterAsync(args);
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 46 11/6/2026

1.0.0: rewrite on System.CommandLine 2.0 stable and .NET 10, with breaking changes. Migration guide: https://github.com/CyberInternauts/CmdStarter/blob/master/docs/migration/0.9-to-1.0.md