แก้ไข

แชร์ผ่าน


System.CommandLine overview

The System.CommandLine library provides functionality commonly needed by command-line apps, such as parsing command-line input and displaying help text.

Apps that use System.CommandLine include the .NET CLI, additional tools, and many global and local tools.

For app developers, the library:

  • Lets you focus on writing your app code, since you don't have to write code to parse command-line input or produce a help page.
  • Lets you test app code independently of input parsing code.
  • Is trim-friendly, making it a good choice for developing fast, lightweight, AOT-capable CLI apps.

Use of the library also benefits app users:

NuGet package

The library is available as a NuGet package: System.CommandLine.

Next steps

To get started with System.CommandLine, see the following resources:

To learn more, see the following resources: