Benday.CommandsFramework
4.14.1
dotnet add package Benday.CommandsFramework --version 4.14.1
NuGet\Install-Package Benday.CommandsFramework -Version 4.14.1
<PackageReference Include="Benday.CommandsFramework" Version="4.14.1" />
<PackageVersion Include="Benday.CommandsFramework" Version="4.14.1" />
<PackageReference Include="Benday.CommandsFramework" />
paket add Benday.CommandsFramework --version 4.14.1
#r "nuget: Benday.CommandsFramework, 4.14.1"
#:package Benday.CommandsFramework@4.14.1
#addin nuget:?package=Benday.CommandsFramework&version=4.14.1
#tool nuget:?package=Benday.CommandsFramework&version=4.14.1
Benday.CommandsFramework
Do you want to write your own command line interface (CLI) utilities? This framework gives you a way to write synchronous and asynchronous command line tools.
Key features:
- Command line argument parsing
- Define named command
- Define the valid arguments for each command
- Argument validation
- String, boolean, int, and date time arguments
About
Written by Benjamin Day
Pluralsight Author | Microsoft MVP | Scrum.org Professional Scrum Trainer
https://www.benday.com
info@benday.com
Got ideas for git repo sync features you'd like to see? Found a bug? Let us know by submitting an issue. Want to contribute? Submit a pull request.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.13)
- Microsoft.Extensions.Hosting (>= 9.0.13)
- Microsoft.Extensions.Logging (>= 9.0.13)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.13)
- Microsoft.Extensions.Hosting (>= 9.0.13)
- Microsoft.Extensions.Logging (>= 9.0.13)
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.13)
- Microsoft.Extensions.Hosting (>= 9.0.13)
- Microsoft.Extensions.Logging (>= 9.0.13)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Benday.CommandsFramework:
| Package | Downloads |
|---|---|
|
Benday.AzureDevOpsUtil.Api
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.14.1 | 0 | 3/5/2026 |
| 4.14.0 | 47 | 3/4/2026 |
| 4.13.0 | 324 | 11/5/2025 |
| 4.12.0 | 174 | 9/27/2025 |
| 4.11.0 | 152 | 9/26/2025 |
| 4.10.0 | 279 | 8/9/2025 |
| 4.9.0 | 331 | 6/4/2025 |
| 4.8.0 | 215 | 5/11/2025 |
| 4.7.0 | 325 | 4/16/2025 |
| 4.6.0 | 214 | 3/21/2025 |
| 4.5.0 | 177 | 3/15/2025 |
| 4.4.0 | 373 | 11/20/2024 |
| 4.3.0 | 268 | 8/19/2024 |
| 4.2.0 | 257 | 8/16/2024 |
| 4.1.1 | 218 | 8/8/2024 |
| 4.1.0 | 203 | 8/8/2024 |
| 4.0.0 | 209 | 7/30/2024 |
| 4.0.0-beta | 119 | 7/29/2024 |
| 3.4.0 | 172 | 7/26/2024 |
| 3.3.0 | 203 | 7/12/2024 |
v4.14 - Added support for .NET 10.0; Added support for 'gui' command that launches a blazor UI for the tool using the Benday.CommandsFramework.CmdUi package; Added fluent config methods and simplified DI configuration; Added support for defining allowed argument values; Added support for defining args that pull their values from a config value;
v4.13 - Added support for writing CSV files via CsvWriter utility class;
v4.12 - Improved dependency injection support for commands;
v4.11 - Added option to get file and directory arguments as fully qualified paths;
v4.10 - Added support for .NET 9.0; Added CsvReader utility class for parsing CSV files;
v4.9 - Added ability to pass in an IServiceCollection to the commands framework via IProgramOptions in order to optionally allow commands to use dependency injection;
v4.8 - Changed visibility of runtime args collection; Added utility method to pull value from args collection or config collection;
v4.7 - Fixed bug getting --help for commands with no parameters.
v4.6 - Added support for .NET Core 9.
v4.5 - Added TableFormatter to help with formatting tabular data and filtered tabular data.
v4.4 - Added FileArgument and DirectoryArgument types.
v4.3 - Added support for GetDate -Format FileDateUniversal datetime parsing.
v4.2 - Added support for more datetime files in the DateTime argument type.
v4.1.1 - Fixed bug in DefaultProgram where it was not setting the ExitCode to 1 when there was an error.
v4.1 - Added '--help' option to default program implementation in order to display usages.
v4.0 - Refactored argument base classes to remove unnecessary constructors. Added option to get all usages in JSON format using '--json' option.
v3.4 - Changed 'display usage' on commands to return ExitCode of 1 if there is an invalid/missing parameter.
v3.3 - Fixed 'display usage' formatting bug when argument does not have a description. Added logic to DefaultProgram to set ExitCode to 1 automatically on error.
v3.2 - Bug fixes.
v3.1 - Bug fixes. Added ability to inject an instance of ITextOutputProvider for testability.
v3.0 - Upgraded to .NET 8.0. Added default commands for managing basic string configuration values. Added extension methods for working with relative paths as arguments.