Help rendering only uses Output. The underlying HelpContext.AnsiConsole type also exposes Error because it shares the console-writer abstraction, but that stream is not part of the help pipeline.
CommandContext.AnsiConsole.Output and .Error are cached for the lifetime of the context. Raw writes through CommandContext.Console remain available and can be mixed with ANSI output.
Configuration extensions
Method
Effect
UseSpectreHelp(SpectreHelpOptions?)
Replaces the help renderer with SpectreHelpProvider.
UseSpectreErrors(SpectreErrorOptions?)
Replaces the error writer with SpectreCommandErrorWriter.
UseSpectreHelp uses the configured IHelpTextProvider from HelpProviderContext, so headings and descriptions remain localizable. UseSpectreErrors replaces only the writer; the message provider and exit code remain unchanged.
SpectreConsoleOptions
Property
Default
Purpose
Ansi
AnsiSupport.Detect
Whether ANSI output is enabled.
ColorSystem
ColorSystemSupport.Detect
Color system detection.
Interactive
InteractionSupport.No
Interactive terminal behavior.
SpectreConsoleOptions.ForTesting uses AnsiSupport.Yes, ColorSystemSupport.Standard, and InteractionSupport.No.
SpectreHelpOptions
Property
Default
HeadingStyle
Color.Aqua
UsageStyle
Style.Plain
OptionsPlaceholderStyle
Color.Grey
CommandPlaceholderStyle
Color.White
CommandStyle
Style.Plain
OptionStyle
Style.Plain
ArgumentStyle
Color.MediumPurple1
DescriptionStyle
Style.Plain
SpectreErrorOptions
Property
Default
Purpose
ErrorStyle
Color.Red
Style applied to the error message.
ConsoleOptions
null
Console options; null uses the error context console.