iSukces.CliTools
1.26.713.1
dotnet add package iSukces.CliTools --version 1.26.713.1
NuGet\Install-Package iSukces.CliTools -Version 1.26.713.1
<PackageReference Include="iSukces.CliTools" Version="1.26.713.1" />
<PackageVersion Include="iSukces.CliTools" Version="1.26.713.1" />
<PackageReference Include="iSukces.CliTools" />
paket add iSukces.CliTools --version 1.26.713.1
#r "nuget: iSukces.CliTools, 1.26.713.1"
#:package iSukces.CliTools@1.26.713.1
#addin nuget:?package=iSukces.CliTools&version=1.26.713.1
#tool nuget:?package=iSukces.CliTools&version=1.26.713.1
iSukces.CliTools
Helper library for running external CLI tools from .NET applications. It provides classes for asynchronous process execution, argument building, environment variable handling, stdout/stderr capture, and returning process results in a consistent model.
Requirements
- .NET 10
Installation
NuGet package:
dotnet add package iSukces.CliTools
Usage
Minimal process execution:
var result = await new Cli
{
FileName = "dotnet",
Arguments = ["--info"]
}.RunAsync();
Console.WriteLine(result.Output);
Building command-line arguments:
var arguments = new ArgumentCollector();
arguments.Add("input.mp4");
arguments.Add("output.mp3", "output");
arguments.Add(true, "overwrite", "no-overwrite");
Main types
Cli
Runs external processes asynchronously. It supports executable file selection, arguments, working directory, environment variables, stdout/stderr redirection, and output display modes: All, Tail, and None.
ArgumentCollector
Builds CLI argument arrays. It supports plain arguments, prefixed options, boolean switches, numeric and text values, and snake_case conversion through AddSnake.
CliResult and CliException
CliResult stores the exit code, stdout, stderr, start time, finish time, duration, and full invocation data. CreateException creates a CliException with process error details.
Result<T> and Result
Operation result model containing a value, success status, exception, and optional CliResult. Make, MakeAsync, and FromCliCallEx wrap synchronous, asynchronous, and CLI calls.
EnvironmentUpdater
Prepares environment variables for a process, prepends directories to PATH, activates changes temporarily, and searches for executable files in configured paths.
TailConsoleOutput
Displays the last process output lines in the console. It is used by Cli when the Tail output mode is selected.
WindowsConsoleUtils
Contains EscapeCommandLineParameterIfNecessary, which escapes command-line arguments according to Windows parsing rules.
TextExtensions
Contains text extensions, including ToSnake and Coalesce.
Build
dotnet build ..\iSukces.Cli.sln
Project configuration
- Target framework:
net10.0 - Package license: MIT
Disclaimer
This package only provides a .NET layer that starts the selected external process in the operating system. It acts as a bridge/facade for a tool supplied and installed outside this package.
This package does not include the executed tool, does not modify how it works, and is not responsible for its results, failures, environment requirements, resource usage, or any damages resulting from the use of that external tool.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- iSukces.Translation (>= 1.26.204.17)
- Newtonsoft.Json (>= 13.0.4)
- YamlDotNet (>= 18.1.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on iSukces.CliTools:
| Package | Downloads |
|---|---|
|
iSukces.Cli.Python
.NET library for managing Python environments: virtual environment creation, pip package installation, PyTorch and CUDA Toolkit detection, HuggingFace token handling, and process environment variable management. |
|
|
iSukces.Cli.Whisper
.NET process wrapper for invoking an independently installed OpenAI Whisper CLI executable from C# applications. The package builds command-line arguments and starts Whisper as a separate operating-system process; it does not include, distribute, install, download, link against, or license OpenAI Whisper, Whisper models, Python, PyTorch, CUDA, or GPU drivers. |
|
|
iSukces.Cli.Punctuate
.NET process wrapper for restoring punctuation and sentence boundaries by invoking a Python punctuation script as a separate operating-system process. The package prepares command-line arguments, exchanges input/output through temporary files, and optionally exposes helpers that can start user-side external tools such as uv or pip; it does not include, redistribute, or license Python, PyTorch, Hugging Face Transformers, SentencePiece, or the kredor/punctuate-all model. |
|
|
iSukces.Cli.Ffmpeg
.NET process wrapper for invoking an independently installed FFmpeg executable from C# applications. The package builds command-line arguments and starts FFmpeg as a separate operating-system process; it does not include, distribute, install, or link against FFmpeg or libav* libraries. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.26.713.1 | 148 | 7/13/2026 |