Skip to content

CLI Reference

darkstar edited this page Oct 3, 2026 · 2 revisions

CLI Reference

From diagprint --help (v0.8.1). Every command has --help.

diagprint scan [PATH] [OPTIONS]
diagprint capsule <COMMAND> <CAPSULE>
diagprint history <COMMAND> <HISTORY>
diagprint why <HISTORY> <FINGERPRINT>
diagprint timeline <HISTORY> <FINGERPRINT>
diagprint graph <HISTORY> <FINGERPRINT> [OPTIONS]
diagprint replay <HISTORY> <FINGERPRINT> [--format text|json]
diagprint blame <HISTORY> <FINGERPRINT> [--run <N>] [--repo <PATH>]

🔍 scan

Profile What runs
static filesystem/static analysis only, executes nothing
standard static + Cargo metadata + Git status (default)
deep adds cargo check, Clippy and tests; may execute project code
Option
--profile <PROFILE> · --static · --deep choose a profile
--format <compiler|plain|audit|markdown|html> output format
-o, --output <FILE> write to a file
--capsule <DIR> write a verifiable capsule
--history <DIR> append a privacy-light, hash-chained run (.diagprint/history recommended)
--history-label <LABEL> label the run
--git-provenance bind the run to a clean Git commit/tree
diagprint scan .
diagprint scan . --deep --history .diagprint/history --history-label pre-refactor
diagprint scan . --static --history .diagprint/history --capsule reports/project.diagpack

📦 capsule

capsule verify <CAPSULE> verify every manifest-listed payload
capsule inspect <CAPSULE> verify first, then show contents

📚 history

verify run digests, chain links, sequence, head
show runs, chain identities, semantic transitions
fingerprints logical finding identities and lifecycle state
lineage <FP> one finding across all runs
why <FP> · timeline <FP> · graph <FP> · replay <FP> same as the top-level commands
remediation-verify verify every remediation evidence sidecar
git-bind <RUN> <COMMIT> backfill a user_asserted Git binding

Fingerprints can be the full canonical value or a unique leading hex prefix from history fingerprints.

🔬 Forensics commands

Command Options
why none; evidence case file
timeline none; glyph timeline
graph --run <N> · --depth <N> (default 3) · --direction <upstream|downstream|both> · --evidence <explicit|all> · --format <text|json|dot>
replay --format <text|json>
blame --run <N> · --repo <PATH>

Details and output samples: Diagnostic Forensics.

← 🔬 Diagnostic Forensics  ·  📦 Features & Crates →

🩺 diagprint

⚡ Start

🧱 Build

📤 Ship

🔧 Fix

🔬 Investigate

🛠️ Project


🌐 Site · 📖 docs.rs · 📦 crates.io

Clone this wiki locally