@hostr/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +26 -0
  2. package/dist/cli.js +5094 -0
  3. package/package.json +17 -0
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @hostr/cli
2
+
3
+ CLI for [hostr](https://github.com/growbase-org/hostr) — self-hosted video
4
+ infrastructure: resumable upload → transcode → HLS delivery with signed
5
+ playback URLs.
6
+
7
+ ```bash
8
+ npx @hostr/cli login # paste an API key from your hostr dashboard
9
+ npx @hostr/cli init # write the integration guide + env template into your repo
10
+ npx @hostr/cli upload demo.mp4 --wait --json
11
+ npx @hostr/cli webhooks set https://yourapp.example/hostr-webhook
12
+ npx @hostr/cli tail --follow
13
+ ```
14
+
15
+ Installed globally (or via the repo's own scripts), the command is `hostr`.
16
+
17
+ Every command takes `--json`: exactly one JSON document on stdout (NDJSON
18
+ for `tail --follow`), errors as JSON on stderr, exit 1 on failure — built
19
+ to be driven by coding agents.
20
+
21
+ Full integration guide: `GET /llms-full.txt` on your hostr API host, or
22
+ `npx @hostr/cli init` to embed it into your repo as `docs/hostr.md`.
23
+
24
+ Commands: `login` · `whoami` · `usage` · `init` · `keys create|list|revoke`
25
+ · `webhooks get|set|delete|test` · `assets list|get|token` ·
26
+ `upload <file> [--wait]` · `tail [--follow]`