@temps-sdk/cli 0.1.38 → 0.2.0-beta.2
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 +14 -0
- package/dist/index.js +63877 -40097
- package/dist/skills/temps/SKILL.md +18 -9
- package/dist/skills/temps/evals/evals.json +23 -6
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/howtos/ci-automation.md +2 -3
- package/dist/skills/temps/howtos/curated-services.md +69 -0
- package/dist/skills/temps/howtos/deploy-application.md +8 -1
- package/dist/skills/temps/howtos/edge-rules.md +135 -0
- package/dist/skills/temps/howtos/managed-services.md +4 -4
- package/dist/skills/temps/howtos/projects-and-monorepos.md +2 -1
- package/dist/skills/temps/references/cli-runtime.md +10 -18
- package/dist/skills/temps/references/commands/INDEX.md +11 -0
- package/dist/skills/temps/references/commands/access.md +4 -0
- package/dist/skills/temps/references/commands/agents.md +731 -0
- package/dist/skills/temps/references/commands/ai.md +2638 -9
- package/dist/skills/temps/references/commands/alarms.md +129 -0
- package/dist/skills/temps/references/commands/analytics.md +1199 -2
- package/dist/skills/temps/references/commands/apikeys.md +50 -1
- package/dist/skills/temps/references/commands/audit.md +1 -0
- package/dist/skills/temps/references/commands/backups.md +312 -0
- package/dist/skills/temps/references/commands/blob.md +169 -0
- package/dist/skills/temps/references/commands/cloud.md +73 -0
- package/dist/skills/temps/references/commands/cluster.md +223 -0
- package/dist/skills/temps/references/commands/configure.md +7 -0
- package/dist/skills/temps/references/commands/containers.md +45 -0
- package/dist/skills/temps/references/commands/context.md +6 -0
- package/dist/skills/temps/references/commands/custom-domains.md +32 -0
- package/dist/skills/temps/references/commands/data.md +11 -13
- package/dist/skills/temps/references/commands/deploy-image.md +3 -1
- package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
- package/dist/skills/temps/references/commands/deploy.md +2 -0
- package/dist/skills/temps/references/commands/deployments.md +560 -0
- package/dist/skills/temps/references/commands/dns-provider.md +63 -0
- package/dist/skills/temps/references/commands/domains.md +105 -0
- package/dist/skills/temps/references/commands/drop.md +2 -0
- package/dist/skills/temps/references/commands/edge-rules.md +218 -0
- package/dist/skills/temps/references/commands/email-domains.md +1 -0
- package/dist/skills/temps/references/commands/email-providers.md +64 -1
- package/dist/skills/temps/references/commands/emails.md +91 -0
- package/dist/skills/temps/references/commands/env-pull.md +2 -0
- package/dist/skills/temps/references/commands/env-push.md +2 -0
- package/dist/skills/temps/references/commands/environments.md +695 -2
- package/dist/skills/temps/references/commands/errors.md +1134 -61
- package/dist/skills/temps/references/commands/facets.md +6 -0
- package/dist/skills/temps/references/commands/flags.md +179 -0
- package/dist/skills/temps/references/commands/funnels.md +22 -2
- package/dist/skills/temps/references/commands/incidents.md +22 -0
- package/dist/skills/temps/references/commands/init.md +2 -0
- package/dist/skills/temps/references/commands/instances.md +6 -0
- package/dist/skills/temps/references/commands/instantiations.md +4 -0
- package/dist/skills/temps/references/commands/ip-access.md +96 -1
- package/dist/skills/temps/references/commands/kv.md +184 -0
- package/dist/skills/temps/references/commands/link.md +2 -0
- package/dist/skills/temps/references/commands/load-balancer.md +2 -0
- package/dist/skills/temps/references/commands/login.md +9 -1
- package/dist/skills/temps/references/commands/logs.md +405 -10
- package/dist/skills/temps/references/commands/mcp-servers.md +4 -0
- package/dist/skills/temps/references/commands/mcp.md +8 -1
- package/dist/skills/temps/references/commands/migrate.md +26 -0
- package/dist/skills/temps/references/commands/monitors.md +456 -0
- package/dist/skills/temps/references/commands/network-policy.md +147 -0
- package/dist/skills/temps/references/commands/nodes.md +209 -2
- package/dist/skills/temps/references/commands/notifications.md +173 -2
- package/dist/skills/temps/references/commands/open.md +2 -0
- package/dist/skills/temps/references/commands/otel-forward.md +16 -0
- package/dist/skills/temps/references/commands/otel.md +436 -0
- package/dist/skills/temps/references/commands/platform.md +57 -0
- package/dist/skills/temps/references/commands/plugin.md +106 -1
- package/dist/skills/temps/references/commands/presets.md +2 -0
- package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
- package/dist/skills/temps/references/commands/project-groups.md +72 -4
- package/dist/skills/temps/references/commands/projects.md +509 -4
- package/dist/skills/temps/references/commands/providers.md +533 -1
- package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
- package/dist/skills/temps/references/commands/revenue.md +223 -0
- package/dist/skills/temps/references/commands/rollback.md +2 -0
- package/dist/skills/temps/references/commands/sandbox.md +790 -10
- package/dist/skills/temps/references/commands/secrets.md +19 -6
- package/dist/skills/temps/references/commands/server.md +107 -0
- package/dist/skills/temps/references/commands/services.md +836 -5
- package/dist/skills/temps/references/commands/session-replay.md +8 -0
- package/dist/skills/temps/references/commands/settings.md +346 -0
- package/dist/skills/temps/references/commands/shield.md +354 -0
- package/dist/skills/temps/references/commands/skills.md +6 -0
- package/dist/skills/temps/references/commands/start.md +1 -0
- package/dist/skills/temps/references/commands/status-pages.md +376 -9
- package/dist/skills/temps/references/commands/status.md +2 -0
- package/dist/skills/temps/references/commands/surveys.md +165 -0
- package/dist/skills/temps/references/commands/teams.md +28 -0
- package/dist/skills/temps/references/commands/templates.md +22 -2
- package/dist/skills/temps/references/commands/tokens.md +106 -0
- package/dist/skills/temps/references/commands/traces.md +207 -0
- package/dist/skills/temps/references/commands/traefik-discovery.md +10 -0
- package/dist/skills/temps/references/commands/tunnels.md +141 -0
- package/dist/skills/temps/references/commands/up.md +2 -0
- package/dist/skills/temps/references/commands/users.md +127 -0
- package/dist/skills/temps/references/commands/vault.md +662 -0
- package/dist/skills/temps/references/commands/webhooks.md +10 -0
- package/dist/skills/temps/references/commands/workflow.md +2 -0
- package/dist/skills/temps/references/commands/workflows.md +563 -0
- package/dist/skills/temps/references/observability/analytics.md +2 -2
- package/dist/skills/temps/references/workflows/platform-operations.md +46 -36
- package/dist/skills/temps/scripts/generate_command_references.py +5 -3
- package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
- package/dist/skills/temps/scripts/test_validate_skill.py +25 -66
- package/dist/skills/temps/scripts/validate_skill.py +29 -43
- package/package.json +9 -3
- package/dist/skills/temps/scripts/__pycache__/generate_command_references.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/test_generate_command_references.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/test_validate_skill.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/validate_skill.cpython-314.pyc +0 -0
|
@@ -4,6 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
6
|
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- [`nodes capability`](#nodes-capability)
|
|
10
|
+
- [`nodes mesh`](#nodes-mesh)
|
|
11
|
+
- [`nodes pair`](#nodes-pair)
|
|
12
|
+
- [`nodes ssh`](#nodes-ssh)
|
|
13
|
+
- [`nodes resources`](#nodes-resources)
|
|
14
|
+
- [`nodes state-status`](#nodes-state-status)
|
|
15
|
+
- [`nodes show`](#nodes-show)
|
|
16
|
+
- [`nodes containers`](#nodes-containers)
|
|
17
|
+
- [`nodes drain`](#nodes-drain)
|
|
18
|
+
- [`nodes undrain`](#nodes-undrain)
|
|
19
|
+
- [`nodes remove`](#nodes-remove-alias-rm)
|
|
20
|
+
- [`nodes build-limits`](#nodes-build-limits)
|
|
21
|
+
- [`nodes public-ingress`](#nodes-public-ingress)
|
|
22
|
+
- [`nodes workload-mode`](#nodes-workload-mode)
|
|
23
|
+
|
|
7
24
|
## `nodes`
|
|
8
25
|
|
|
9
26
|
Worker nodes and workload placement
|
|
@@ -14,6 +31,16 @@ Worker nodes and workload placement
|
|
|
14
31
|
- `mesh` - WireGuard mesh: lets nodes that only share the internet with the control plane join it, encrypted. Shows whether it is on and how each node is connected
|
|
15
32
|
- `pair` - Pair nodes this control plane dials: for a control plane nodes cannot reach (a laptop, a server behind NAT). Lists recent pairings and their progress
|
|
16
33
|
- `ssh` - Add servers over SSH: the control plane logs in, installs temps if needed, pairs the server and starts its agent. Lists recent ones and their progress
|
|
34
|
+
- `resources` - What the scheduler keeps for the OS and Temps on a node, and whether a placement that does not fit the remaining capacity is refused
|
|
35
|
+
- `state-status` - Show the workload plane's desired-state stream: whether it runs here, its lag and counters
|
|
36
|
+
- `show` - Show one node: status, addresses, labels and capacity
|
|
37
|
+
- `containers` - List the containers running on a node
|
|
38
|
+
- `drain` - Stop scheduling on a node and move its replicas elsewhere (redeploys the affected environments)
|
|
39
|
+
- `undrain` - Let a drained node accept new deployments again
|
|
40
|
+
- `remove` (`rm`) - Remove a drained node from the cluster and from every placement that targets it
|
|
41
|
+
- `build-limits` - Show a worker node's build limits, or change them with flags
|
|
42
|
+
- `public-ingress` - Show or change whether a node serves public HTTP(S) traffic itself, and on which ports and addresses
|
|
43
|
+
- `workload-mode` - Show an environment's workload mode, or set it (legacy, shadow, enforce); operator-only
|
|
17
44
|
|
|
18
45
|
### `nodes capability`
|
|
19
46
|
|
|
@@ -37,13 +64,14 @@ WireGuard mesh: lets nodes that only share the internet with the control plane j
|
|
|
37
64
|
|
|
38
65
|
**Subcommands:**
|
|
39
66
|
|
|
40
|
-
- `enable` - Turn the WireGuard mesh on. The control plane and every agent move onto it within a minute; it
|
|
67
|
+
- `enable` - Turn the WireGuard mesh on. The control plane and every agent move onto it within a minute; it can be turned off again only while no node is on it
|
|
68
|
+
- `disable` - Turn the WireGuard mesh off. Refused, with the reason, while a node is on it, a pairing is in progress or the cluster network runs over it. The control plane stops tending its end; the interface itself goes away when `temps serve` restarts
|
|
41
69
|
- `hub` - Mesh hub: a member that relays between members that cannot reach each other (two nodes behind NAT). Shows the hub and every pair it carries
|
|
42
70
|
- `doctor` - Check the mesh from the control plane: its end, every node link and every pairing in progress, each failure with what fixes it. Exits 1 when a check fails. For a node's own end, run `temps doctor mesh` on it
|
|
43
71
|
|
|
44
72
|
#### `nodes mesh enable`
|
|
45
73
|
|
|
46
|
-
Turn the WireGuard mesh on. The control plane and every agent move onto it within a minute; it
|
|
74
|
+
Turn the WireGuard mesh on. The control plane and every agent move onto it within a minute; it can be turned off again only while no node is on it
|
|
47
75
|
|
|
48
76
|
**Options:**
|
|
49
77
|
|
|
@@ -55,6 +83,17 @@ Turn the WireGuard mesh on. The control plane and every agent move onto it withi
|
|
|
55
83
|
| `-y, --yes` | Skip the confirmation prompt (for automation) | - | No |
|
|
56
84
|
| `--json` | Output in JSON format | - | No |
|
|
57
85
|
|
|
86
|
+
#### `nodes mesh disable`
|
|
87
|
+
|
|
88
|
+
Turn the WireGuard mesh off. Refused, with the reason, while a node is on it, a pairing is in progress or the cluster network runs over it. The control plane stops tending its end; the interface itself goes away when `temps serve` restarts
|
|
89
|
+
|
|
90
|
+
**Options:**
|
|
91
|
+
|
|
92
|
+
| Flag | Description | Default | Required |
|
|
93
|
+
|------|-------------|---------|----------|
|
|
94
|
+
| `-y, --yes` | Skip the confirmation prompt (for automation) | - | No |
|
|
95
|
+
| `--json` | Output in JSON format | - | No |
|
|
96
|
+
|
|
58
97
|
#### `nodes mesh hub`
|
|
59
98
|
|
|
60
99
|
Mesh hub: a member that relays between members that cannot reach each other (two nodes behind NAT). Shows the hub and every pair it carries
|
|
@@ -74,6 +113,8 @@ Mesh hub: a member that relays between members that cannot reach each other (two
|
|
|
74
113
|
|
|
75
114
|
Make <member> the hub: control-plane, or a node name. Pairs that never connect move onto it within a few minutes. The hub can read the traffic it relays: pick your own machine
|
|
76
115
|
|
|
116
|
+
**Usage:** `nodes mesh hub set <member> [options]`
|
|
117
|
+
|
|
77
118
|
**Options:**
|
|
78
119
|
|
|
79
120
|
| Flag | Description | Default | Required |
|
|
@@ -133,6 +174,8 @@ Start pairing the node at --address. Prints the one command to run on it; the co
|
|
|
133
174
|
|
|
134
175
|
Cancel a pending pairing: its command stops working and its address is released
|
|
135
176
|
|
|
177
|
+
**Usage:** `nodes pair cancel <id> [options]`
|
|
178
|
+
|
|
136
179
|
**Options:**
|
|
137
180
|
|
|
138
181
|
| Flag | Description | Default | Required |
|
|
@@ -148,6 +191,8 @@ Add servers over SSH: the control plane logs in, installs temps if needed, pairs
|
|
|
148
191
|
|
|
149
192
|
| Flag | Description | Default | Required |
|
|
150
193
|
|------|-------------|---------|----------|
|
|
194
|
+
| `--page <n>` | Page to show (default 1) | - | No |
|
|
195
|
+
| `--per-page <n>` | Servers per page (default 20, max 100) | - | No |
|
|
151
196
|
| `--json` | Output in JSON format | - | No |
|
|
152
197
|
|
|
153
198
|
**Subcommands:**
|
|
@@ -193,8 +238,170 @@ Read the SSH host key of the server at --host, to verify it before `nodes ssh ad
|
|
|
193
238
|
|
|
194
239
|
Show one enrollment: its progress and the log with the server output
|
|
195
240
|
|
|
241
|
+
**Usage:** `nodes ssh show <id> [options]`
|
|
242
|
+
|
|
243
|
+
**Options:**
|
|
244
|
+
|
|
245
|
+
| Flag | Description | Default | Required |
|
|
246
|
+
|------|-------------|---------|----------|
|
|
247
|
+
| `--json` | Output in JSON format | - | No |
|
|
248
|
+
|
|
249
|
+
### `nodes resources`
|
|
250
|
+
|
|
251
|
+
What the scheduler keeps for the OS and Temps on a node, and whether a placement that does not fit the remaining capacity is refused
|
|
252
|
+
|
|
253
|
+
**Subcommands:**
|
|
254
|
+
|
|
255
|
+
- `show` - Show a node's reservation and resource policy (node id; 0 or "control-plane" for the control plane)
|
|
256
|
+
- `set` - Change a node's resource policy or reservation. Giving only one of --reserve-cpu and --reserve-memory keeps the node's current value for the other
|
|
257
|
+
|
|
258
|
+
#### `nodes resources show`
|
|
259
|
+
|
|
260
|
+
Show a node's reservation and resource policy (node id; 0 or "control-plane" for the control plane)
|
|
261
|
+
|
|
262
|
+
**Usage:** `nodes resources show <node> [options]`
|
|
263
|
+
|
|
264
|
+
**Options:**
|
|
265
|
+
|
|
266
|
+
| Flag | Description | Default | Required |
|
|
267
|
+
|------|-------------|---------|----------|
|
|
268
|
+
| `--json` | Output in JSON format | - | No |
|
|
269
|
+
|
|
270
|
+
#### `nodes resources set`
|
|
271
|
+
|
|
272
|
+
Change a node's resource policy or reservation. Giving only one of --reserve-cpu and --reserve-memory keeps the node's current value for the other
|
|
273
|
+
|
|
274
|
+
**Usage:** `nodes resources set <node> [options]`
|
|
275
|
+
|
|
276
|
+
**Options:**
|
|
277
|
+
|
|
278
|
+
| Flag | Description | Default | Required |
|
|
279
|
+
|------|-------------|---------|----------|
|
|
280
|
+
| `--policy <policy>` | best_effort (reservations not checked) or enforced (placements that do not fit are refused) | - | No |
|
|
281
|
+
| `--reserve-cpu <millis>` | CPU kept for the OS and Temps, in millicores (1000 = one core) | - | No |
|
|
282
|
+
| `--reserve-memory <mb>` | Memory kept for the OS and Temps, in MB | - | No |
|
|
283
|
+
| `--reset-reserved` | Go back to the default reservation for the node's role | - | No |
|
|
284
|
+
| `--json` | Output in JSON format | - | No |
|
|
285
|
+
|
|
286
|
+
### `nodes state-status`
|
|
287
|
+
|
|
288
|
+
Show the workload plane's desired-state stream: whether it runs here, its lag and counters
|
|
289
|
+
|
|
290
|
+
**Options:**
|
|
291
|
+
|
|
292
|
+
| Flag | Description | Default | Required |
|
|
293
|
+
|------|-------------|---------|----------|
|
|
294
|
+
| `--json` | Output in JSON format | - | No |
|
|
295
|
+
|
|
296
|
+
### `nodes show`
|
|
297
|
+
|
|
298
|
+
Show one node: status, addresses, labels and capacity
|
|
299
|
+
|
|
300
|
+
**Usage:** `nodes show <node-id> [options]`
|
|
301
|
+
|
|
302
|
+
**Options:**
|
|
303
|
+
|
|
304
|
+
| Flag | Description | Default | Required |
|
|
305
|
+
|------|-------------|---------|----------|
|
|
306
|
+
| `--json` | Output in JSON format | - | No |
|
|
307
|
+
|
|
308
|
+
### `nodes containers`
|
|
309
|
+
|
|
310
|
+
List the containers running on a node
|
|
311
|
+
|
|
312
|
+
**Usage:** `nodes containers <node-id> [options]`
|
|
313
|
+
|
|
314
|
+
**Options:**
|
|
315
|
+
|
|
316
|
+
| Flag | Description | Default | Required |
|
|
317
|
+
|------|-------------|---------|----------|
|
|
318
|
+
| `--json` | Output in JSON format | - | No |
|
|
319
|
+
|
|
320
|
+
### `nodes drain`
|
|
321
|
+
|
|
322
|
+
Stop scheduling on a node and move its replicas elsewhere (redeploys the affected environments)
|
|
323
|
+
|
|
324
|
+
**Usage:** `nodes drain <node-id> [options]`
|
|
325
|
+
|
|
326
|
+
**Options:**
|
|
327
|
+
|
|
328
|
+
| Flag | Description | Default | Required |
|
|
329
|
+
|------|-------------|---------|----------|
|
|
330
|
+
| `--status` | Only show drain progress | - | No |
|
|
331
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
332
|
+
| `--json` | Output in JSON format | - | No |
|
|
333
|
+
|
|
334
|
+
### `nodes undrain`
|
|
335
|
+
|
|
336
|
+
Let a drained node accept new deployments again
|
|
337
|
+
|
|
338
|
+
**Usage:** `nodes undrain <node-id> [options]`
|
|
339
|
+
|
|
340
|
+
**Options:**
|
|
341
|
+
|
|
342
|
+
| Flag | Description | Default | Required |
|
|
343
|
+
|------|-------------|---------|----------|
|
|
344
|
+
| `--json` | Output in JSON format | - | No |
|
|
345
|
+
|
|
346
|
+
### `nodes remove` (alias: `rm`)
|
|
347
|
+
|
|
348
|
+
Remove a drained node from the cluster and from every placement that targets it
|
|
349
|
+
|
|
350
|
+
**Usage:** `nodes remove <node-id> [options]`
|
|
351
|
+
|
|
352
|
+
**Options:**
|
|
353
|
+
|
|
354
|
+
| Flag | Description | Default | Required |
|
|
355
|
+
|------|-------------|---------|----------|
|
|
356
|
+
| `--force` | Remove even if the node is not drained (its containers are not moved first) | - | No |
|
|
357
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
358
|
+
| `--json` | Output in JSON format | - | No |
|
|
359
|
+
|
|
360
|
+
### `nodes build-limits`
|
|
361
|
+
|
|
362
|
+
Show a worker node's build limits, or change them with flags
|
|
363
|
+
|
|
364
|
+
**Usage:** `nodes build-limits <node-id> [options]`
|
|
365
|
+
|
|
366
|
+
**Options:**
|
|
367
|
+
|
|
368
|
+
| Flag | Description | Default | Required |
|
|
369
|
+
|------|-------------|---------|----------|
|
|
370
|
+
| `--timeout <seconds>` | Longest a build may run | - | No |
|
|
371
|
+
| `--concurrency <n>` | Builds that may run at once | - | No |
|
|
372
|
+
| `--queue-wait <seconds>` | Longest a build may wait for a slot | - | No |
|
|
373
|
+
| `--json` | Output in JSON format | - | No |
|
|
374
|
+
|
|
375
|
+
### `nodes public-ingress`
|
|
376
|
+
|
|
377
|
+
Show or change whether a node serves public HTTP(S) traffic itself, and on which ports and addresses
|
|
378
|
+
|
|
379
|
+
**Usage:** `nodes public-ingress <node-id> [options]`
|
|
380
|
+
|
|
381
|
+
**Options:**
|
|
382
|
+
|
|
383
|
+
| Flag | Description | Default | Required |
|
|
384
|
+
|------|-------------|---------|----------|
|
|
385
|
+
| `--enable` | Serve public traffic on this node | - | No |
|
|
386
|
+
| `--disable` | Stop serving public traffic on this node | - | No |
|
|
387
|
+
| `--http-port <port>` | HTTP port to listen on | - | No |
|
|
388
|
+
| `--https-port <port>` | HTTPS port to listen on | - | No |
|
|
389
|
+
| `--listen-address <addr>` | Local address to bind ("" for automatic) | - | No |
|
|
390
|
+
| `--public-address <addr>` | Address DNS points at ("" for the listen address) | - | No |
|
|
391
|
+
| `--toggle-only` | Only flip enabled with --enable/--disable, without saving ports or addresses | - | No |
|
|
392
|
+
| `--check` | Check from the control plane that the node answers on its public address | - | No |
|
|
393
|
+
| `-y, --yes` | Do not ask before disabling | - | No |
|
|
394
|
+
| `--json` | Output in JSON format | - | No |
|
|
395
|
+
|
|
396
|
+
### `nodes workload-mode`
|
|
397
|
+
|
|
398
|
+
Show an environment's workload mode, or set it (legacy, shadow, enforce); operator-only
|
|
399
|
+
|
|
400
|
+
**Usage:** `nodes workload-mode <environment-id> [mode] [options]`
|
|
401
|
+
|
|
196
402
|
**Options:**
|
|
197
403
|
|
|
198
404
|
| Flag | Description | Default | Required |
|
|
199
405
|
|------|-------------|---------|----------|
|
|
406
|
+
| `-y, --yes` | Do not ask before changing it | - | No |
|
|
200
407
|
| `--json` | Output in JSON format | - | No |
|
|
@@ -4,9 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
6
|
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- [`notifications list`](#notifications-list-alias-ls)
|
|
10
|
+
- [`notifications add`](#notifications-add)
|
|
11
|
+
- [`notifications update`](#notifications-update)
|
|
12
|
+
- [`notifications enable`](#notifications-enable)
|
|
13
|
+
- [`notifications disable`](#notifications-disable)
|
|
14
|
+
- [`notifications show`](#notifications-show)
|
|
15
|
+
- [`notifications remove`](#notifications-remove-alias-rm)
|
|
16
|
+
- [`notifications test`](#notifications-test)
|
|
17
|
+
- [`notifications routes`](#notifications-routes)
|
|
18
|
+
- [`notifications create-cloudflare-provider`](#notifications-create-cloudflare-provider)
|
|
19
|
+
- [`notifications update-cloudflare-provider`](#notifications-update-cloudflare-provider)
|
|
20
|
+
- [`notifications create-email-provider`](#notifications-create-email-provider)
|
|
21
|
+
- [`notifications create-webhook-provider`](#notifications-create-webhook-provider)
|
|
22
|
+
- [`notifications update-webhook-provider`](#notifications-update-webhook-provider)
|
|
23
|
+
- [`notifications reveal-provider-config`](#notifications-reveal-provider-config)
|
|
24
|
+
|
|
7
25
|
## `notifications` (alias: `notify`)
|
|
8
26
|
|
|
9
|
-
Manage notification providers (Slack, Email, Webhook, etc.)
|
|
27
|
+
Manage notification providers (Slack, Email, Webhook, Telegram, etc.)
|
|
10
28
|
|
|
11
29
|
**Subcommands:**
|
|
12
30
|
|
|
@@ -19,6 +37,12 @@ Manage notification providers (Slack, Email, Webhook, etc.)
|
|
|
19
37
|
- `remove` (`rm`) - Remove a notification provider
|
|
20
38
|
- `test` - Send a test notification
|
|
21
39
|
- `routes` - Manage severity-based notification routes (which providers receive which severities)
|
|
40
|
+
- `create-cloudflare-provider` - Create a new Cloudflare Email Sending notification provider
|
|
41
|
+
- `update-cloudflare-provider` - Update a Cloudflare Email Sending notification provider
|
|
42
|
+
- `create-email-provider` - Create a new Email notification provider
|
|
43
|
+
- `create-webhook-provider` - Create a new Webhook notification provider
|
|
44
|
+
- `update-webhook-provider` - Update a Webhook notification provider
|
|
45
|
+
- `reveal-provider-config` - Reveal notification provider config
|
|
22
46
|
|
|
23
47
|
### `notifications list` (alias: `ls`)
|
|
24
48
|
|
|
@@ -29,6 +53,8 @@ List configured notification providers
|
|
|
29
53
|
| Flag | Description | Default | Required |
|
|
30
54
|
|------|-------------|---------|----------|
|
|
31
55
|
| `--json` | Output in JSON format | - | No |
|
|
56
|
+
| `--sort-by <value>` | Sort column (default created_at) | - | No |
|
|
57
|
+
| `--sort-order <value>` | Sort direction (one of: asc, desc) | - | No |
|
|
32
58
|
|
|
33
59
|
### `notifications add`
|
|
34
60
|
|
|
@@ -38,7 +64,7 @@ Add a new notification provider
|
|
|
38
64
|
|
|
39
65
|
| Flag | Description | Default | Required |
|
|
40
66
|
|------|-------------|---------|----------|
|
|
41
|
-
| `-t, --type <type>` | Provider type (slack, email, webhook) | - | No |
|
|
67
|
+
| `-t, --type <type>` | Provider type (slack, email, webhook, telegram) | - | No |
|
|
42
68
|
| `-n, --name <name>` | Provider name | - | No |
|
|
43
69
|
| `-w, --webhook-url <url>` | Webhook URL (for slack) | - | No |
|
|
44
70
|
| `-c, --channel <channel>` | Channel name (for slack, optional) | - | No |
|
|
@@ -51,7 +77,18 @@ Add a new notification provider
|
|
|
51
77
|
| `--to-addresses <addresses>` | Comma-separated recipient addresses (for email) | - | No |
|
|
52
78
|
| `--url <url>` | Webhook URL (for webhook) | - | No |
|
|
53
79
|
| `--method <method>` | HTTP method: POST, PUT, PATCH (for webhook, default: POST) | - | No |
|
|
80
|
+
| `--header <header>` | Request header "Name: value" (for webhook, repeatable) | - | No |
|
|
81
|
+
| `--bot-token <token>` | Bot token from @BotFather (for telegram) | - | No |
|
|
82
|
+
| `--chat-id <id>` | Chat ID, e.g. -1001234567890 or @channelname (for telegram) | - | No |
|
|
83
|
+
| `--topic-id <id>` | Forum topic ID (for telegram, optional) | - | No |
|
|
54
84
|
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
85
|
+
| `--webhook-url-file <path>` | Read the Slack webhook URL from a file (- reads stdin) instead of --webhook-url | - | No |
|
|
86
|
+
| `--webhook-url-stdin` | Read the Slack webhook URL from stdin instead of --webhook-url | - | No |
|
|
87
|
+
| `--password-file <path>` | Read the SMTP password from a file (- reads stdin) instead of --password | - | No |
|
|
88
|
+
| `--password-stdin` | Read the SMTP password from stdin instead of --password | - | No |
|
|
89
|
+
| `--bot-token-file <path>` | Read the Telegram bot token from a file (- reads stdin) instead of --bot-token | - | No |
|
|
90
|
+
| `--bot-token-stdin` | Read the Telegram bot token from stdin instead of --bot-token | - | No |
|
|
91
|
+
| `--trim-trailing-newline` | Drop exactly one trailing newline (\n or \r\n) from a value read from a file or stdin (kept byte-for-byte by default) | - | No |
|
|
55
92
|
|
|
56
93
|
### `notifications update`
|
|
57
94
|
|
|
@@ -75,8 +112,19 @@ Update a notification provider
|
|
|
75
112
|
| `--to-addresses <addresses>` | Comma-separated recipient addresses (for email) | - | No |
|
|
76
113
|
| `--url <url>` | Webhook URL (for webhook) | - | No |
|
|
77
114
|
| `--method <method>` | HTTP method: POST, PUT, PATCH (for webhook) | - | No |
|
|
115
|
+
| `--header <header>` | Request header "Name: value" (for webhook, repeatable; replaces the stored headers) | - | No |
|
|
116
|
+
| `--bot-token <token>` | Bot token from @BotFather (for telegram) | - | No |
|
|
117
|
+
| `--chat-id <id>` | Chat ID, e.g. -1001234567890 or @channelname (for telegram) | - | No |
|
|
118
|
+
| `--topic-id <id>` | Forum topic ID (for telegram; empty string clears it) | - | No |
|
|
78
119
|
| `--json` | Output in JSON format | - | No |
|
|
79
120
|
| `-y, --yes` | Skip confirmation prompts | - | No |
|
|
121
|
+
| `--webhook-url-file <path>` | Read the Slack webhook URL from a file (- reads stdin) instead of --webhook-url | - | No |
|
|
122
|
+
| `--webhook-url-stdin` | Read the Slack webhook URL from stdin instead of --webhook-url | - | No |
|
|
123
|
+
| `--password-file <path>` | Read the SMTP password from a file (- reads stdin) instead of --password | - | No |
|
|
124
|
+
| `--password-stdin` | Read the SMTP password from stdin instead of --password | - | No |
|
|
125
|
+
| `--bot-token-file <path>` | Read the Telegram bot token from a file (- reads stdin) instead of --bot-token | - | No |
|
|
126
|
+
| `--bot-token-stdin` | Read the Telegram bot token from stdin instead of --bot-token | - | No |
|
|
127
|
+
| `--trim-trailing-newline` | Drop exactly one trailing newline (\n or \r\n) from a value read from a file or stdin (kept byte-for-byte by default) | - | No |
|
|
80
128
|
|
|
81
129
|
### `notifications enable`
|
|
82
130
|
|
|
@@ -144,6 +192,8 @@ Manage severity-based notification routes (which providers receive which severit
|
|
|
144
192
|
- `create` - Create a notification route
|
|
145
193
|
- `update` - Update a notification route
|
|
146
194
|
- `remove` (`rm`) - Remove a notification route
|
|
195
|
+
- `get-delivery-coverage` - Check whether a notification of the given severity would be delivered
|
|
196
|
+
- `test` - Send a test notification through a route to each of its providers
|
|
147
197
|
|
|
148
198
|
#### `notifications routes list` (alias: `ls`)
|
|
149
199
|
|
|
@@ -154,6 +204,8 @@ List notification routes
|
|
|
154
204
|
| Flag | Description | Default | Required |
|
|
155
205
|
|------|-------------|---------|----------|
|
|
156
206
|
| `--json` | Output in JSON format | - | No |
|
|
207
|
+
| `--sort-by <value>` | Sort column (default created_at) | - | No |
|
|
208
|
+
| `--sort-order <value>` | Sort direction (one of: asc, desc) | - | No |
|
|
157
209
|
|
|
158
210
|
#### `notifications routes show`
|
|
159
211
|
|
|
@@ -209,3 +261,122 @@ Remove a notification route
|
|
|
209
261
|
| `--id <id>` | Route ID | - | Yes |
|
|
210
262
|
| `-f, --force` | Skip confirmation | - | No |
|
|
211
263
|
| `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
|
|
264
|
+
|
|
265
|
+
#### `notifications routes get-delivery-coverage`
|
|
266
|
+
|
|
267
|
+
Check whether a notification of the given severity would be delivered
|
|
268
|
+
|
|
269
|
+
**Options:**
|
|
270
|
+
|
|
271
|
+
| Flag | Description | Default | Required |
|
|
272
|
+
|------|-------------|---------|----------|
|
|
273
|
+
| `--severity <value>` | Severity of the notification to check: debug, info, warning, error, critical or emergency [required] | - | No |
|
|
274
|
+
| `--json` | Output in JSON format | - | No |
|
|
275
|
+
|
|
276
|
+
#### `notifications routes test`
|
|
277
|
+
|
|
278
|
+
Send a test notification through a route to each of its providers
|
|
279
|
+
|
|
280
|
+
**Usage:** `notifications routes test <id> [options]`
|
|
281
|
+
|
|
282
|
+
**Options:**
|
|
283
|
+
|
|
284
|
+
| Flag | Description | Default | Required |
|
|
285
|
+
|------|-------------|---------|----------|
|
|
286
|
+
| `--json` | Output in JSON format | - | No |
|
|
287
|
+
|
|
288
|
+
### `notifications create-cloudflare-provider`
|
|
289
|
+
|
|
290
|
+
Create a new Cloudflare Email Sending notification provider
|
|
291
|
+
|
|
292
|
+
**Options:**
|
|
293
|
+
|
|
294
|
+
| Flag | Description | Default | Required |
|
|
295
|
+
|------|-------------|---------|----------|
|
|
296
|
+
| `--config <json>` | Configuration for a Cloudflare Email Sending notification provider (JSON) [required] | - | No |
|
|
297
|
+
| `--enabled` | Body field enabled | - | No |
|
|
298
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
299
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
300
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
301
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
302
|
+
| `--json` | Output in JSON format | - | No |
|
|
303
|
+
|
|
304
|
+
### `notifications update-cloudflare-provider`
|
|
305
|
+
|
|
306
|
+
Update a Cloudflare Email Sending notification provider
|
|
307
|
+
|
|
308
|
+
**Usage:** `notifications update-cloudflare-provider <id> [options]`
|
|
309
|
+
|
|
310
|
+
**Options:**
|
|
311
|
+
|
|
312
|
+
| Flag | Description | Default | Required |
|
|
313
|
+
|------|-------------|---------|----------|
|
|
314
|
+
| `--config <json>` | Configuration for a Cloudflare Email Sending notification provider (JSON) [required] | - | No |
|
|
315
|
+
| `--enabled` | Body field enabled | - | No |
|
|
316
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
317
|
+
| `--name <value>` | Body field name | - | No |
|
|
318
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
319
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
320
|
+
| `--json` | Output in JSON format | - | No |
|
|
321
|
+
|
|
322
|
+
### `notifications create-email-provider`
|
|
323
|
+
|
|
324
|
+
Create a new Email notification provider
|
|
325
|
+
|
|
326
|
+
**Options:**
|
|
327
|
+
|
|
328
|
+
| Flag | Description | Default | Required |
|
|
329
|
+
|------|-------------|---------|----------|
|
|
330
|
+
| `--config <json>` | Request-side SMTP config (JSON) [required] | - | No |
|
|
331
|
+
| `--enabled` | Body field enabled | - | No |
|
|
332
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
333
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
334
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
335
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
336
|
+
| `--json` | Output in JSON format | - | No |
|
|
337
|
+
|
|
338
|
+
### `notifications create-webhook-provider`
|
|
339
|
+
|
|
340
|
+
Create a new Webhook notification provider
|
|
341
|
+
|
|
342
|
+
**Options:**
|
|
343
|
+
|
|
344
|
+
| Flag | Description | Default | Required |
|
|
345
|
+
|------|-------------|---------|----------|
|
|
346
|
+
| `--config <json>` | Configuration for a generic webhook notification provider (JSON) [required] | - | No |
|
|
347
|
+
| `--enabled` | Body field enabled | - | No |
|
|
348
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
349
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
350
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
351
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
352
|
+
| `--json` | Output in JSON format | - | No |
|
|
353
|
+
|
|
354
|
+
### `notifications update-webhook-provider`
|
|
355
|
+
|
|
356
|
+
Update a Webhook notification provider
|
|
357
|
+
|
|
358
|
+
**Usage:** `notifications update-webhook-provider <id> [options]`
|
|
359
|
+
|
|
360
|
+
**Options:**
|
|
361
|
+
|
|
362
|
+
| Flag | Description | Default | Required |
|
|
363
|
+
|------|-------------|---------|----------|
|
|
364
|
+
| `--config <json>` | Configuration for a generic webhook notification provider (JSON) [required] | - | No |
|
|
365
|
+
| `--enabled` | Body field enabled | - | No |
|
|
366
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
367
|
+
| `--name <value>` | Body field name | - | No |
|
|
368
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
369
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
370
|
+
| `--json` | Output in JSON format | - | No |
|
|
371
|
+
|
|
372
|
+
### `notifications reveal-provider-config`
|
|
373
|
+
|
|
374
|
+
Reveal notification provider config
|
|
375
|
+
|
|
376
|
+
**Usage:** `notifications reveal-provider-config <id> <field> [options]`
|
|
377
|
+
|
|
378
|
+
**Options:**
|
|
379
|
+
|
|
380
|
+
| Flag | Description | Default | Required |
|
|
381
|
+
|------|-------------|---------|----------|
|
|
382
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -57,6 +57,8 @@ Create a new OTel forwarding destination
|
|
|
57
57
|
|
|
58
58
|
Show OTel forwarding destination details
|
|
59
59
|
|
|
60
|
+
**Usage:** `otel-forward show <id> [options]`
|
|
61
|
+
|
|
60
62
|
**Options:**
|
|
61
63
|
|
|
62
64
|
| Flag | Description | Default | Required |
|
|
@@ -67,6 +69,8 @@ Show OTel forwarding destination details
|
|
|
67
69
|
|
|
68
70
|
Update an OTel forwarding destination
|
|
69
71
|
|
|
72
|
+
**Usage:** `otel-forward update <id> [options]`
|
|
73
|
+
|
|
70
74
|
**Options:**
|
|
71
75
|
|
|
72
76
|
| Flag | Description | Default | Required |
|
|
@@ -91,6 +95,8 @@ Update an OTel forwarding destination
|
|
|
91
95
|
|
|
92
96
|
Remove an OTel forwarding destination
|
|
93
97
|
|
|
98
|
+
**Usage:** `otel-forward remove <id> [options]`
|
|
99
|
+
|
|
94
100
|
**Options:**
|
|
95
101
|
|
|
96
102
|
| Flag | Description | Default | Required |
|
|
@@ -102,6 +108,8 @@ Remove an OTel forwarding destination
|
|
|
102
108
|
|
|
103
109
|
Send a test delivery to an OTel forwarding destination
|
|
104
110
|
|
|
111
|
+
**Usage:** `otel-forward test <id> [options]`
|
|
112
|
+
|
|
105
113
|
**Options:**
|
|
106
114
|
|
|
107
115
|
| Flag | Description | Default | Required |
|
|
@@ -158,6 +166,8 @@ Create a new instance-wide default forwarding destination
|
|
|
158
166
|
|
|
159
167
|
Show instance default destination details
|
|
160
168
|
|
|
169
|
+
**Usage:** `otel-forward instance-default show <id> [options]`
|
|
170
|
+
|
|
161
171
|
**Options:**
|
|
162
172
|
|
|
163
173
|
| Flag | Description | Default | Required |
|
|
@@ -168,6 +178,8 @@ Show instance default destination details
|
|
|
168
178
|
|
|
169
179
|
Update an instance default forwarding destination
|
|
170
180
|
|
|
181
|
+
**Usage:** `otel-forward instance-default update <id> [options]`
|
|
182
|
+
|
|
171
183
|
**Options:**
|
|
172
184
|
|
|
173
185
|
| Flag | Description | Default | Required |
|
|
@@ -192,6 +204,8 @@ Update an instance default forwarding destination
|
|
|
192
204
|
|
|
193
205
|
Remove an instance default forwarding destination
|
|
194
206
|
|
|
207
|
+
**Usage:** `otel-forward instance-default remove <id> [options]`
|
|
208
|
+
|
|
195
209
|
**Options:**
|
|
196
210
|
|
|
197
211
|
| Flag | Description | Default | Required |
|
|
@@ -203,6 +217,8 @@ Remove an instance default forwarding destination
|
|
|
203
217
|
|
|
204
218
|
Send a test delivery to an instance default forwarding destination
|
|
205
219
|
|
|
220
|
+
**Usage:** `otel-forward instance-default test <id> [options]`
|
|
221
|
+
|
|
206
222
|
**Options:**
|
|
207
223
|
|
|
208
224
|
| Flag | Description | Default | Required |
|