← Command reference · lean-pkg index · CLI overview
lean-pkg index render
write the Markdown table (default <index>/README.md).
Usage
lean-pkg index render [--out OUT] [--check] [--index INDEX] [--json]
Arguments and flags
| Argument or flag | Description |
|---|---|
--out OUT |
|
--check |
exit 1 when the file is stale; write nothing |
--index INDEX |
index root (default: $LEAN_PKG_INDEX, else index/ beside the registry when present, else ./index) |
Details
| Form | What it does | Key flags |
|---|---|---|
index render |
write the Markdown table (default index/README.md), plus a claims list when index-entry/2 entries exist; a conditional headline’s trust reads comparator, conditional on 1 assumption (the tier itself is unchanged) |
[--out PATH] [--check] [--index PATH] |
Exit codes
Exit 1 is also a negative answer here:
index render --check: an entry fails its checks / README.md is stale
Examples
Regenerate the Markdown table index/README.md from every index/*/entry.yaml, plus a claims list when index-entry/2 entries exist.
lean-pkg index render --index index
Sample output:
index rendered: index/README.md (3 entries)
Write nothing and exit 1 when index/README.md is stale against the entries.
lean-pkg index render --check --index index
Sample output:
index/README.md: current