Skip to content

Getting Started

Mehrn0ush edited this page Nov 22, 2026 · 1 revision

Getting Started

1. Install the CLI

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 --version

2. Try it offline

libtea spec
libtea parse-tei tei://example.com/uuid/2ff3ae7c-8eab-4e0b-9b8b-1a0c4c4c1c2d

spec 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.

3. Talk to a server

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
  • discover resolves the TEI to product releases.
  • inspect summarises the product, release, components and latest collection; it downloads nothing.
  • sync downloads every artifact format of the latest collection, checks the declared checksums, and writes tea.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).

Next

Clone this wiki locally