Repository navigation
CLI Cheat Sheet
Mehrn0ush edited this page Nov 22, 2026
·
1 revision
libtea --help and libtea <command> --help are always current for the
installed version. Add --json for machine-readable output
(cli-json.md).
| Command | Does |
|---|---|
spec |
Print the pinned TEA specification identity |
parse-tei <tei> |
Parse a TEI offline |
conformance |
Offline smoke checks, as a JSON report (not a certification) |
discover <tei> / discover --purl <purl> --base <url>
|
Resolve a TEI or Package URL to product releases |
inspect <tei> |
Summarise product, release, components, latest collection; downloads nothing |
product-release --base <url> ... |
Fetch one product release |
collections --base <url> ... |
List or fetch a release's collections |
search <what> --base <url> ... |
Query products, releases or components by identifier |
cle --base <url> ... [--version V [--scheme pypi]] |
Lifecycle events, and which apply to a version |
download --base <url> --artifact <uuid> ... |
Download one artifact, checking its checksums; --signature-key also verifies its signature |
sync <tei> --lock FILE [--check] |
Fetch, verify and lock the latest collection; --check compares instead |
diff OLD NEW |
Compare two lock files offline |
cache stat / cache clear
|
Inspect or empty the response cache |
| Code | Meaning |
|---|---|
| 0 | success |
| 1 | failure (network, TLS, timeout, size limit, server error, refused path) |
| 2 | usage or bad input |
| 3 | authentication or authorization |
| 4 | only weak (SHA-1) checksums matched |
| 5 | not found or not resolved |
| 6 | integrity not established |
| 7 | changes detected (sync --check, diff) |
| 8 | signature not verified (download --signature-key) |
The full rules, including precedence, are in cli-exit-codes.md. The numbers are part of the CLI's stable contract.
-
--allow-origin <origin>: permit a non-public or non-HTTPS origin (local test servers). -
--require-checksums: fail when a format declares no checksum. -
--allow-weak-checksums: accept a SHA-1-only match. -
--force: overwrite an existing--outputfile. -
--signature-key <path>(repeatable),--signature-output <path>: verify and keep a detached signature. -
--cache-dir DIR,--offline: see cache.md.
This wiki is a guide. The repository docs are versioned with the code and are authoritative. libtea-rs is independent and not affiliated with CycloneDX or Ecma.