This repository contains the code for the System.CommandLine libraries and the
dotnet-suggest global tool.
||Command line parser, model binding, invocation, shell completions|
||Build command-line apps by convention with a strongly-typed
||Structured terminal output rendering and ANSI support|
||support for using System.CommandLine with Microsoft.Extensions.Hosting|
||A command-line tool to provide shell completions for apps built using
Daily builds are available if you add this feed to your nuget.config: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json.
You can try out
System.CommandLine using an interactive tutorial that showcases its features and APIs, powered by Try .NET.
To use the tutorial, first clone the
> git clone https://github.com/dotnet/command-line-api
Next, install the
dotnet try global tool:
> dotnet tool install -g Microsoft.dotnet-try
Finally, launch the
dotnet try pointing to the tutorial directory inside the cloned repository:
> dotnet try <PATH_TO_COMMAND_LINE_API_REPO>/docs
See the Contributing guide for developer documentation.
This project is licensed under the MIT license.
.NET is a .NET Foundation project.