Skip to content

CLI Tool

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

CLI Tool (Faultline.Tool)

Install the global .NET tool:

dotnet tool install --global Faultline.Tool

Commands

faultline audit <path> [--format text|json]

Scans a C# file or directory (skipping bin/ and obj/) with Faultline.Analyzers (FL0001–FL0004) to report non-deterministic escapes—without adding any NuGet packages to the target codebase. Returns exit code 0 if clean, 1 if escapes are found.

faultline audit ./src
faultline audit ./src --format json

faultline inspect <assembly.dll>

Performs a read-only dry-run IL scan of a compiled .NET assembly and lists every BCL call site that Faultline.Rewriter would intercept.

faultline inspect ./bin/Release/net10.0/MyService.dll

faultline rewrite --faultline <Faultline.dll> [--dir <dir>] [--assemblies <a;b>] [--file <dll>]

Runs Faultline.Rewriter standalone for custom build or CI pipelines.

Clone this wiki locally