Runic.CommandLine.Spectre 0.8.0

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

Runic.CommandLine.Spectre

Optional Spectre.Console presentation for Runic Command Line. Core command declarations, parsing and machine envelopes remain independent of Spectre.

return await new CommandApp(GeneratedCommandCatalog.Create())
{
    Name = "hello",
    Console = new SpectreCommandConsole(),
    HelpPresenter = new SpectreHelpPresenter()
}.RunAsync(args);

Use WriteAsync for Spectre tables, trees and panels. Text is always treated as literal text, never markup. Redirected output and NO_COLOR disable ANSI automatically. Terminal width is detected automatically. Explicit width, color and Unicode overrides make tests deterministic. Byte output passes through unchanged, so JSON framing remains owned by Runic. Handlers should use their injected ICommandConsole; in JSON mode this console routes incidental output to stderr and disables reads.

Use new SpectreCommandConsole(context.Console).WithProgressAsync(...) inside a handler. Progress receives percentages from 0 to 100; interactive terminals use Spectre's live display on stderr. Noninteractive runs emit one status line and do not animate. Forward the cancellation token into the operation.

For select, multi-select, confirm and text prompts, a spinner or a task log, use CommandPrompts from Runic.CommandLine. When the invocation cannot interact, a CommandPrompts question returns its default, and one without a default fails the command with RCLI4001 (exit code 2); see when prompts ask. With Console = new SpectreCommandConsole() they redraw only when this console would colour its own output: its color, unicode and width settings apply to them, redirected streams, NO_COLOR and TERM=dumb switch them to plain line prompts, and on Windows Spectre's terminal detection enables ANSI for them. Prompts write through the wrapped console without Spectre styling.

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
0.8.0 0 10/22/2026
0.7.0-preview.2 185 10/17/2026
0.7.0-preview.1 766 10/14/2026
0.6.0-preview.5 203 10/12/2026
0.6.0-preview.4 328 10/12/2026
0.6.0-preview.3 553 10/9/2026
0.6.0-preview.2 189 10/7/2026
0.6.0-preview.1 2,138 10/5/2026
0.5.0-preview.3 54 10/1/2026
0.5.0-preview.2 58 9/25/2026
0.4.0-preview.1 65 9/22/2026
0.3.0-preview.1 73 9/11/2026