Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
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:
- It ensures that command-line input is parsed consistently according to POSIX or Windows conventions.
- It automatically supports tab completion and response files.
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: