Repository navigation
Getting Started
Pick one channel. They differ in what is checked for you (full comparison).
| Channel | Command | What is checked |
|---|---|---|
| Release archive (recommended when you need provenance) | download from Releases, then follow installing.md |
SHA256SUMS and build-provenance attestation (gh attestation verify) |
| Homebrew (macOS, Linux; 0.2.2 and later) | brew install mehrn0ush/tap/libtea |
SHA-256 in the formula, copied from the attested SHA256SUMS; no attestation check |
| crates.io (0.2.0 and later; Rust 1.89+) | cargo install libtea-cli --locked |
crates.io checksums; you compile it, no attestation |
| cargo-binstall (from the first CLI release after 0.2.2) | cargo binstall libtea-cli |
downloads the release archive; no SHA-256 or attestation check |
| From a tag (Rust 1.89+) | cargo install --git https://github.com/Mehrn0ush/libtea-rs --tag v0.2.2 --locked libtea-cli |
none |
Targets with release archives: Linux x86_64 and aarch64 (gnu and musl), macOS x86_64 and aarch64, Windows x86_64. The gnu builds need glibc 2.34 or newer; the musl builds are static and run anywhere, including Alpine.
Check the install:
libtea --versionlibtea spec
libtea parse-tei tei://example.com/uuid/2ff3ae7c-8eab-4e0b-9b8b-1a0c4c4c1c2dspec prints the TEA specification commit this release was written
against; parse-tei splits a TEI into its parts and shows the
.well-known/tea URL it resolves through.
Replace the TEI and API base with your server's:
libtea discover tei://example.com/uuid/2ff3ae7c-8eab-4e0b-9b8b-1a0c4c4c1c2d
libtea inspect tei://example.com/uuid/2ff3ae7c-8eab-4e0b-9b8b-1a0c4c4c1c2d
libtea sync tei://example.com/uuid/2ff3ae7c-8eab-4e0b-9b8b-1a0c4c4c1c2d --lock tea.lock-
discoverresolves the TEI to product releases. -
inspectsummarises the product, release, components and latest collection; it downloads nothing. -
syncdownloads every artifact format of the latest collection, checks the declared checksums, and writestea.lock.
By default the CLI only connects over HTTPS to public addresses. For a local
test server, pass --allow-origin.
If the server needs a key, set TEA_API_KEY_ID and TEA_API_KEY_SECRET
in the environment (details).
- CLI Cheat Sheet
- Using libtea in CI
- Concepts, especially "What a checksum proves"
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.