Commands, arguments & options
Define a command surface with structured parsing for the inputs your application expects.
deploy --region westusOpen-source developer tools
CoreVar.CommandLineInterface is a focused .NET framework for creating clear, maintainable command-line applications—from compact utilities to sophisticated developer tools.
PS> dotnet add package CoreVar.CommandLineInterface
info : PackageReference added to project.
PS> myapp deploy --environment production
✓ Configuration validated
✓ Deployment completed
PS>
01 / WHY IT EXISTS
A good CLI feels obvious: predictable commands, useful errors, and output that helps people move forward. The framework handles the repetitive plumbing so application code can stay focused on the work each command performs.
Framework capabilities
Practical building blocks that fit naturally into modern .NET applications and established engineering practices.
Define a command surface with structured parsing for the inputs your application expects.
deploy --region westusUse familiar .NET dependency-injection patterns to keep handlers modular and responsibilities clear.
services.AddCommand<Deploy>()Build responsive commands around the async programming model used throughout modern .NET.
await command.ExecuteAsync()Turn invalid input and runtime failures into consistent, useful command-line feedback.
error: missing --outputGet started
Install the package, compose your commands, and keep the infrastructure around them lightweight.
$ dotnet add package CoreVar.CommandLineInterfaceOpen by default
The source is available on GitHub. Explore the implementation, open an issue, or contribute an improvement for the broader .NET community.
Explore the repository ↗Need something more specific?
Help us understand how our website is used. With your permission, Google Analytics measures visits and product interactions. Privacy policy