System.CommandLine API

命令行的解析、调用和终端输出的渲染。「Command line parsing, invocation, and rendering of terminal output.」

Github stars Tracking Chart

Build Status Join the chat at https://gitter.im/dotnet/command-line-api

This repository contains the code for the System.CommandLine libraries and the dotnet-suggest global tool.

Packages

Package Version Description
System.CommandLine Nuget Command line parser, model binding, invocation, shell completions
System.CommandLine.DragonFruit Nuget Build command-line apps by convention with a strongly-typed Main method
System.CommandLine.Rendering Nuget Structured terminal output rendering and ANSI support
System.CommandLine.Hosting Nuget support for using System.CommandLine with Microsoft.Extensions.Hosting
dotnet-suggest Nuget A command-line tool to provide shell completions for apps built using System.CommandLine.

Daily builds are available if you add this feed to your nuget.config: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json.

Documentation

Getting started

Syntax Concepts and Parser

Features

Your first app

How to...

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct

Contributing

See the Contributing guide for developer documentation.

License

This project is licensed under the MIT license.

.NET Foundation

.NET is a .NET Foundation project.

Main metrics

Overview
Name With Ownerdotnet/command-line-api
Primary LanguageC#
Program languageBatchfile (Language Count: 5)
PlatformWindows
License:MIT License
所有者活动
Created At2018-04-17 16:33:31
Pushed At2025-04-18 11:07:18
Last Commit At
Release Count7
Last Release Name2.0.0-beta4.22272.1 (Posted on )
First Release Name2.0.0-beta1.20213.1 (Posted on )
用户参与
Stargazers Count3.5k
Watchers Count256
Fork Count392
Commits Count2.3k
Has Issues Enabled
Issues Count1405
Issue Open Count587
Pull Requests Count930
Pull Requests Open Count34
Pull Requests Close Count147
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private