@tillstack/cli 0.2.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.
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # `tilldev` — the TillDev CLI
2
+
3
+ Terminal parity with the dashboard: do most day-to-day work — across **TillPulse**
4
+ (observability) and **TillAuth** (auth) — without leaving the shell. Anything the
5
+ CLI does, the dashboard does too, and vice-versa.
6
+
7
+ ```
8
+ npm i -g @tillstack/cli # or: pnpm --filter @tillstack/cli build && npm link
9
+ tilldev login
10
+ tilldev pulse projects
11
+ ```
12
+
13
+ ## Auth
14
+
15
+ The CLI stores its token at `~/.tilldev/config.json` (mode `0600`). A plain
16
+ `login` saves a ~1h access token (it re-prompts on expiry). For CI, mint a
17
+ long-lived API key and export it:
18
+
19
+ ```
20
+ tilldev keys create ci --scopes read,write
21
+ export TILLDEV_TOKEN=tp_… # picked up automatically
22
+ ```
23
+
24
+ ## Commands
25
+
26
+ ```
27
+ Account
28
+ login | logout | whoami
29
+ config get [key] | config set <api-url|org|project> <value>
30
+
31
+ TillPulse (tilldev pulse …)
32
+ projects | projects create <name> --platform <ios|android|react-native|flutter|web>
33
+ project <id> | dsn rotate <id>
34
+ issues [--project <id>] [--limit <n>] | issue <id>
35
+ metrics [--project <id>] | alerts
36
+ releases create <projectId> <version> [--build --env --commit]
37
+ sourcemaps|proguard|dsym upload <projectId> --release <v> --file <path>
38
+ ask "<question>" # natural-language query over your telemetry
39
+
40
+ TillAuth (tilldev auth …)
41
+ apps | apps create <name> | app <appId>
42
+
43
+ Workspace
44
+ team | keys | keys create <name> [--scopes read,write,admin]
45
+ ```
46
+
47
+ ## Global flags
48
+
49
+ | Flag | Env | Meaning |
50
+ |---|---|---|
51
+ | `--api-url <url>` | `TILLDEV_API_URL` | API base (default `https://tilldev.dev`) |
52
+ | `--token <t>` | `TILLDEV_TOKEN` | Auth token / API key |
53
+ | `--json` | | Raw JSON instead of tables (scriptable) |
54
+ | `--help`, `-h` | | Usage |
55
+
56
+ Colors auto-disable when piped or when `NO_COLOR` / `TILLDEV_NO_COLOR` is set, so
57
+ `tilldev pulse issues --json | jq …` stays clean.