CommandDotNet alternatives and similar packages
Based on the "CLI" category.
Alternatively, view CommandDotNet alternatives based on common mentions on social networks and blogs.
-
Command Line Parser
The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks -
CommandLineUtils
This is a fork of Microsoft.Extensions.CommandLineUtils, which is no longer under active development. -
Fluent Command Line Parser
A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface -
Power Args
PowerArgs converts command line arguments into .NET objects that are easy to program against. It also provides a ton of optional capabilities such as argument validation, auto generated usage, tab completion, and plenty of extensibility -
Appccelerate - Command Line Parser
Command Line Parser -
Tamar.ANSITerm
“ANSITerm” provides ANSI escape codes and true color formatting for .NET Core's Console on Linux terminals. -
DarkXaHTeP.CommandLine
Allows creating CommandLine applications using Microsoft.Extensions.CommandLineUtils together with DI, Configuration and Logging in a convenient way similar to AspNetCore Hosting
Pixel-Perfect Multi-Platform Applications with C# and XAML
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of CommandDotNet or a related project?
README
CommandDotNet
A modern framework for building modern CLI apps
Out of the box support for commands, sub-commands, validations, dependency injection, piping and streaming, enums & custom types, typo suggestions, prompting, passwords, response files and more. See the features page.
Includes test tools used by the framework to test all features of the framework.
Modify and extend the functionality of the framework through configuration and middleware.
Documentation 👉 https://commanddotnet.bilal-fazlani.com
Example
public class Calculator
{
public void Add(int value1, int value2)
{
Console.WriteLine($"Answer: {value1 + value2}");
}
public void Subtract(int value1, int value2)
{
Console.WriteLine($"Answer: {value1 - value2}");
}
}
class Program
{
static int Main(string[] args)
{
return new AppRunner<Calculator>().Run(args);
}
}
With these two classes, we've defined an Add and Subtract command and help is automatically generated.
~
$ dotnet calc.dll -h
Usage: dotnet calc.dll
Usage: dotnet calc.dll [command]
Commands:
Add
Subtract
Use "dotnet calc.dll [command] --help" for more information about a command.
~
$ dotnet calc.dll Add -h
Usage: dotnet calc.dll Add [arguments]
Arguments:
value1 <NUMBER>
value2 <NUMBER>
~
$ dotnet calc.dll Add 40 20
Answer: 60
Check out the docs for more examples
Credits 🎉
Special thanks to Drew Burlingame for continuous support and contributions
*Note that all licence references and agreements mentioned in the CommandDotNet README section above
are relevant to that project's source code only.