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. Learn more →
Top 23 C# Command-line Projects
-
-
N_m3u8DL-CLI
[.NET] m3u8 downloader 开源的命令行m3u8/HLS/dash下载器,支持普通AES-128-CBC解密,多线程,自定义请求头等. 支持简体中文,繁体中文和英文. English Supported.
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
So after some research I found the awesome NuGet-Package Command Line Parser Library. This package allows to define your options with Property-Attributes.
-
-
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
-
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); }); } }
-
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.
-
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.
-
Is there any reason why I would use this over established projects like CliFx or CommandLineUtils?
-
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! data structures, algorithms, mathematics, metadata, extensions, console, and more - https://github.com/ZacharyPatten/Towel
-
-
-
Someone asked a similar question about a https://github.com/bilal-fazlani/commanddotnet/, which is a tool I help maintain.
-
-
-
-
-
mpv.net-experimental
mpv.net-experimental is a rewrite/redesign and enhancement of the mpv.net media player.
-
-
-
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.
C# Command-line related posts
- How to configure true dependency injection in System.CommandLine
- ModularPipelines - Strong-Typed, Parallel, C# Pipelines - Would appreciate feedback and thoughts
- Azure cost cli - retrieve cost overviews from the command line
- C# .NET Tools with System.CommandLine
- Pro .NET Console Apps
- Textual (TUI framework) widget gallery
- Parse CLI arguments in .NET
-
A note from our sponsor - Mergify
blog.mergify.com | 23 Sep 2023
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 |