CliTemplate
August 20, 2024 ยท View on GitHub
Pre-configured dotnet tool CLI template.
Features implemented:
- Configuration for dotnet tool
- Dependency injection
- CommandLine argument parser (with CliFx)
- Simple update checker from nuget (optional)
Libraries used:
Installation
You can install it as dotnet new template:
dotnet new --install Enisn.Templates.Cli
Usage
You can create a new project from terminal:
dotnet new cli -n MyCli
If you wish to use Nuget Update checker you can pass -NugetUpdateCheck or -N option to the command:
dotnet new cli -n MyCli -N
Showcase
- AbpDevTools is a project that uses this template. You can check it out for a real-world example.