-
Notifications
You must be signed in to change notification settings - Fork 382
Home
Give your users a great experience with your .NET console applications while letting you focus on the application you're writing.
Since the beginning, .NET has provided the System.Console
API, which provides ways to read, write, and redirect standard input and output from the console, reposition the cursor, and change colors.
With .NET Core, .NET programs increasingly run on Linux and MacOS, where users have long been accustomed to ANSI terminals and rich shell completions. Providing that kind of experience using .NET has been a lot of work for developers. The new System.CommandLine
is an attempt to make some of those things easier.
The simplest way to create your parser is with the experimental DragonFruit app model app model. This works well if you have a single layer of commands (no subcommands).
Your first app with System.CommandLine.DragonFruit
For more complex scenarios, you can use the core APIs directly.
Your first app with System.CommandLine
There's still a good deal of work to be done to make System.CommandLine
great. If you want to help, please comment on or open an issue, or contribute.