RunicCommandLine.Processes 0.1.0-preview.5.1

This is a prerelease version of RunicCommandLine.Processes.
dotnet add package RunicCommandLine.Processes --version 0.1.0-preview.5.1
                    
NuGet\Install-Package RunicCommandLine.Processes -Version 0.1.0-preview.5.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RunicCommandLine.Processes" Version="0.1.0-preview.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RunicCommandLine.Processes" Version="0.1.0-preview.5.1" />
                    
Directory.Packages.props
<PackageReference Include="RunicCommandLine.Processes" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RunicCommandLine.Processes --version 0.1.0-preview.5.1
                    
#r "nuget: RunicCommandLine.Processes, 0.1.0-preview.5.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RunicCommandLine.Processes@0.1.0-preview.5.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RunicCommandLine.Processes&version=0.1.0-preview.5.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=RunicCommandLine.Processes&version=0.1.0-preview.5.1&prerelease
                    
Install as a Cake Tool

RunicCommandLine.Processes

Bounded, shell-free local process execution for command-line automation. The package uses ProcessStartInfo.ArgumentList, captures stdout and stderr concurrently, keeps draining after retention caps, and returns sanitized states instead of raw exceptions.

Every request is evaluated by an IExecutablePolicy. Use LocalExecutablePolicy with explicit executable and working-directory roots when requests cross a trust boundary. Process execution is a local capability and must not be exposed directly to browser or UI input.

The runner resolves a name through the effective PATH and launches the exact path shown to the policy. This reduces check/start inconsistency but is not an operating- system sandbox: a permitted file or symlink can still be replaced between evaluation and start. Inherited environment variables may contain credentials; higher-security callers should supply a minimal child environment and an absolute allowlisted path.

var policy = new LocalExecutablePolicy(
    executableRoots: new[] { applicationToolsDirectory },
    workingDirectoryRoots: new[] { applicationDataDirectory });
var runner = new ProcessRunner(policy);
var request = new ProcessRequest(
    toolPath,
    new[] { "export", "--output", outputPath },
    workingDirectory: applicationDataDirectory,
    options: new ProcessExecutionOptions(timeout: TimeSpan.FromSeconds(30)));

ProcessResult result = await runner.RunAsync(request, cancellationToken);

Arguments are always distinct tokens. Do not join or quote them into a shell command. Output limits are byte limits; retained bytes are decoded only after both redirected pipes are drained.

Stable faults

Code Meaning
RCLI6001 Executable rejected by policy
RCLI6002 Working directory rejected by policy
RCLI6003 Invalid policy decision
RCLI6004 Policy evaluation failed safely
RCLI6005 Operating-system start failure
RCLI6006 Post-start lifecycle observation failure

Use the matching ProcessFaultCodes constants when branching on these identities. Custom policy messages and details are deliberately not copied into results; rejection is normalized to a bounded library-owned message to prevent accidental data exposure.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.5.1 72 8/11/2026