@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.
Files changed (112) hide show
  1. package/README.md +14 -0
  2. package/dist/index.js +63877 -40097
  3. package/dist/skills/temps/SKILL.md +18 -9
  4. package/dist/skills/temps/evals/evals.json +23 -6
  5. package/dist/skills/temps/howtos/agent-handoff.md +106 -0
  6. package/dist/skills/temps/howtos/ci-automation.md +2 -3
  7. package/dist/skills/temps/howtos/curated-services.md +69 -0
  8. package/dist/skills/temps/howtos/deploy-application.md +8 -1
  9. package/dist/skills/temps/howtos/edge-rules.md +135 -0
  10. package/dist/skills/temps/howtos/managed-services.md +4 -4
  11. package/dist/skills/temps/howtos/projects-and-monorepos.md +2 -1
  12. package/dist/skills/temps/references/cli-runtime.md +10 -18
  13. package/dist/skills/temps/references/commands/INDEX.md +11 -0
  14. package/dist/skills/temps/references/commands/access.md +4 -0
  15. package/dist/skills/temps/references/commands/agents.md +731 -0
  16. package/dist/skills/temps/references/commands/ai.md +2638 -9
  17. package/dist/skills/temps/references/commands/alarms.md +129 -0
  18. package/dist/skills/temps/references/commands/analytics.md +1199 -2
  19. package/dist/skills/temps/references/commands/apikeys.md +50 -1
  20. package/dist/skills/temps/references/commands/audit.md +1 -0
  21. package/dist/skills/temps/references/commands/backups.md +312 -0
  22. package/dist/skills/temps/references/commands/blob.md +169 -0
  23. package/dist/skills/temps/references/commands/cloud.md +73 -0
  24. package/dist/skills/temps/references/commands/cluster.md +223 -0
  25. package/dist/skills/temps/references/commands/configure.md +7 -0
  26. package/dist/skills/temps/references/commands/containers.md +45 -0
  27. package/dist/skills/temps/references/commands/context.md +6 -0
  28. package/dist/skills/temps/references/commands/custom-domains.md +32 -0
  29. package/dist/skills/temps/references/commands/data.md +11 -13
  30. package/dist/skills/temps/references/commands/deploy-image.md +3 -1
  31. package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
  32. package/dist/skills/temps/references/commands/deploy.md +2 -0
  33. package/dist/skills/temps/references/commands/deployments.md +560 -0
  34. package/dist/skills/temps/references/commands/dns-provider.md +63 -0
  35. package/dist/skills/temps/references/commands/domains.md +105 -0
  36. package/dist/skills/temps/references/commands/drop.md +2 -0
  37. package/dist/skills/temps/references/commands/edge-rules.md +218 -0
  38. package/dist/skills/temps/references/commands/email-domains.md +1 -0
  39. package/dist/skills/temps/references/commands/email-providers.md +64 -1
  40. package/dist/skills/temps/references/commands/emails.md +91 -0
  41. package/dist/skills/temps/references/commands/env-pull.md +2 -0
  42. package/dist/skills/temps/references/commands/env-push.md +2 -0
  43. package/dist/skills/temps/references/commands/environments.md +695 -2
  44. package/dist/skills/temps/references/commands/errors.md +1134 -61
  45. package/dist/skills/temps/references/commands/facets.md +6 -0
  46. package/dist/skills/temps/references/commands/flags.md +179 -0
  47. package/dist/skills/temps/references/commands/funnels.md +22 -2
  48. package/dist/skills/temps/references/commands/incidents.md +22 -0
  49. package/dist/skills/temps/references/commands/init.md +2 -0
  50. package/dist/skills/temps/references/commands/instances.md +6 -0
  51. package/dist/skills/temps/references/commands/instantiations.md +4 -0
  52. package/dist/skills/temps/references/commands/ip-access.md +96 -1
  53. package/dist/skills/temps/references/commands/kv.md +184 -0
  54. package/dist/skills/temps/references/commands/link.md +2 -0
  55. package/dist/skills/temps/references/commands/load-balancer.md +2 -0
  56. package/dist/skills/temps/references/commands/login.md +9 -1
  57. package/dist/skills/temps/references/commands/logs.md +405 -10
  58. package/dist/skills/temps/references/commands/mcp-servers.md +4 -0
  59. package/dist/skills/temps/references/commands/mcp.md +8 -1
  60. package/dist/skills/temps/references/commands/migrate.md +26 -0
  61. package/dist/skills/temps/references/commands/monitors.md +456 -0
  62. package/dist/skills/temps/references/commands/network-policy.md +147 -0
  63. package/dist/skills/temps/references/commands/nodes.md +209 -2
  64. package/dist/skills/temps/references/commands/notifications.md +173 -2
  65. package/dist/skills/temps/references/commands/open.md +2 -0
  66. package/dist/skills/temps/references/commands/otel-forward.md +16 -0
  67. package/dist/skills/temps/references/commands/otel.md +436 -0
  68. package/dist/skills/temps/references/commands/platform.md +57 -0
  69. package/dist/skills/temps/references/commands/plugin.md +106 -1
  70. package/dist/skills/temps/references/commands/presets.md +2 -0
  71. package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
  72. package/dist/skills/temps/references/commands/project-groups.md +72 -4
  73. package/dist/skills/temps/references/commands/projects.md +509 -4
  74. package/dist/skills/temps/references/commands/providers.md +533 -1
  75. package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
  76. package/dist/skills/temps/references/commands/revenue.md +223 -0
  77. package/dist/skills/temps/references/commands/rollback.md +2 -0
  78. package/dist/skills/temps/references/commands/sandbox.md +790 -10
  79. package/dist/skills/temps/references/commands/secrets.md +19 -6
  80. package/dist/skills/temps/references/commands/server.md +107 -0
  81. package/dist/skills/temps/references/commands/services.md +836 -5
  82. package/dist/skills/temps/references/commands/session-replay.md +8 -0
  83. package/dist/skills/temps/references/commands/settings.md +346 -0
  84. package/dist/skills/temps/references/commands/shield.md +354 -0
  85. package/dist/skills/temps/references/commands/skills.md +6 -0
  86. package/dist/skills/temps/references/commands/start.md +1 -0
  87. package/dist/skills/temps/references/commands/status-pages.md +376 -9
  88. package/dist/skills/temps/references/commands/status.md +2 -0
  89. package/dist/skills/temps/references/commands/surveys.md +165 -0
  90. package/dist/skills/temps/references/commands/teams.md +28 -0
  91. package/dist/skills/temps/references/commands/templates.md +22 -2
  92. package/dist/skills/temps/references/commands/tokens.md +106 -0
  93. package/dist/skills/temps/references/commands/traces.md +207 -0
  94. package/dist/skills/temps/references/commands/traefik-discovery.md +10 -0
  95. package/dist/skills/temps/references/commands/tunnels.md +141 -0
  96. package/dist/skills/temps/references/commands/up.md +2 -0
  97. package/dist/skills/temps/references/commands/users.md +127 -0
  98. package/dist/skills/temps/references/commands/vault.md +662 -0
  99. package/dist/skills/temps/references/commands/webhooks.md +10 -0
  100. package/dist/skills/temps/references/commands/workflow.md +2 -0
  101. package/dist/skills/temps/references/commands/workflows.md +563 -0
  102. package/dist/skills/temps/references/observability/analytics.md +2 -2
  103. package/dist/skills/temps/references/workflows/platform-operations.md +46 -36
  104. package/dist/skills/temps/scripts/generate_command_references.py +5 -3
  105. package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
  106. package/dist/skills/temps/scripts/test_validate_skill.py +25 -66
  107. package/dist/skills/temps/scripts/validate_skill.py +29 -43
  108. package/package.json +9 -3
  109. package/dist/skills/temps/scripts/__pycache__/generate_command_references.cpython-314.pyc +0 -0
  110. package/dist/skills/temps/scripts/__pycache__/test_generate_command_references.cpython-314.pyc +0 -0
  111. package/dist/skills/temps/scripts/__pycache__/test_validate_skill.cpython-314.pyc +0 -0
  112. package/dist/skills/temps/scripts/__pycache__/validate_skill.cpython-314.pyc +0 -0
