https://github.com/alluiz/clysh
Create your own CLI on .NET 6+ with simple steps.
https://github.com/alluiz/clysh
cli clysh command-line command-line-tool csharp dotnet
Last synced: 6 months ago
JSON representation
Create your own CLI on .NET 6+ with simple steps.
- Host: GitHub
- URL: https://github.com/alluiz/clysh
- Owner: alluiz
- License: mit
- Created: 2022-04-06T09:12:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T06:18:32.000Z (over 3 years ago)
- Last Synced: 2025-10-26T14:37:13.824Z (9 months ago)
- Topics: cli, clysh, command-line, command-line-tool, csharp, dotnet
- Language: C#
- Homepage:
- Size: 390 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Clysh
**CL**i in **Y**aml for **SH**ell apps
Create your **own CLI on .NET 6+** with simple steps.
## What is?
**Clysh** is a library to create a .NET _Command Line Interface_ (CLI). The main goal is to create your own CLI with **only business code**.
## Features
Clysh has some features to **facilitate** the process of create a CLI.
- You can write your own CLI as an **YAML** or **JSON** file. The file is parsed at runtime.
- Easy to **make a command tree**. You can nest commands to run in a specific order;
- The commands can have **custom options** with your own shortcuts;
- The options can have **required and/or optional parameter** to some user data input.
- You can group options like **a radio button**.
- The **help** command is auto-generated.
- Easy to mocking for unit tests.
- 2.0 NEW: Global options feature to reuse option structure with N commands
## Getting Started
To use Clysh you need to install the package from NuGet.
> dotnet add package clysh
**The project of example app is available on [GitHub](https://github.com/alluiz/clysh/tree/master/Samples/Clysh.Sample)**