Open-source C# projects categorized as CLI | Edit details

Top 23 C# CLI Projects

  • GitHub repo ArchiSteamFarm

    C# application with primary purpose of idling Steam cards from multiple accounts simultaneously.

    Project mention: Has anyone actually ever received a booster pack? | reddit.com/r/Steam | 2021-11-27
  • GitHub repo Gui.cs

    Console-based user interface toolkit for .NET applications.

    Project mention: Dos-like: Engine for making things with a MS-DOS feel, but for modern platforms | news.ycombinator.com | 2021-10-08
  • Smarter Code

    Your Free Guide to Become Microsoft Azure Certified. Get this free guide to learn about different Azure certifications, what fits your current role, preparation resources, and freelancing platforms for Azure professionals to earn income

  • GitHub repo win-acme

    A simple ACME client for Windows (for use with Let's Encrypt et al.)

    Project mention: How to Create and install Free SSL certificates in IIS? | dev.to | 2021-02-15
  • GitHub repo spectre.console

    A .NET library that makes it easier to create beautiful console applications.

    Project mention: Is there something faster than standard Console? | reddit.com/r/csharp | 2021-11-25

    Try https://github.com/spectreconsole/spectre.console

  • GitHub repo Command Line Parser

    The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support

    Project mention: Reverse Engineering Keyboard Driver: Part 2 (Decompiling .NET applications) | dev.to | 2021-10-05


  • GitHub repo CommandLineUtils

    Command line parsing and utilities for .NET

    Project mention: Writing tests for CLI tool | dev.to | 2021-11-14

    I want to test how my tools generated files and folders in the destination with different arguments passed to the program. However, in my old code, I put all the logic of working with arguments in the static int main( string[] args) function. I could not use Interface and Dependency injection to mock the CLI tools because CommandLineUtils does not have an interface library. Luckily, I found this guidance from the owner of CommandLineUtils, and he advised that "Split the command-line argument parser and application execution into separate class structures" to test various options programmatically. It is a great suggestion, and I rewrote my program by adding class CommandLineOptions and adding logic to class Generator to make it works with CommandLineOptions. I can kill two birds with one stone by this change: code refactoring and writing better tests. Another problem I had was my folder structure. Before, I put the project's sln file, .git file , and src files in the root of the folder. However, when I added a new test project for Shinny-SSG, I had it outside my git folder, and it would be impossible to commit the change and put it in my remote repository. To resolve this, I had to change my folder structure to this:

  • GitHub repo sdk

    Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI (by dotnet)

    Project mention: I made a NuGet package to help identify EOL TFMs | reddit.com/r/csharp | 2021-11-24

    What does your package do differently from what is already built-in? https://github.com/dotnet/sdk/blob/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.EolTargetFrameworks.targets

  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • GitHub repo CliWrap

    Library for running command line processes

    Project mention: Console output window within a winform? | reddit.com/r/csharp | 2021-06-07
  • GitHub repo CliFx

    Declarative framework for building command line interfaces

    Project mention: Have you ever played the #TicTacToe game? But through a REST API? 🤔 #CSharp | reddit.com/r/csharp | 2021-06-25

    [1] https://github.com/Tyrrrz/CliFx/discussions/108

  • GitHub repo Colorful.Console

    Style your .NET console output!

  • GitHub repo CSharpRepl

    A command line C# REPL with syntax highlighting – explore the language, libraries and nuget packages interactively.

    Project mention: CSharpRepl: A cross-platform command-line REPL for C# | news.ycombinator.com | 2021-07-01
  • GitHub repo ReadLine

    A Pure C# GNU-Readline like library for .NET/.NET Core (by tonerdo)

  • GitHub repo ini-parser

    Read/Write an INI file the easy way!

    Project mention: The Fssf Mentorship Schedule Planner | reddit.com/r/fsharp | 2020-12-29

    Alternatively, instead of using a type provider (which isn't simple by any means), you can use any number of CSV or INI parsers, e.g. https://joshclose.github.io/CsvHelper/ or https://github.com/rickyah/ini-parser

  • GitHub repo Sieve

    ⚗️ Clean & extensible Sorting, Filtering, and Pagination for ASP.NET Core

    Project mention: Library for Filtering/Sorting/Pagination Microsoft Style | reddit.com/r/dotnet | 2021-03-30

    Closest I've found it Sieve, but it requires such heavy modification that I basically have to re-write it.

  • GitHub repo Console Framework

    Cross-platform toolkit for easy development of TUI applications.

    Project mention: I need help creating a hex editor from scratch | reddit.com/r/csharp | 2021-08-16

    So for TUI I Like ConsoleFramework https://github.com/elw00d/consoleframework

  • GitHub repo Fluent Command Line Parser

    A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface

    Project mention: crashes when non existant variable is used (with code this time) | reddit.com/r/csharp | 2021-03-15

    Another option is to use existing command line parser library like FCLP.

  • GitHub repo Power Args

    The ultimate .NET Standard command line argument parser

  • GitHub repo Cocona

    Micro-framework for .NET console application. Cocona makes it easy and fast to build console applications on .NET.

    Project mention: My preferred .NET console stack – An opinionated view on .NET console apps | news.ycombinator.com | 2021-01-15

    Cocona [1] is my command line parsing library of choice.

    1. https://github.com/mayuki/Cocona

  • GitHub repo craftsman

    A .NET scaffolding tool to help you stop worrying about boilerplate and focus on your business logic 🚀

    Project mention: Is it just me or most of these "popular" template on github just doesn't really make sense to me? | reddit.com/r/dotnet | 2021-11-21

    Also a big fan of VSA myself. I actually made a scaffolding tool for it if you haven’t seen it yet OP. About to have a new release with .NET 6 and many many updates and cleanup up, just waiting for a package to catch up. It’s still pre v1 with some gaps to fill but it is a good starting point

  • GitHub repo CommandDotNet

    A modern framework for building modern CLI apps

  • GitHub repo Sharprompt

    Interactive command-line based application framework for C#

    Project mention: How to build an interactive command-line application in .NET | dev.to | 2021-08-23

    View on GitHub

  • GitHub repo CsConsoleFormat

    .NET C# library for advanced formatting of console output [Apache]

  • GitHub repo Docopt

    Port of docopt to .net

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-11-27.

C# CLI related posts


What are some of the best open-source CLI projects in C#? This list will help you:

Project Stars
1 ArchiSteamFarm 7,118
2 Gui.cs 5,815
3 win-acme 4,272
4 spectre.console 3,999
5 Command Line Parser 3,181
6 CommandLineUtils 1,766
7 sdk 1,595
8 CliWrap 1,381
9 CliFx 1,053
10 Colorful.Console 1,047
11 CSharpRepl 878
12 ReadLine 764
13 ini-parser 724
14 Sieve 674
15 Console Framework 518
16 Fluent Command Line Parser 510
17 Power Args 507
18 Cocona 456
19 craftsman 357
20 CommandDotNet 321
21 Sharprompt 308
22 CsConsoleFormat 306
23 Docopt 263
Find remote jobs at our new job board 99remotejobs.com. There are 34 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Scout APM: A developer's best friend. Try free for 14-days
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.