← Command reference · CLI overview
lean-pkg receipt
produce receipts (slurm, systemd, ci: the lower tier; comparator: the comparator run; each writes files in the package checkout, never the registry); check a published package’s receipts from git alone (check).
Usage
lean-pkg receipt [--json] COMMAND
Subcommands
lean-pkg receipt slurm: a lower-tier receipt from a finished Slurm job, its verify log and its stdout seal (–template: an sbatch wrapper that meets it; –check: preflight the job’s files)lean-pkg receipt systemd: a lower-tier receipt from a finished systemd –user service unit (run bounded with –run, or its saved properties), its verify log and its stdout seallean-pkg receipt ci: a lower-tier receipt written inside a GitHub Actions job (job_id gha-<run>-<attempt>, the ci block from the runner’s variables); –collect RUN: fetch and check a run’s receipt; –template: the caller workflowlean-pkg receipt comparator: run the comparator on a Lake project and write the comparator receipt (thecomparator-receiptprogram: the same code and flags)lean-pkg receipt check: validate a published package’s receipts from git alone: no registry, no network, never runs Lean (an outside referee’s check; exit 0 only when every check passes)
Details
| Form | What it does | Key flags |
|---|---|---|
receipt |
produce lower-tier receipts; writes files in the package checkout, never the registry. Three forms, one pipeline: receipt slurm (a Slurm job), receipt systemd (alias receipt local: a systemd –user service unit) and receipt ci (inside a GitHub Actions job; --collect RUN fetches its receipt). receipt check reads them back: a published package’s receipts checked from git alone, with no registry |
slurm systemd ci check |
Exit codes
0 success (dry runs and no-ops included), 1 refused or failed, 2 usage error; see Exit codes.