Skip to the content.

← Command reference · CLI overview

lean-pkg comparator

comparator receipts: attach one to a gated package, or check it; config (write a configuration from claims), coverage, migrate-signoff; host-check.

Usage

lean-pkg comparator [--json] COMMAND

Subcommands

Details

The comparator tier: comparator attach records a comparator receipt on a gated package, comparator check validates one without recording it, comparator config drafts a configuration from the claims, comparator coverage reports what the configuration at the gate-bound commit covers, comparator migrate-signoff moves deprecated inline sign-off keys into lean-pkg-signoff.json, and comparator host-check asks whether this machine can run the comparator. The receipt itself is written by receipt comparator (the comparator-receipt program). Before 1.0, comparator NAME --receipt R attached, --check validated, and config --coverage / --migrate-signoff were modes of config; those spellings keep working (aliases). See The comparator tier.

Exit codes

0 success (dry runs and no-ops included), 1 refused or failed, 2 usage error; see Exit codes.