@hostr/cli
v0.5.0
Published
CLI for hostr — self-hosted video infrastructure (upload, transcode, HLS delivery)
Readme
@hostr/cli
CLI for hostr — self-hosted video infrastructure: resumable upload → transcode → HLS delivery with signed playback URLs.
npx @hostr/cli # setup status and the next command to run
npx @hostr/cli login # opens a browser for a human to approve — no key to paste, ever
npx @hostr/cli init # write the integration guide + env template into your repo
npx @hostr/cli keys create --name "app dev" --write-env .env.local
npx @hostr/cli upload demo.mp4 --wait --json
npx @hostr/cli webhooks set https://yourapp.example/hostr-webhook --write-env .env.local
npx @hostr/cli tail --followInstalled globally (or via the repo's own scripts), the command is hostr.
Every command takes --json: exactly one JSON document on stdout (NDJSON
for tail --follow), errors as JSON on stderr, exit 1 on failure — built
to be driven by coding agents.
Full integration guide: GET /llms-full.txt on your hostr API host, or
npx @hostr/cli init to embed it into your repo as docs/hostr.md.
Commands: login · whoami · usage · init · keys create|list|revoke
· webhooks get|set|delete|test · assets list|get|token ·
upload <file> [--wait] · tail [--follow]