@@ -4,6 +4,30 @@
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
+ - [`logs search`](#logs-search)
10
+ - [`logs facets`](#logs-facets)
11
+ - [`logs attributes`](#logs-attributes)
12
+ - [`logs histogram`](#logs-histogram)
13
+ - [`logs aggregate`](#logs-aggregate)
14
+ - [`logs capabilities`](#logs-capabilities)
15
+ - [`logs saved`](#logs-saved)
16
+ - [`logs keys`](#logs-keys)
17
+ - [`logs get-context`](#logs-get-context)
18
+ - [`logs global-aggregate`](#logs-global-aggregate)
19
+ - [`logs global-attribute-keys`](#logs-global-attribute-keys)
20
+ - [`logs global-capabilities`](#logs-global-capabilities)
21
+ - [`logs global-facets-attrs`](#logs-global-facets-attrs)
22
+ - [`logs global-histogram`](#logs-global-histogram)
23
+ - [`logs ingest`](#logs-ingest)
24
+ - [`logs ingest-budget`](#logs-ingest-budget)
25
+ - [`logs tail`](#logs-tail)
26
+ - [`logs purge`](#logs-purge)
27
+ - [`logs project-search`](#logs-project-search)
28
+ - [`logs get-saved-search`](#logs-get-saved-search)
29
+ - [`logs update-saved-search`](#logs-update-saved-search)
30
+
7
31
  ## `logs` (alias: `glogs`)
8
32
 
9
33
  Search collected logs across every project and database you can access
@@ -16,6 +40,21 @@ Search collected logs across every project and database you can access
16
40
  - `histogram` - Line counts bucketed over time, optionally split by a label or attribute (requires the ClickHouse line index)
17
41
  - `aggregate` - Group-by aggregation over lines (requires the ClickHouse line index)
18
42
  - `capabilities` - Whether container logs are being collected, and whether attribute facets, histograms and aggregates are available
43
+ - `saved` - Saved log searches: named filters you can reopen, chart on a dashboard and alert on
44
+ - `keys` - Ingest keys for POST /api/logs/ingest (newline-delimited JSON from Vector, Fluent Bit or any HTTP client)
45
+ - `get-context` - Get context lines surrounding a specific log line
46
+ - `global-aggregate` - Global log aggregate
47
+ - `global-attribute-keys` - Global log attribute keys
48
+ - `global-capabilities` - Global log capabilities
49
+ - `global-facets-attrs` - Global log facets attrs
50
+ - `global-histogram` - Global log histogram
51
+ - `ingest` - Ingest newline-delimited JSON log lines with a log ingest key
52
+ - `ingest-budget` - The ingestion budget and the containers dropping lines over it, for the warnings on the log views
53
+ - `tail` - Live tail logs via Server-Sent Events
54
+ - `purge` - Purge all logs for a project before a given timestamp
55
+ - `project-search` - Search one project's (or one database's) log lines, newest first, with a cursor for the next page
56
+ - `get-saved-search` - Read one saved log search
57
+ - `update-saved-search` - Change a saved log search
19
58
 
20
59
  ### `logs search`
21
60
 
@@ -33,8 +72,8 @@ Search log lines across projects (newest first)
33
72
  | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
34
73
  | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
35
74
  | `--source <kind>` | collected (default), application, or service | - | No |
36
- | `--project <id|slug|name>` | Restrict to a project, repeatable | `` | No |
37
- | `--external-service <id|name>` | Restrict to a managed database/service, repeatable | `` | No |
75
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
76
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
38
77
  | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
39
78
  | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
40
79
  | `--env <name>` | Environment, repeatable | `` | No |
@@ -61,8 +100,8 @@ Distinct values and counts per field for the same filter scope
61
100
  | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
62
101
  | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
63
102
  | `--source <kind>` | collected (default), application, or service | - | No |
64
- | `--project <id|slug|name>` | Restrict to a project, repeatable | `` | No |
65
- | `--external-service <id|name>` | Restrict to a managed database/service, repeatable | `` | No |
103
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
104
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
66
105
  | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
67
106
  | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
68
107
  | `--env <name>` | Environment, repeatable | `` | No |
@@ -87,8 +126,8 @@ Attribute keys observed in the window, most common first (requires the ClickHous
87
126
  | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
88
127
  | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
89
128
  | `--source <kind>` | collected (default), application, or service | - | No |
90
- | `--project <id|slug|name>` | Restrict to a project, repeatable | `` | No |
91
- | `--external-service <id|name>` | Restrict to a managed database/service, repeatable | `` | No |
129
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
130
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
92
131
  | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
93
132
  | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
94
133
  | `--env <name>` | Environment, repeatable | `` | No |
@@ -115,8 +154,8 @@ Line counts bucketed over time, optionally split by a label or attribute (requir
115
154
  | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
116
155
  | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
117
156
  | `--source <kind>` | collected (default), application, or service | - | No |
118
- | `--project <id|slug|name>` | Restrict to a project, repeatable | `` | No |
119
- | `--external-service <id|name>` | Restrict to a managed database/service, repeatable | `` | No |
157
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
158
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
120
159
  | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
121
160
  | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
122
161
  | `--env <name>` | Environment, repeatable | `` | No |
@@ -143,8 +182,8 @@ Group-by aggregation over lines (requires the ClickHouse line index)
143
182
  | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
144
183
  | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
145
184
  | `--source <kind>` | collected (default), application, or service | - | No |
146
- | `--project <id|slug|name>` | Restrict to a project, repeatable | `` | No |
147
- | `--external-service <id|name>` | Restrict to a managed database/service, repeatable | `` | No |
185
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
186
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
148
187
  | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
149
188
  | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
150
189
  | `--env <name>` | Environment, repeatable | `` | No |
@@ -165,3 +204,359 @@ Whether container logs are being collected, and whether attribute facets, histog
165
204
  | Flag | Description | Default | Required |
166
205
  |------|-------------|---------|----------|
167
206
  | `--json` | Output in JSON format | - | No |
207
+
208
+ ### `logs saved`
209
+
210
+ Saved log searches: named filters you can reopen, chart on a dashboard and alert on
211
+
212
+ **Subcommands:**
213
+
214
+ - `list` - List the saved searches of a project, pinned first
215
+ - `create` - Save a log search
216
+ - `delete` - Delete a saved search (refused while an alert rule counts it)
217
+ - `series` - Chart a saved search over time: matching lines per bucket, or a numeric field
218
+
219
+ #### `logs saved list`
220
+
221
+ List the saved searches of a project, pinned first
222
+
223
+ **Options:**
224
+
225
+ | Flag | Description | Default | Required |
226
+ |------|-------------|---------|----------|
227
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
228
+ | `--json` | Output in JSON format | - | No |
229
+
230
+ #### `logs saved create`
231
+
232
+ Save a log search
233
+
234
+ **Options:**
235
+
236
+ | Flag | Description | Default | Required |
237
+ |------|-------------|---------|----------|
238
+ | `--name <name>` | Name, unique within the project | - | Yes |
239
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
240
+ | `--description <text>` | What the search is for | - | No |
241
+ | `--source <kind>` | collected (default), application, or service | - | No |
242
+ | `--level <level>` | Log level, repeatable | `` | No |
243
+ | `--env <name>` | Environment, repeatable | `` | No |
244
+ | `--service <name>` | Service label, repeatable | `` | No |
245
+ | `--container <id>` | Container id, repeatable | `` | No |
246
+ | `--node <id>` | Node id, repeatable | `` | No |
247
+ | `--deploy <id>` | Deployment id | - | No |
248
+ | `--text <needle>` | Text the message must contain | - | No |
249
+ | `--attr <predicate>` | Attribute predicate, repeatable: key=value, key!=value, key^=prefix, key>n, key<n, key? | `` | No |
250
+ | `--time-range <range>` | Range the search opens with: 15m, 1h, 6h, 24h, 7d, 30d (default 1h) | - | No |
251
+ | `--pinned` | Pin it to the top of the list | - | No |
252
+ | `--json` | Output in JSON format | - | No |
253
+
254
+ #### `logs saved delete`
255
+
256
+ Delete a saved search (refused while an alert rule counts it)
257
+
258
+ **Usage:** `logs saved delete <id> [options]`
259
+
260
+ **Options:**
261
+
262
+ | Flag | Description | Default | Required |
263
+ |------|-------------|---------|----------|
264
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
265
+
266
+ #### `logs saved series`
267
+
268
+ Chart a saved search over time: matching lines per bucket, or a numeric field
269
+
270
+ **Usage:** `logs saved series <id> [options]`
271
+
272
+ **Options:**
273
+
274
+ | Flag | Description | Default | Required |
275
+ |------|-------------|---------|----------|
276
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
277
+ | `--since <duration>` | Window ending now, e.g. 30m, 6h, 1d (default 1h) | - | No |
278
+ | `--bucket-secs <n>` | Bucket width in seconds (default 60) | - | No |
279
+ | `--metric <spec>` | count (default), or avg\|sum\|max\|p50\|p95\|p99\|count_distinct:<attribute> | - | No |
280
+ | `--json` | Output in JSON format | - | No |
281
+
282
+ ### `logs keys`
283
+
284
+ Ingest keys for POST /api/logs/ingest (newline-delimited JSON from Vector, Fluent Bit or any HTTP client)
285
+
286
+ **Subcommands:**
287
+
288
+ - `list` - List the ingest keys of a project
289
+ - `create` - Create an ingest key; the key is printed once
290
+ - `revoke` - Revoke an ingest key; collectors using it are refused
291
+
292
+ #### `logs keys list`
293
+
294
+ List the ingest keys of a project
295
+
296
+ **Options:**
297
+
298
+ | Flag | Description | Default | Required |
299
+ |------|-------------|---------|----------|
300
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
301
+ | `--json` | Output in JSON format | - | No |
302
+
303
+ #### `logs keys create`
304
+
305
+ Create an ingest key; the key is printed once
306
+
307
+ **Options:**
308
+
309
+ | Flag | Description | Default | Required |
310
+ |------|-------------|---------|----------|
311
+ | `--name <name>` | Name, e.g. the host or collector | - | Yes |
312
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
313
+ | `--service <name>` | Service label for lines that name none | - | No |
314
+ | `--environment <id>` | Pin lines to an environment id | - | No |
315
+ | `--json` | Output in JSON format | - | No |
316
+
317
+ #### `logs keys revoke`
318
+
319
+ Revoke an ingest key; collectors using it are refused
320
+
321
+ **Usage:** `logs keys revoke <id> [options]`
322
+
323
+ **Options:**
324
+
325
+ | Flag | Description | Default | Required |
326
+ |------|-------------|---------|----------|
327
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
328
+
329
+ ### `logs get-context`
330
+
331
+ Get context lines surrounding a specific log line
332
+
333
+ **Options:**
334
+
335
+ | Flag | Description | Default | Required |
336
+ |------|-------------|---------|----------|
337
+ | `--timestamp <value>` | Target line timestamp (RFC 3339) [required] | - | No |
338
+ | `--container-id <value>` | Target line container ID [required] | - | No |
339
+ | `--line-id <value>` | Target line_id, as a decimal string [required] | - | No |
340
+ | `--lines <n>` | Context lines before and after (default: 25, max 50) | - | No |
341
+ | `--json` | Output in JSON format | - | No |
342
+
343
+ ### `logs global-aggregate`
344
+
345
+ Global log aggregate
346
+
347
+ **Options:**
348
+
349
+ | Flag | Description | Default | Required |
350
+ |------|-------------|---------|----------|
351
+ | `--start-time <value>` | Window start (RFC 3339) [required] | - | No |
352
+ | `--end-time <value>` | Window end (RFC 3339) [required] | - | No |
353
+ | `--source <value>` | Source kind (default: all) (one of: collected, application, service) | - | No |
354
+ | `--projects <value>` | Project selectors (repeatable) (repeatable) | - | No |
355
+ | `--external-services <value>` | External service selectors (repeatable) (repeatable) | - | No |
356
+ | `--scopes <value>` | Scope selectors (repeatable) (repeatable) | - | No |
357
+ | `--levels <value>` | Levels (repeatable) (one of: TRACE, DEBUG, INFO, WARN, ERROR) (repeatable) | - | No |
358
+ | `--envs <value>` | Environments (repeatable) (repeatable) | - | No |
359
+ | `--services <value>` | Services (repeatable) (repeatable) | - | No |
360
+ | `--container-ids <value>` | Container ids (repeatable) (repeatable) | - | No |
361
+ | `--node-ids <n>` | Node ids (repeatable) (repeatable) | - | No |
362
+ | `--deploy-id <n>` | Deployment id | - | No |
363
+ | `--group-by <value>` | Comma-separated label names and/or attr:<name> [required] | - | No |
364
+ | `--metric <value>` | count \| count_distinct:<k> \| avg:<k> \| p50:<k> \| p95:<k> \| p99:<k> \| max:<k> \| sum:<k> [required] | - | No |
365
+ | `--limit <n>` | Max rows returned (default 50, cap 1000) | - | No |
366
+ | `--attr <value>` | Repeatable attribute predicate: <key><op><value> or <key>? (repeatable) [required] | - | No |
367
+ | `--json` | Output in JSON format | - | No |
368
+
369
+ ### `logs global-attribute-keys`
370
+
371
+ Global log attribute keys
372
+
373
+ **Options:**
374
+
375
+ | Flag | Description | Default | Required |
376
+ |------|-------------|---------|----------|
377
+ | `--start-time <value>` | Window start (RFC 3339) [required] | - | No |
378
+ | `--end-time <value>` | Window end (RFC 3339) [required] | - | No |
379
+ | `--source <value>` | Source kind (default: all) (one of: collected, application, service) | - | No |
380
+ | `--projects <value>` | Project selectors (repeatable) (repeatable) | - | No |
381
+ | `--external-services <value>` | External service selectors (repeatable) (repeatable) | - | No |
382
+ | `--scopes <value>` | Scope selectors (repeatable) (repeatable) | - | No |
383
+ | `--levels <value>` | Levels (repeatable) (one of: TRACE, DEBUG, INFO, WARN, ERROR) (repeatable) | - | No |
384
+ | `--envs <value>` | Environments (repeatable) (repeatable) | - | No |
385
+ | `--services <value>` | Services (repeatable) (repeatable) | - | No |
386
+ | `--container-ids <value>` | Container ids (repeatable) (repeatable) | - | No |
387
+ | `--node-ids <n>` | Node ids (repeatable) (repeatable) | - | No |
388
+ | `--deploy-id <n>` | Deployment id | - | No |
389
+ | `--limit <n>` | Max keys returned (default/cap 1000) | - | No |
390
+ | `--json` | Output in JSON format | - | No |
391
+
392
+ ### `logs global-capabilities`
393
+
394
+ Global log capabilities
395
+
396
+ **Options:**
397
+
398
+ | Flag | Description | Default | Required |
399
+ |------|-------------|---------|----------|
400
+ | `--json` | Output in JSON format | - | No |
401
+
402
+ ### `logs global-facets-attrs`
403
+
404
+ Global log facets attrs
405
+
406
+ **Options:**
407
+
408
+ | Flag | Description | Default | Required |
409
+ |------|-------------|---------|----------|
410
+ | `--start-time <value>` | Window start (RFC 3339) [required] | - | No |
411
+ | `--end-time <value>` | Window end (RFC 3339) [required] | - | No |
412
+ | `--source <value>` | Source kind (default: all) (one of: collected, application, service) | - | No |
413
+ | `--projects <value>` | Project selectors (repeatable) (repeatable) | - | No |
414
+ | `--external-services <value>` | External service selectors (repeatable) (repeatable) | - | No |
415
+ | `--scopes <value>` | Scope selectors (repeatable) (repeatable) | - | No |
416
+ | `--levels <value>` | Levels (repeatable) (one of: TRACE, DEBUG, INFO, WARN, ERROR) (repeatable) | - | No |
417
+ | `--envs <value>` | Environments (repeatable) (repeatable) | - | No |
418
+ | `--services <value>` | Services (repeatable) (repeatable) | - | No |
419
+ | `--container-ids <value>` | Container ids (repeatable) (repeatable) | - | No |
420
+ | `--node-ids <n>` | Node ids (repeatable) (repeatable) | - | No |
421
+ | `--deploy-id <n>` | Deployment id | - | No |
422
+ | `--keys <value>` | Comma-separated label names or attr:<name> [required] | - | No |
423
+ | `--attr <value>` | Repeatable attribute predicate: <key><op><value> or <key>? (repeatable) [required] | - | No |
424
+ | `--limit <n>` | Max values per key (default/cap 1000) | - | No |
425
+ | `--json` | Output in JSON format | - | No |
426
+
427
+ ### `logs global-histogram`
428
+
429
+ Global log histogram
430
+
431
+ **Options:**
432
+
433
+ | Flag | Description | Default | Required |
434
+ |------|-------------|---------|----------|
435
+ | `--start-time <value>` | Window start (RFC 3339) [required] | - | No |
436
+ | `--end-time <value>` | Window end (RFC 3339) [required] | - | No |
437
+ | `--source <value>` | Source kind (default: all) (one of: collected, application, service) | - | No |
438
+ | `--projects <value>` | Project selectors (repeatable) (repeatable) | - | No |
439
+ | `--external-services <value>` | External service selectors (repeatable) (repeatable) | - | No |
440
+ | `--scopes <value>` | Scope selectors (repeatable) (repeatable) | - | No |
441
+ | `--levels <value>` | Levels (repeatable) (one of: TRACE, DEBUG, INFO, WARN, ERROR) (repeatable) | - | No |
442
+ | `--envs <value>` | Environments (repeatable) (repeatable) | - | No |
443
+ | `--services <value>` | Services (repeatable) (repeatable) | - | No |
444
+ | `--container-ids <value>` | Container ids (repeatable) (repeatable) | - | No |
445
+ | `--node-ids <n>` | Node ids (repeatable) (repeatable) | - | No |
446
+ | `--deploy-id <n>` | Deployment id | - | No |
447
+ | `--bucket-secs <n>` | Bucket width in seconds (default 60) | - | No |
448
+ | `--group-by <value>` | One label name or attr:<name> to split series by | - | No |
449
+ | `--max-groups <n>` | Max series before folding the rest into "other" (default 8) | - | No |
450
+ | `--attr <value>` | Repeatable attribute predicate: <key><op><value> or <key>? (repeatable) [required] | - | No |
451
+ | `--json` | Output in JSON format | - | No |
452
+
453
+ ### `logs ingest`
454
+
455
+ Ingest newline-delimited JSON log lines with a log ingest key
456
+
457
+ **Options:**
458
+
459
+ | Flag | Description | Default | Required |
460
+ |------|-------------|---------|----------|
461
+ | `--input <path>` | The file to upload (- for stdin) | - | Yes |
462
+ | `--json` | Output in JSON format | - | No |
463
+
464
+ ### `logs ingest-budget`
465
+
466
+ The ingestion budget and the containers dropping lines over it, for the warnings on the log views
467
+
468
+ **Options:**
469
+
470
+ | Flag | Description | Default | Required |
471
+ |------|-------------|---------|----------|
472
+ | `--json` | Output in JSON format | - | No |
473
+
474
+ ### `logs tail`
475
+
476
+ Live tail logs via Server-Sent Events
477
+
478
+ **Options:**
479
+
480
+ | Flag | Description | Default | Required |
481
+ |------|-------------|---------|----------|
482
+ | `--project-id <value>` | Project ID [required] | - | No |
483
+ | `--service <value>` | Service name [required] | - | No |
484
+ | `--env <value>` | Environment [required] | - | No |
485
+ | `--levels <value>` | Optional level filters (repeatable) [required] | - | No |
486
+ | `--text <value>` | Optional text filter | - | No |
487
+ | `--json` | Output in JSON format | - | No |
488
+
489
+ ### `logs purge`
490
+
491
+ Purge all logs for a project before a given timestamp
492
+
493
+ **Options:**
494
+
495
+ | Flag | Description | Default | Required |
496
+ |------|-------------|---------|----------|
497
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
498
+ | `--before <value>` | Delete all logs before this timestamp (ISO 8601) [required] | - | No |
499
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
500
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
501
+ | `-y, --yes` | Do not ask for confirmation | - | No |
502
+ | `--json` | Output in JSON format | - | No |
503
+
504
+ ### `logs project-search`
505
+
506
+ Search one project's (or one database's) log lines, newest first, with a cursor for the next page
507
+
508
+ **Options:**
509
+
510
+ | Flag | Description | Default | Required |
511
+ |------|-------------|---------|----------|
512
+ | `--project-id <n>` | Project ID (0 with --external-service-id searches a database's logs) [required] | - | No |
513
+ | `--external-service-id <n>` | Search this external service's (database's) logs instead | - | No |
514
+ | `--start-time <value>` | Window start (RFC 3339; default: 24 hours ago) | - | No |
515
+ | `--end-time <value>` | Window end (RFC 3339; default: now) | - | No |
516
+ | `--text <value>` | Only lines containing this text | - | No |
517
+ | `--levels <value>` | Only these levels (repeatable) (one of: TRACE, DEBUG, INFO, WARN, ERROR) (repeatable) | - | No |
518
+ | `--envs <value>` | Only these environments (repeatable) (repeatable) | - | No |
519
+ | `--services <value>` | Only these services (repeatable) (repeatable) | - | No |
520
+ | `--container-ids <value>` | Only these containers (repeatable) (repeatable) | - | No |
521
+ | `--node-ids <n>` | Only lines from these nodes (repeatable) (repeatable) | - | No |
522
+ | `--deploy-id <n>` | Only lines from this deployment | - | No |
523
+ | `--context-lines <n>` | Lines of context around each match | - | No |
524
+ | `--page-size <n>` | Lines per page | - | No |
525
+ | `--cursor <value>` | Resume from a previous next_cursor | - | No |
526
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
527
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
528
+ | `--json` | Output in JSON format | - | No |
529
+
530
+ ### `logs get-saved-search`
531
+
532
+ Read one saved log search
533
+
534
+ **Usage:** `logs get-saved-search <saved-search-id> [options]`
535
+
536
+ **Options:**
537
+
538
+ | Flag | Description | Default | Required |
539
+ |------|-------------|---------|----------|
540
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
541
+ | `--json` | Output in JSON format | - | No |
542
+
543
+ ### `logs update-saved-search`
544
+
545
+ Change a saved log search
546
+
547
+ **Usage:** `logs update-saved-search <saved-search-id> [options]`
548
+
549
+ **Options:**
550
+
551
+ | Flag | Description | Default | Required |
552
+ |------|-------------|---------|----------|
553
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
554
+ | `--description <value>` | Absent leaves the description unchanged; an empty string clears it | - | No |
555
+ | `--name <value>` | Absent leaves the name unchanged | - | No |
556
+ | `--pinned` | Body field pinned | - | No |
557
+ | `--no-pinned` | Set pinned to false | - | No |
558
+ | `--query <json>` | The stored filter set of a saved search (JSON) | - | No |
559
+ | `--time-range <value>` | Body field time_range | - | No |
560
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
561
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
562
+ | `--json` | Output in JSON format | - | No |
@@ -46,6 +46,8 @@ Create a new MCP server definition
46
46
 
47
47
  Update an existing MCP server definition
48
48
 
49
+ **Usage:** `mcp-servers update <slug> [options]`
50
+
49
51
  **Options:**
50
52
 
51
53
  | Flag | Description | Default | Required |
@@ -60,6 +62,8 @@ Update an existing MCP server definition
60
62
 
61
63
  Delete an MCP server definition
62
64
 
65
+ **Usage:** `mcp-servers delete <slug> [options]`
66
+
63
67
  **Options:**
64
68
 
65
69
  | Flag | Description | Default | Required |
@@ -40,20 +40,27 @@ Disable the Temps MCP server on this instance (admin)
40
40
 
41
41
  Configure an AI client to connect to this Temps instance over MCP. Clients: claude-code, claude-desktop, codex, cursor, vscode, windsurf, zed
42
42
 
43
+ **Usage:** `mcp add [client] [options]`
44
+
43
45
  **Options:**
44
46
 
45
47
  | Flag | Description | Default | Required |
46
48
  |------|-------------|---------|----------|
47
- | `-g, --groups <groups>` | Comma-separated tool groups to enable (default: all) | - | No |
49
+ | `-g, --groups <groups>` | Legacy tool-group filter (optional; does not restrict temps/temps_write permissions) | - | No |
48
50
  | `-w, --write` | Enable write tools (deploy, delete, restart, etc). Default: read-only | - | No |
49
51
  | `-k, --api-key <key>` | Use this API key instead of creating or prompting for one | - | No |
50
52
  | `-u, --url <url>` | Target this Temps instance directly (e.g. copied from the Settings UI), without needing a saved CLI context or changing the active one. Defaults to the current context/login when omitted. | - | No |
51
53
  | `-y, --yes` | Skip prompts and confirmation (uses defaults; requires --api-key or an existing login) | - | No |
54
+ | `--api-key-file <path>` | Read the API key from a file (- reads stdin) instead of --api-key | - | No |
55
+ | `--api-key-stdin` | Read the API key from stdin instead of --api-key | - | No |
56
+ | `--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 |
52
57
 
53
58
  ### `mcp remove`
54
59
 
55
60
  Remove the Temps MCP server from an AI client
56
61
 
62
+ **Usage:** `mcp remove [client]`
63
+
57
64
  ### `mcp status`
58
65
 
59
66
  Show whether this instance has MCP enabled and which AI clients are configured
@@ -42,6 +42,14 @@ Discover workloads from a source
42
42
  | `--kubeconfig <path>` | Path to a kubeconfig file (kubernetes source) | - | No |
43
43
  | `--deploy-yml <path>` | Path to config/deploy.yml (kamal source) | - | No |
44
44
  | `--json` | Output in JSON format | - | No |
45
+ | `--name-pattern <value>` | Only workloads whose name matches this glob or pattern | - | No |
46
+ | `--status-filter <value>` | Only workloads in this state, e.g. running (repeatable) (repeatable) | - | No |
47
+ | `--workload-type-filter <value>` | Only workloads of this type, e.g. container or static-site (repeatable) (repeatable) | - | No |
48
+ | `--label-filter <json>` | Only workloads with these labels, as a JSON object, e.g. {"env":"prod"} (JSON) | - | No |
49
+ | `--limit <n>` | Return at most this many workloads | - | No |
50
+ | `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
51
+ | `--token-stdin` | Read the source API token or admin password from stdin instead of --token | - | No |
52
+ | `--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 |
45
53
 
46
54
  ### `migrate plan`
47
55
 
@@ -58,6 +66,15 @@ Discover a source, pick a workload, and show the import plan
58
66
  | `--username <name>` | Admin username (portainer source, defaults to "admin") | - | No |
59
67
  | `--kubeconfig <path>` | Path to a kubeconfig file (kubernetes source) | - | No |
60
68
  | `--deploy-yml <path>` | Path to config/deploy.yml (kamal source) | - | No |
69
+ | `--name-pattern <value>` | Only workloads whose name matches this glob or pattern | - | No |
70
+ | `--status-filter <value>` | Only workloads in this state, e.g. running (repeatable) (repeatable) | - | No |
71
+ | `--workload-type-filter <value>` | Only workloads of this type, e.g. container or static-site (repeatable) (repeatable) | - | No |
72
+ | `--label-filter <json>` | Only workloads with these labels, as a JSON object, e.g. {"env":"prod"} (JSON) | - | No |
73
+ | `--limit <n>` | Return at most this many workloads | - | No |
74
+ | `--repository-id <n>` | Connected repository to detect the build preset from | - | No |
75
+ | `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
76
+ | `--token-stdin` | Read the source API token or admin password from stdin instead of --token | - | No |
77
+ | `--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 |
61
78
 
62
79
  ### `migrate run`
63
80
 
@@ -80,6 +97,15 @@ Guided end-to-end migration: discover, plan, review, and execute
80
97
  | `--branch <branch>` | Branch to deploy | `main` | No |
81
98
  | `--dry-run` | Plan only — do not create or deploy anything | - | No |
82
99
  | `-y, --yes` | Skip the confirmation prompt (for automation) | - | No |
100
+ | `--name-pattern <value>` | Only workloads whose name matches this glob or pattern | - | No |
101
+ | `--status-filter <value>` | Only workloads in this state, e.g. running (repeatable) (repeatable) | - | No |
102
+ | `--workload-type-filter <value>` | Only workloads of this type, e.g. container or static-site (repeatable) (repeatable) | - | No |
103
+ | `--label-filter <json>` | Only workloads with these labels, as a JSON object, e.g. {"env":"prod"} (JSON) | - | No |
104
+ | `--limit <n>` | Return at most this many workloads | - | No |
105
+ | `--repository-id <n>` | Connected repository to detect the build preset from | - | No |
106
+ | `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
107
+ | `--token-stdin` | Read the source API token or admin password from stdin instead of --token | - | No |
108
+ | `--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 |
83
109
 
84
110
  ### `migrate execute`
85
111