Welcome!

Spectre.Console is a .NET library that makes it easier to create beautiful console applications.

Spectre.Console.AnsiConsole

Spectre.Console.AnsiConsole has been heavily inspired by the excellent Rich library for Python written by Will McGugan.

Spectre.Console.Cli

  • Create strongly typed settings and commands for parsing args[] to create complex command line applications like git, gh, or dotnet

Spectre.Console.Testing

  • Spectre.Console has been developed with unit testing in mind. The Spectre.Console library itself is covered by an extensive test suite, project maintainers require test coverage for all new commits, and the same extension points and test harnesses used internally for testing are available to you.

  • The Unit Testing page provides instructions for testing a Spectre.Console application.

Examples

Sample of Spectre.Console output

The Spectre.Console examples repository contains many other examples.