You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If `DISC_LOCAL_API_KEY` is set, the wrapper injects it automatically. If it is not set, it falls back to `DISC_API_KEY`, and otherwise uses whatever auth state the CLI resolves on its own.
32
+
---
37
33
38
-
## Auth
34
+
## Installation
39
35
40
-
Store an API key locally:
36
+
### Homebrew (recommended)
41
37
42
38
```bash
43
-
cargo run --bin disc -- auth api-key set
39
+
brew tap disctech/tap
40
+
brew install disc
44
41
```
45
42
46
-
Or pass it per-command:
43
+
Verify:
47
44
48
45
```bash
49
-
DISC_API_KEY=... cargo run --bin disc -- auth whoami
46
+
disc --version
50
47
```
51
48
52
-
Validate the configured credential:
49
+
---
50
+
51
+
## Authentication
52
+
53
+
Set your API key (stored locally):
53
54
54
55
```bash
55
-
cargo run --bin disc -- auth whoami
56
+
disc auth api-key set
56
57
```
57
58
58
-
## Signal discovery
59
-
60
-
List passive signals:
59
+
Or pass per command:
61
60
62
61
```bash
63
-
cargo run --bin disc -- signals passive list
62
+
DISC_API_KEY=... disc auth whoami
64
63
```
65
64
66
-
Get one passive signal:
65
+
Check current auth:
67
66
68
67
```bash
69
-
cargo run --bin disc -- signals passive get <passive-signal-id>
68
+
disc auth whoami
70
69
```
71
70
72
-
List active signals for a passive signal:
71
+
---
72
+
73
+
## Discover signals
74
+
75
+
### Passive signals
73
76
74
77
```bash
75
-
cargo run --bin disc -- signals active list --for-passive <passive-signal-id>
78
+
disc signals passive list
79
+
disc signals passive get <passive-signal-id>
76
80
```
77
81
78
-
Get one active signal:
82
+
### Active signals
79
83
80
84
```bash
81
-
cargo run --bin disc -- signals active get <active-signal-id>
85
+
disc signals active list --for-passive <passive-signal-id>
86
+
disc signals active get <active-signal-id>
82
87
```
83
88
84
-
## Live streaming
89
+
---
85
90
86
-
`subscribe` is the machine-oriented path:
91
+
## Stream live data
87
92
88
-
- silently maintains the websocket subscription
89
-
- forwards matched events to a destination
90
-
- defaults to `ndjson`
93
+
### Subscribe (machine-friendly)
91
94
92
-
`tail` is the human-oriented path:
95
+
Streams events to stdout (best for piping):
93
96
94
-
- pretty-prints live events to the console
95
-
- includes subscription lifecycle output by default
0 commit comments