Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Quick start

This guide walks through a local scan and a non-destructive repair plan using repository fixtures.

Prerequisites

  • Rust stable (rustfmt, clippy)
  • Built prqnt binary (see Installation)

Scan a fixture dataset

prqnt scan fixtures/scan/single_parquet/data.parquet

Use --json for machine-readable output on supported commands.

Diagnose and plan

prqnt doctor fixtures/schema/frankenlake-v2 \
  --policy fixtures/schema/policy.toml

doctor runs scan → diagnose → plan in one invocation. It does not write repaired data unless you pass --repair and --output.

Generate a plan file explicitly:

prqnt plan fixtures/schema/frankenlake-v2 \
  --policy fixtures/schema/policy.toml \
  --output /tmp/frankenlake-plan.json

Execute a safe repair (separate output)

Never repair in place — always write to a new directory:

prqnt repair fixtures/schema/frankenlake-v2 \
  --plan /tmp/frankenlake-plan.json \
  --output /tmp/frankenlake-repaired

Operations classified ReviewRequired need explicit authorization:

prqnt repair … --authorize <operation_id>

CI-style check

prqnt check fixtures/schema/frankenlake-v2 \
  --policy docs/ci-policy.toml

Exit codes are stable; see CLI overview.

Try the HTTP server

prqnt serve --state-dir /tmp/prqnt-demo --listen 127.0.0.1:8080

Bootstrap an admin token with PRQNT_BOOTSTRAP_ADMIN_TOKEN (never commit or log the value). See Authentication and HTTP API.