Aiursoft.CommandFramework 7.0.12

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aiursoft.CommandFramework --version 7.0.12                
NuGet\Install-Package Aiursoft.CommandFramework -Version 7.0.12                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aiursoft.CommandFramework" Version="7.0.12" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aiursoft.CommandFramework --version 7.0.12                
#r "nuget: Aiursoft.CommandFramework, 7.0.12"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aiursoft.CommandFramework as a Cake Addin
#addin nuget:?package=Aiursoft.CommandFramework&version=7.0.12

// Install Aiursoft.CommandFramework as a Cake Tool
#tool nuget:?package=Aiursoft.CommandFramework&version=7.0.12                

Aiursoft CommandFramework

MIT licensed Pipeline stat Test Coverage NuGet version (Aiursoft.CommandFramework) ManHours

Aiursoft CommandFramework is a framework for building command line tools.

  • Auto argument parsing
  • Auto help page generation
  • Auto version page generation
  • Run as service
  • Auto dependency injection
  • Auto command completion
  • Run as a single command app or a nested command app

With this framework, you can build a command line tool with just a few lines of code.

Example project it built:

Nested command app:

Single command app:

Background service:

C:\workspace> ninja.exe

Description:
  Nuget Ninja, a tool for detecting dependencies of .NET projects.

Usage:
  Microsoft.NugetNinja [command] [options]

Options:
  -p, --path <path> (REQUIRED)   Path of the projects to be changed.
  --nuget-server <nuget-server>  If you want to use a customized nuget server instead of the official nuget.org, 
  --token <token>                The PAT token which has privilege to access the nuget server.
  -d, --dry-run                  Preview changes without actually making them
  -v, --verbose                  Show detailed log
  -?, -h, --help                 Show help and usage information

Commands:
  all, all-officials  The command to run all officially supported features.
  remove-deprecated   The command to replace all deprecated packages to new packages.
  upgrade-pkg         The command to upgrade all package references to possible latest and avoid conflicts.
  clean-pkg           The command to clean up possible useless package references.
  clean-prj           The command to clean up possible useless project references.

Why this project?

Command-line applications are a great way to automate repetitive tasks or even to be your own productivity tool. But building a command-line application in .NET is not easy. You need to parse the arguments, generate help pages, and so on. This project is designed to help you build a command-line application with just a few lines of code.

How to use

Run the following command to install Aiursoft.CommandFramework to your project from nuget.org:

dotnet add package Aiursoft.CommandFramework

To use it, you need to decide between:

A single command app is a command line tool that only has one command.

This is useful for something with limited function, like:

  • Ping tool
  • File download tool
  • Web server tool

A nested command app is a command line tool that has multiple commands. like:

Select the scenario you want to use and follow the instructions.

Download a real sample project

If you want to explore a real project built with this framework, please check Happy Recorder as an example.

More doc

How to contribute

There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.

Even if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.

We're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Aiursoft.CommandFramework:

Package Downloads
Anduin.HappyRecorder.PluginFramework

Package Description

Aiursoft.Dotlang.Core

Package Description

Aiursoft.NiBot.Dedup

Nuget package of 'Dedup' provided by Aiursoft

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.6 91 10/9/2024
8.0.5 62 10/7/2024
8.0.4 66 7/9/2024
8.0.3 64 6/28/2024
8.0.2 69 6/27/2024
8.0.1 94 2/19/2024
8.0.0 74 2/19/2024
7.0.25 102 1/30/2024
7.0.24 158 12/12/2023
7.0.23 86 12/12/2023
7.0.22 77 12/12/2023
7.0.21 85 12/12/2023
7.0.20 89 12/11/2023
7.0.19 90 12/11/2023
7.0.18 84 12/11/2023
7.0.17 94 12/6/2023
7.0.16 91 12/6/2023
7.0.15 90 12/6/2023
7.0.14 86 12/6/2023
7.0.13 80 12/6/2023
7.0.12 85 12/6/2023
7.0.11 93 12/6/2023
7.0.10 93 12/6/2023
7.0.9 84 12/6/2023
7.0.8 93 12/6/2023
7.0.7 85 12/6/2023
7.0.6 112 11/11/2023
7.0.5 96 11/2/2023
7.0.4 81 11/2/2023
7.0.3 85 11/2/2023
7.0.2 103 9/13/2023
7.0.1 103 9/13/2023
7.0.0 97 9/5/2023
6.0.0 212 7/20/2023
1.0.0 139 7/20/2023