C# Command-line

Open-source C# projects categorized as Command-line

Top 23 C# Command-line Projects

  • PowerShell

    PowerShell for every system!

    Project mention: New PowerShell Version - v7.3.7: [7.3.7] - 2023-09-18 | /r/PowerShell | 2023-09-20
  • N_m3u8DL-CLI

    [.NET] m3u8 downloader 开源的命令行m3u8/HLS/dash下载器,支持普通AES-128-CBC解密,多线程,自定义请求头等. 支持简体中文,繁体中文和英文. English Supported.

    Project mention: How to download content from Skool? | /r/Piracy | 2023-04-20

    Internet download manager, or use stream detector to get the m3u8 link and use N_m3u8DL-CLI to download the videos (for an easy use I suggest you to use the SimpleG)

  • Mergify

    Tired of breaking your main and manually rebasing outdated pull requests?. Managing outdated pull requests is time-consuming. Mergify's Merge Queue automates your pull request management & merging. It's fully integrated to GitHub & coordinated with any CI. Start focusing on code. Try Mergify for free.

  • Command Line Parser

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

    Project mention: Parse CLI arguments in .NET | dev.to | 2023-02-25

    So after some research I found the awesome NuGet-Package Command Line Parser Library. This package allows to define your options with Property-Attributes.

  • gsudo

    Sudo for Windows

    Project mention: Gsudo: Sudo for Windows | news.ycombinator.com | 2023-06-27
  • CliWrap

    Library for running command-line processes

    Project mention: ModularPipelines - Strong-Typed, Parallel, C# Pipelines - Would appreciate feedback and thoughts | /r/csharp | 2023-05-29

    That being said, keep up the good work. I see a lot of potential in combo with libs like https://github.com/Tyrrrz/CliWrap

  • command-line-api

    Command line parsing, invocation, and rendering of terminal output.

    Project mention: How to configure true dependency injection in System.CommandLine | dev.to | 2023-06-20

    using System.CommandLine.Invocation; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; namespace System.CommandLine.Builder; internal static class DependencyInjectionMiddleware { public static CommandLineBuilder UseDependencyInjection(this CommandLineBuilder builder, Action configureServices) { return UseDependencyInjection(builder, (_, services) => configureServices(services)); } // This overload allows you to conditionally register services based on the command line invocation context // in order to improve startup time when you have a lot of services to register. public static CommandLineBuilder UseDependencyInjection(this CommandLineBuilder builder, Action configureServices) { return builder.AddMiddleware(async (context, next) => { // Register our services in the modern Microsoft dependency injection container var services = new ServiceCollection(); configureServices(context, services); var uniqueServiceTypes = new HashSet(services.Select(x => x.ServiceType)); services.TryAddSingleton(context.Console); await using var serviceProvider = services.BuildServiceProvider(); // System.CommandLine's service provider is a "fake" implementation that relies on a dictionary of factories, // but we can still make sure here that "true" dependency-injected services are available from "context.BindingContext". // https://github.com/dotnet/command-line-api/blob/2.0.0-beta4.22272.1/src/System.CommandLine/Invocation/ServiceProvider.cs context.BindingContext.AddService(_ => serviceProvider); foreach (var serviceType in uniqueServiceTypes) { context.BindingContext.AddService(serviceType, _ => serviceProvider.GetRequiredService(serviceType)); // Enable support for "context.BindingContext.GetServices<>()" as in the modern dependency injection var enumerableServiceType = typeof(IEnumerable<>).MakeGenericType(serviceType); context.BindingContext.AddService(enumerableServiceType, _ => serviceProvider.GetServices(serviceType)); } await next(context); }); } }

  • mpv.net

    🎞 mpv.net is a modern media player for Windows that works just like mpv.

    Project mention: what is the best still maintained front end for mpv? | /r/mpv | 2023-07-10

    There's a pinned issue on the github page about the state of mpv.net development from January 2023 where the dev says that they started working on a cross-platform successor of mpv.net instead.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • CommandLineUtils

    Command line parsing and utilities for .NET

    Project mention: Enforcing command line arguments with CommandLineUtils? | /r/dotnet | 2022-10-20

    The library doesn't support that format, here you can see that MultipleValues means for example "-o value1 -o value2" Options Support options with multiple values · Issue #311 · natemcmaster/CommandLineUtils · GitHub

  • Cocona

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

  • CliFx

    Class-first framework for building command-line interfaces

    Project mention: Simple Command line Project Helper (Would love feedback) | /r/csharp | 2022-12-17

    Is there any reason why I would use this over established projects like CliFx or CommandLineUtils?

  • azure-cost-cli

    CLI tool to perform cost analysis on your Azure subscription

    Project mention: Azure cost cli - retrieve cost overviews from the command line | /r/AZURE | 2023-04-23

    Hmm the Cost API works in mysterious ways. I noticed that different kinds of subscriptions can have different effects. On the github readme page I listed a way to lookup the subscription offer itself and how to validate that on the MS docs site to see what it supports. I will see if I can automate this somehow. Thanks for trying it out and reporting this. I think it might be the same issue as this one: https://github.com/mivano/azure-cost-cli/issues/25

  • Towel

    Throw in the towel.

    Project mention: What your hidden nuget gems ? | /r/dotnet | 2023-03-10

    Towel - Throw in the towel! data structures, algorithms, mathematics, metadata, extensions, console, and more - https://github.com/ZacharyPatten/Towel

  • Kurukuru

    Terminal Spinner for .NET platform

    Project mention: Text loading spinners? | /r/csharp | 2022-12-22
  • Sharprompt

    Interactive command-line based application framework for C#

  • CommandDotNet

    A modern framework for building modern CLI apps

    Project mention: How to generate a CLI interface for CRUD operations? | /r/dotnet | 2022-12-11

    Someone asked a similar question about a https://github.com/bilal-fazlani/commanddotnet/, which is a tool I help maintain.

  • winget-create

    The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)

  • Docopt

    Port of docopt to .net

  • Typin

    Declarative framework for interactive CLI applications

  • SimplySerial

    A windows console application for serial communications.

  • mpv.net-experimental

    mpv.net-experimental is a rewrite/redesign and enhancement of the mpv.net media player.

    Project mention: Anything like mpv.net that is still being updated? | /r/mpv | 2023-06-08
  • ObsidianSailboat

    Nmap and NSE command line wrapper in the style of Metasploit

  • CommandLine

    A console prompt for Unity. (by Butjok)

  • Cli.NET

    🖥 OOP-first library focused on providing a key-value interface for creating command line tools based on instantiable commands

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

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 2023-09-20.

C# Command-line related posts

Index

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

Project Stars
1 PowerShell 40,704
2 N_m3u8DL-CLI 12,368
3 Command Line Parser 4,150
4 gsudo 3,904
5 CliWrap 3,810
6 command-line-api 3,161
7 mpv.net 2,358
8 CommandLineUtils 2,096
9 Cocona 1,975
10 CliFx 1,352
11 azure-cost-cli 666
12 Towel 665
13 Kurukuru 620
14 Sharprompt 616
15 CommandDotNet 527
16 winget-create 377
17 Docopt 338
18 Typin 224
19 SimplySerial 141
20 mpv.net-experimental 55
21 ObsidianSailboat 35
22 CommandLine 30
23 Cli.NET 25
Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
www.influxdata.com