@temps-sdk/cli 0.1.38 → 0.2.0-beta.1
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 +10116 -996
- package/dist/skills/temps/SKILL.md +17 -9
- package/dist/skills/temps/evals/evals.json +23 -6
- 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 +5 -0
- package/dist/skills/temps/references/commands/access.md +4 -0
- package/dist/skills/temps/references/commands/ai.md +4 -0
- package/dist/skills/temps/references/commands/alarms.md +4 -0
- package/dist/skills/temps/references/commands/analytics.md +199 -0
- package/dist/skills/temps/references/commands/apikeys.md +2 -0
- package/dist/skills/temps/references/commands/backups.md +6 -0
- package/dist/skills/temps/references/commands/cloud.md +14 -0
- package/dist/skills/temps/references/commands/configure.md +7 -0
- package/dist/skills/temps/references/commands/context.md +6 -0
- package/dist/skills/temps/references/commands/data.md +10 -13
- package/dist/skills/temps/references/commands/deploy.md +2 -0
- package/dist/skills/temps/references/commands/deployments.md +1 -0
- package/dist/skills/temps/references/commands/domains.md +1 -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-providers.md +5 -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 +250 -2
- package/dist/skills/temps/references/commands/errors.md +514 -1
- package/dist/skills/temps/references/commands/facets.md +6 -0
- package/dist/skills/temps/references/commands/flags.md +103 -0
- package/dist/skills/temps/references/commands/incidents.md +4 -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/link.md +2 -0
- package/dist/skills/temps/references/commands/login.md +5 -0
- package/dist/skills/temps/references/commands/logs.md +133 -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 +9 -0
- package/dist/skills/temps/references/commands/monitors.md +70 -0
- package/dist/skills/temps/references/commands/network-policy.md +120 -0
- package/dist/skills/temps/references/commands/nodes.md +54 -0
- package/dist/skills/temps/references/commands/notifications.md +24 -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/platform.md +4 -0
- package/dist/skills/temps/references/commands/plugin.md +30 -1
- package/dist/skills/temps/references/commands/presets.md +2 -0
- package/dist/skills/temps/references/commands/project-groups.md +41 -4
- package/dist/skills/temps/references/commands/projects.md +63 -4
- package/dist/skills/temps/references/commands/providers.md +14 -1
- package/dist/skills/temps/references/commands/revenue.md +4 -0
- package/dist/skills/temps/references/commands/rollback.md +2 -0
- package/dist/skills/temps/references/commands/sandbox.md +91 -1
- package/dist/skills/temps/references/commands/secrets.md +16 -6
- package/dist/skills/temps/references/commands/services.md +6 -0
- package/dist/skills/temps/references/commands/session-replay.md +8 -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 +276 -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 +14 -0
- package/dist/skills/temps/references/commands/templates.md +8 -2
- package/dist/skills/temps/references/commands/traces.md +58 -0
- package/dist/skills/temps/references/commands/traefik-discovery.md +10 -0
- package/dist/skills/temps/references/commands/tunnels.md +139 -0
- package/dist/skills/temps/references/commands/up.md +2 -0
- package/dist/skills/temps/references/commands/users.md +16 -0
- package/dist/skills/temps/references/commands/webhooks.md +6 -0
- package/dist/skills/temps/references/commands/workflow.md +2 -0
- package/dist/skills/temps/references/commands/workflows.md +216 -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/test_validate_skill.py +25 -66
- package/dist/skills/temps/scripts/validate_skill.py +29 -43
- package/package.json +7 -2
- 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
|
@@ -14,6 +14,9 @@ Manage feature flags (runtime config that changes without a redeploy)
|
|
|
14
14
|
- `get` - Show a feature flag and its per-environment values
|
|
15
15
|
- `create` - Create a feature flag
|
|
16
16
|
- `update` - Update a flag definition (default value, description, visibility)
|
|
17
|
+
- `rules` - Targeting rules: serve a different value to some users, or to a percentage of them
|
|
18
|
+
- `evaluate` (`eval`) - Show what a user would get, and why, in one environment
|
|
19
|
+
- `reshuffle` - Draw new rollout buckets for every rollout and split of this flag (never during an experiment)
|
|
17
20
|
- `set` - Set a flag value in one environment
|
|
18
21
|
- `clear` - Clear a flag override so the environment inherits the default
|
|
19
22
|
- `disable` - Kill switch: serve the default in this environment, ignoring any override
|
|
@@ -40,6 +43,8 @@ List feature flags
|
|
|
40
43
|
|
|
41
44
|
Show a feature flag and its per-environment values
|
|
42
45
|
|
|
46
|
+
**Usage:** `flags get <key> [options]`
|
|
47
|
+
|
|
43
48
|
**Options:**
|
|
44
49
|
|
|
45
50
|
| Flag | Description | Default | Required |
|
|
@@ -51,6 +56,8 @@ Show a feature flag and its per-environment values
|
|
|
51
56
|
|
|
52
57
|
Create a feature flag
|
|
53
58
|
|
|
59
|
+
**Usage:** `flags create <key> [options]`
|
|
60
|
+
|
|
54
61
|
**Options:**
|
|
55
62
|
|
|
56
63
|
| Flag | Description | Default | Required |
|
|
@@ -66,6 +73,8 @@ Create a feature flag
|
|
|
66
73
|
|
|
67
74
|
Update a flag definition (default value, description, visibility)
|
|
68
75
|
|
|
76
|
+
**Usage:** `flags update <key> [options]`
|
|
77
|
+
|
|
69
78
|
**Options:**
|
|
70
79
|
|
|
71
80
|
| Flag | Description | Default | Required |
|
|
@@ -75,12 +84,96 @@ Update a flag definition (default value, description, visibility)
|
|
|
75
84
|
| `--description <text>` | New description | - | No |
|
|
76
85
|
| `--client-visible` | Expose this flag to browsers | - | No |
|
|
77
86
|
| `--no-client-visible` | Make this flag server-only | - | No |
|
|
87
|
+
| `--variants <json\|@file>` | Replace the variants, as a JSON array of {key, value, description?} (or @path to a file) | - | No |
|
|
88
|
+
| `--exposure-rate <percent>` | Share of visitors (0-100) whose browser records a flag_exposure event; 0 turns it off | - | No |
|
|
78
89
|
| `--json` | Output in JSON format | - | No |
|
|
79
90
|
|
|
91
|
+
### `flags rules`
|
|
92
|
+
|
|
93
|
+
Targeting rules: serve a different value to some users, or to a percentage of them
|
|
94
|
+
|
|
95
|
+
**Subcommands:**
|
|
96
|
+
|
|
97
|
+
- `list` (`ls`) - Show the ordered rules of a flag in one environment
|
|
98
|
+
- `set` - Replace the rules of a flag in one environment, from a JSON array (or @path to a file, or - for stdin)
|
|
99
|
+
- `clear` - Remove every rule of a flag in one environment
|
|
100
|
+
|
|
101
|
+
#### `flags rules list` (alias: `ls`)
|
|
102
|
+
|
|
103
|
+
Show the ordered rules of a flag in one environment
|
|
104
|
+
|
|
105
|
+
**Usage:** `flags rules list <key> [options]`
|
|
106
|
+
|
|
107
|
+
**Options:**
|
|
108
|
+
|
|
109
|
+
| Flag | Description | Default | Required |
|
|
110
|
+
|------|-------------|---------|----------|
|
|
111
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
112
|
+
| `-e, --environment <name>` | Environment name or slug | - | Yes |
|
|
113
|
+
| `--json` | Output the rules as JSON (the format `rules set` reads) | - | No |
|
|
114
|
+
|
|
115
|
+
#### `flags rules set`
|
|
116
|
+
|
|
117
|
+
Replace the rules of a flag in one environment, from a JSON array (or @path to a file, or - for stdin)
|
|
118
|
+
|
|
119
|
+
**Usage:** `flags rules set <key> <rules> [options]`
|
|
120
|
+
|
|
121
|
+
**Options:**
|
|
122
|
+
|
|
123
|
+
| Flag | Description | Default | Required |
|
|
124
|
+
|------|-------------|---------|----------|
|
|
125
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
126
|
+
| `-e, --environment <name>` | Environment name or slug | - | Yes |
|
|
127
|
+
| `--json` | Output in JSON format | - | No |
|
|
128
|
+
|
|
129
|
+
#### `flags rules clear`
|
|
130
|
+
|
|
131
|
+
Remove every rule of a flag in one environment
|
|
132
|
+
|
|
133
|
+
**Usage:** `flags rules clear <key> [options]`
|
|
134
|
+
|
|
135
|
+
**Options:**
|
|
136
|
+
|
|
137
|
+
| Flag | Description | Default | Required |
|
|
138
|
+
|------|-------------|---------|----------|
|
|
139
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
140
|
+
| `-e, --environment <name>` | Environment name or slug | - | Yes |
|
|
141
|
+
|
|
142
|
+
### `flags evaluate` (alias: `eval`)
|
|
143
|
+
|
|
144
|
+
Show what a user would get, and why, in one environment
|
|
145
|
+
|
|
146
|
+
**Usage:** `flags evaluate <key> [options]`
|
|
147
|
+
|
|
148
|
+
**Options:**
|
|
149
|
+
|
|
150
|
+
| Flag | Description | Default | Required |
|
|
151
|
+
|------|-------------|---------|----------|
|
|
152
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
153
|
+
| `-e, --environment <name>` | Environment name or slug | - | Yes |
|
|
154
|
+
| `-s, --subject <key>` | Bucketing subject, e.g. a user id | - | No |
|
|
155
|
+
| `-a, --attr <name=value>` | Targeting attribute (repeatable) | `` | No |
|
|
156
|
+
| `--json` | Output in JSON format | - | No |
|
|
157
|
+
|
|
158
|
+
### `flags reshuffle`
|
|
159
|
+
|
|
160
|
+
Draw new rollout buckets for every rollout and split of this flag (never during an experiment)
|
|
161
|
+
|
|
162
|
+
**Usage:** `flags reshuffle <key> [options]`
|
|
163
|
+
|
|
164
|
+
**Options:**
|
|
165
|
+
|
|
166
|
+
| Flag | Description | Default | Required |
|
|
167
|
+
|------|-------------|---------|----------|
|
|
168
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
169
|
+
| `-y, --yes` | Skip the confirmation | - | No |
|
|
170
|
+
|
|
80
171
|
### `flags set`
|
|
81
172
|
|
|
82
173
|
Set a flag value in one environment
|
|
83
174
|
|
|
175
|
+
**Usage:** `flags set <key> <value> [options]`
|
|
176
|
+
|
|
84
177
|
**Options:**
|
|
85
178
|
|
|
86
179
|
| Flag | Description | Default | Required |
|
|
@@ -93,6 +186,8 @@ Set a flag value in one environment
|
|
|
93
186
|
|
|
94
187
|
Clear a flag override so the environment inherits the default
|
|
95
188
|
|
|
189
|
+
**Usage:** `flags clear <key> [options]`
|
|
190
|
+
|
|
96
191
|
**Options:**
|
|
97
192
|
|
|
98
193
|
| Flag | Description | Default | Required |
|
|
@@ -104,6 +199,8 @@ Clear a flag override so the environment inherits the default
|
|
|
104
199
|
|
|
105
200
|
Kill switch: serve the default in this environment, ignoring any override
|
|
106
201
|
|
|
202
|
+
**Usage:** `flags disable <key> [options]`
|
|
203
|
+
|
|
107
204
|
**Options:**
|
|
108
205
|
|
|
109
206
|
| Flag | Description | Default | Required |
|
|
@@ -115,6 +212,8 @@ Kill switch: serve the default in this environment, ignoring any override
|
|
|
115
212
|
|
|
116
213
|
Re-enable a flag in this environment after a kill switch
|
|
117
214
|
|
|
215
|
+
**Usage:** `flags enable <key> [options]`
|
|
216
|
+
|
|
118
217
|
**Options:**
|
|
119
218
|
|
|
120
219
|
| Flag | Description | Default | Required |
|
|
@@ -126,6 +225,8 @@ Re-enable a flag in this environment after a kill switch
|
|
|
126
225
|
|
|
127
226
|
Restore an archived flag
|
|
128
227
|
|
|
228
|
+
**Usage:** `flags restore <key> [options]`
|
|
229
|
+
|
|
129
230
|
**Options:**
|
|
130
231
|
|
|
131
232
|
| Flag | Description | Default | Required |
|
|
@@ -136,6 +237,8 @@ Restore an archived flag
|
|
|
136
237
|
|
|
137
238
|
Archive a flag (callers fall back to their own default)
|
|
138
239
|
|
|
240
|
+
**Usage:** `flags archive <key> [options]`
|
|
241
|
+
|
|
139
242
|
**Options:**
|
|
140
243
|
|
|
141
244
|
| Flag | Description | Default | Required |
|
|
@@ -45,6 +45,10 @@ Create a new incident
|
|
|
45
45
|
| `-t, --title <title>` | Incident title | - | No |
|
|
46
46
|
| `-d, --description <description>` | Incident description | - | No |
|
|
47
47
|
| `-s, --severity <severity>` | Severity level (critical, major, minor) | - | No |
|
|
48
|
+
| `--public-title <title>` | Headline shown on published status pages (the title stays internal) | - | No |
|
|
49
|
+
| `-m, --message <message>` | First update, written by you instead of the automatic one | - | No |
|
|
50
|
+
| `--public` | Post the first update to published status pages (needs --message) | - | No |
|
|
51
|
+
| `--monitor-id <id>` | Monitor (status page component) the incident affects; omit for the whole project | - | No |
|
|
48
52
|
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
49
53
|
|
|
50
54
|
### `incidents show`
|
|
@@ -41,14 +41,20 @@ Add a new instance
|
|
|
41
41
|
|
|
42
42
|
Remove an instance
|
|
43
43
|
|
|
44
|
+
**Usage:** `instances remove <name>`
|
|
45
|
+
|
|
44
46
|
### `instances switch` (alias: `use`)
|
|
45
47
|
|
|
46
48
|
Switch to a different instance
|
|
47
49
|
|
|
50
|
+
**Usage:** `instances switch <name>`
|
|
51
|
+
|
|
48
52
|
### `instances show`
|
|
49
53
|
|
|
50
54
|
Show instance details (or current instance)
|
|
51
55
|
|
|
56
|
+
**Usage:** `instances show [name] [options]`
|
|
57
|
+
|
|
52
58
|
**Options:**
|
|
53
59
|
|
|
54
60
|
| Flag | Description | Default | Required |
|
|
@@ -32,6 +32,8 @@ List your recent template creations and imports, newest first
|
|
|
32
32
|
|
|
33
33
|
Show every step of a template creation or import
|
|
34
34
|
|
|
35
|
+
**Usage:** `instantiations show <id> [options]`
|
|
36
|
+
|
|
35
37
|
**Options:**
|
|
36
38
|
|
|
37
39
|
| Flag | Description | Default | Required |
|
|
@@ -44,6 +46,8 @@ Show every step of a template creation or import
|
|
|
44
46
|
|
|
45
47
|
Continue from the step that failed; finished steps are not repeated
|
|
46
48
|
|
|
49
|
+
**Usage:** `instantiations retry <id> [options]`
|
|
50
|
+
|
|
47
51
|
**Options:**
|
|
48
52
|
|
|
49
53
|
| Flag | Description | Default | Required |
|
|
@@ -8,6 +8,8 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
8
8
|
|
|
9
9
|
Authenticate with a Temps server. Opens the browser for interactive logins; use --api-key for headless / CI.
|
|
10
10
|
|
|
11
|
+
**Usage:** `login [url] [options]`
|
|
12
|
+
|
|
11
13
|
**Options:**
|
|
12
14
|
|
|
13
15
|
| Flag | Description | Default | Required |
|
|
@@ -15,3 +17,6 @@ Authenticate with a Temps server. Opens the browser for interactive logins; use
|
|
|
15
17
|
| `-k, --api-key <key>` | Use a pre-minted API key (Settings → API Keys) instead of opening the browser. Required for headless / CI. | - | No |
|
|
16
18
|
| `--context <name>` | Save the credentials under this context name (defaults to URL host) | - | No |
|
|
17
19
|
| `--debug` | Print every request/response (URL, status, headers, raw body) to stderr. Also enabled via TEMPS_DEBUG=1. | - | No |
|
|
20
|
+
| `--api-key-file <path>` | Read the API key from a file (- reads stdin) instead of --api-key | - | No |
|
|
21
|
+
| `--api-key-stdin` | Read the API key from stdin instead of --api-key | - | No |
|
|
22
|
+
| `--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 |
|
|
@@ -16,6 +16,8 @@ Search collected logs across every project and database you can access
|
|
|
16
16
|
- `histogram` - Line counts bucketed over time, optionally split by a label or attribute (requires the ClickHouse line index)
|
|
17
17
|
- `aggregate` - Group-by aggregation over lines (requires the ClickHouse line index)
|
|
18
18
|
- `capabilities` - Whether container logs are being collected, and whether attribute facets, histograms and aggregates are available
|
|
19
|
+
- `saved` - Saved log searches: named filters you can reopen, chart on a dashboard and alert on
|
|
20
|
+
- `keys` - Ingest keys for POST /api/logs/ingest (newline-delimited JSON from Vector, Fluent Bit or any HTTP client)
|
|
19
21
|
|
|
20
22
|
### `logs search`
|
|
21
23
|
|
|
@@ -33,8 +35,8 @@ Search log lines across projects (newest first)
|
|
|
33
35
|
| `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
|
|
34
36
|
| `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
|
|
35
37
|
| `--source <kind>` | collected (default), application, or service | - | No |
|
|
36
|
-
| `--project <id
|
|
37
|
-
| `--external-service <id
|
|
38
|
+
| `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
|
|
39
|
+
| `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
|
|
38
40
|
| `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
|
|
39
41
|
| `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
|
|
40
42
|
| `--env <name>` | Environment, repeatable | `` | No |
|
|
@@ -61,8 +63,8 @@ Distinct values and counts per field for the same filter scope
|
|
|
61
63
|
| `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
|
|
62
64
|
| `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
|
|
63
65
|
| `--source <kind>` | collected (default), application, or service | - | No |
|
|
64
|
-
| `--project <id
|
|
65
|
-
| `--external-service <id
|
|
66
|
+
| `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
|
|
67
|
+
| `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
|
|
66
68
|
| `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
|
|
67
69
|
| `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
|
|
68
70
|
| `--env <name>` | Environment, repeatable | `` | No |
|
|
@@ -87,8 +89,8 @@ Attribute keys observed in the window, most common first (requires the ClickHous
|
|
|
87
89
|
| `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
|
|
88
90
|
| `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
|
|
89
91
|
| `--source <kind>` | collected (default), application, or service | - | No |
|
|
90
|
-
| `--project <id
|
|
91
|
-
| `--external-service <id
|
|
92
|
+
| `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
|
|
93
|
+
| `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
|
|
92
94
|
| `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
|
|
93
95
|
| `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
|
|
94
96
|
| `--env <name>` | Environment, repeatable | `` | No |
|
|
@@ -115,8 +117,8 @@ Line counts bucketed over time, optionally split by a label or attribute (requir
|
|
|
115
117
|
| `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
|
|
116
118
|
| `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
|
|
117
119
|
| `--source <kind>` | collected (default), application, or service | - | No |
|
|
118
|
-
| `--project <id
|
|
119
|
-
| `--external-service <id
|
|
120
|
+
| `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
|
|
121
|
+
| `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
|
|
120
122
|
| `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
|
|
121
123
|
| `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
|
|
122
124
|
| `--env <name>` | Environment, repeatable | `` | No |
|
|
@@ -143,8 +145,8 @@ Group-by aggregation over lines (requires the ClickHouse line index)
|
|
|
143
145
|
| `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
|
|
144
146
|
| `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
|
|
145
147
|
| `--source <kind>` | collected (default), application, or service | - | No |
|
|
146
|
-
| `--project <id
|
|
147
|
-
| `--external-service <id
|
|
148
|
+
| `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
|
|
149
|
+
| `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
|
|
148
150
|
| `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
|
|
149
151
|
| `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
|
|
150
152
|
| `--env <name>` | Environment, repeatable | `` | No |
|
|
@@ -165,3 +167,124 @@ Whether container logs are being collected, and whether attribute facets, histog
|
|
|
165
167
|
| Flag | Description | Default | Required |
|
|
166
168
|
|------|-------------|---------|----------|
|
|
167
169
|
| `--json` | Output in JSON format | - | No |
|
|
170
|
+
|
|
171
|
+
### `logs saved`
|
|
172
|
+
|
|
173
|
+
Saved log searches: named filters you can reopen, chart on a dashboard and alert on
|
|
174
|
+
|
|
175
|
+
**Subcommands:**
|
|
176
|
+
|
|
177
|
+
- `list` - List the saved searches of a project, pinned first
|
|
178
|
+
- `create` - Save a log search
|
|
179
|
+
- `delete` - Delete a saved search (refused while an alert rule counts it)
|
|
180
|
+
- `series` - Chart a saved search over time: matching lines per bucket, or a numeric field
|
|
181
|
+
|
|
182
|
+
#### `logs saved list`
|
|
183
|
+
|
|
184
|
+
List the saved searches of a project, pinned first
|
|
185
|
+
|
|
186
|
+
**Options:**
|
|
187
|
+
|
|
188
|
+
| Flag | Description | Default | Required |
|
|
189
|
+
|------|-------------|---------|----------|
|
|
190
|
+
| `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
|
|
191
|
+
| `--json` | Output in JSON format | - | No |
|
|
192
|
+
|
|
193
|
+
#### `logs saved create`
|
|
194
|
+
|
|
195
|
+
Save a log search
|
|
196
|
+
|
|
197
|
+
**Options:**
|
|
198
|
+
|
|
199
|
+
| Flag | Description | Default | Required |
|
|
200
|
+
|------|-------------|---------|----------|
|
|
201
|
+
| `--name <name>` | Name, unique within the project | - | Yes |
|
|
202
|
+
| `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
|
|
203
|
+
| `--description <text>` | What the search is for | - | No |
|
|
204
|
+
| `--source <kind>` | collected (default), application, or service | - | No |
|
|
205
|
+
| `--level <level>` | Log level, repeatable | `` | No |
|
|
206
|
+
| `--env <name>` | Environment, repeatable | `` | No |
|
|
207
|
+
| `--service <name>` | Service label, repeatable | `` | No |
|
|
208
|
+
| `--container <id>` | Container id, repeatable | `` | No |
|
|
209
|
+
| `--node <id>` | Node id, repeatable | `` | No |
|
|
210
|
+
| `--deploy <id>` | Deployment id | - | No |
|
|
211
|
+
| `--text <needle>` | Text the message must contain | - | No |
|
|
212
|
+
| `--attr <predicate>` | Attribute predicate, repeatable: key=value, key!=value, key^=prefix, key>n, key<n, key? | `` | No |
|
|
213
|
+
| `--time-range <range>` | Range the search opens with: 15m, 1h, 6h, 24h, 7d, 30d (default 1h) | - | No |
|
|
214
|
+
| `--pinned` | Pin it to the top of the list | - | No |
|
|
215
|
+
| `--json` | Output in JSON format | - | No |
|
|
216
|
+
|
|
217
|
+
#### `logs saved delete`
|
|
218
|
+
|
|
219
|
+
Delete a saved search (refused while an alert rule counts it)
|
|
220
|
+
|
|
221
|
+
**Usage:** `logs saved delete <id> [options]`
|
|
222
|
+
|
|
223
|
+
**Options:**
|
|
224
|
+
|
|
225
|
+
| Flag | Description | Default | Required |
|
|
226
|
+
|------|-------------|---------|----------|
|
|
227
|
+
| `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
|
|
228
|
+
|
|
229
|
+
#### `logs saved series`
|
|
230
|
+
|
|
231
|
+
Chart a saved search over time: matching lines per bucket, or a numeric field
|
|
232
|
+
|
|
233
|
+
**Usage:** `logs saved series <id> [options]`
|
|
234
|
+
|
|
235
|
+
**Options:**
|
|
236
|
+
|
|
237
|
+
| Flag | Description | Default | Required |
|
|
238
|
+
|------|-------------|---------|----------|
|
|
239
|
+
| `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
|
|
240
|
+
| `--since <duration>` | Window ending now, e.g. 30m, 6h, 1d (default 1h) | - | No |
|
|
241
|
+
| `--bucket-secs <n>` | Bucket width in seconds (default 60) | - | No |
|
|
242
|
+
| `--metric <spec>` | count (default), or avg\|sum\|max\|p50\|p95\|p99\|count_distinct:<attribute> | - | No |
|
|
243
|
+
| `--json` | Output in JSON format | - | No |
|
|
244
|
+
|
|
245
|
+
### `logs keys`
|
|
246
|
+
|
|
247
|
+
Ingest keys for POST /api/logs/ingest (newline-delimited JSON from Vector, Fluent Bit or any HTTP client)
|
|
248
|
+
|
|
249
|
+
**Subcommands:**
|
|
250
|
+
|
|
251
|
+
- `list` - List the ingest keys of a project
|
|
252
|
+
- `create` - Create an ingest key; the key is printed once
|
|
253
|
+
- `revoke` - Revoke an ingest key; collectors using it are refused
|
|
254
|
+
|
|
255
|
+
#### `logs keys list`
|
|
256
|
+
|
|
257
|
+
List the ingest keys of a project
|
|
258
|
+
|
|
259
|
+
**Options:**
|
|
260
|
+
|
|
261
|
+
| Flag | Description | Default | Required |
|
|
262
|
+
|------|-------------|---------|----------|
|
|
263
|
+
| `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
|
|
264
|
+
| `--json` | Output in JSON format | - | No |
|
|
265
|
+
|
|
266
|
+
#### `logs keys create`
|
|
267
|
+
|
|
268
|
+
Create an ingest key; the key is printed once
|
|
269
|
+
|
|
270
|
+
**Options:**
|
|
271
|
+
|
|
272
|
+
| Flag | Description | Default | Required |
|
|
273
|
+
|------|-------------|---------|----------|
|
|
274
|
+
| `--name <name>` | Name, e.g. the host or collector | - | Yes |
|
|
275
|
+
| `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
|
|
276
|
+
| `--service <name>` | Service label for lines that name none | - | No |
|
|
277
|
+
| `--environment <id>` | Pin lines to an environment id | - | No |
|
|
278
|
+
| `--json` | Output in JSON format | - | No |
|
|
279
|
+
|
|
280
|
+
#### `logs keys revoke`
|
|
281
|
+
|
|
282
|
+
Revoke an ingest key; collectors using it are refused
|
|
283
|
+
|
|
284
|
+
**Usage:** `logs keys revoke <id> [options]`
|
|
285
|
+
|
|
286
|
+
**Options:**
|
|
287
|
+
|
|
288
|
+
| Flag | Description | Default | Required |
|
|
289
|
+
|------|-------------|---------|----------|
|
|
290
|
+
| `--project <slug\|id>` | Project (defaults to the linked project) | - | 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>` |
|
|
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,9 @@ 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
|
+
| `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
|
|
46
|
+
| `--token-stdin` | Read the source API token or admin password from stdin instead of --token | - | No |
|
|
47
|
+
| `--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
48
|
|
|
46
49
|
### `migrate plan`
|
|
47
50
|
|
|
@@ -58,6 +61,9 @@ Discover a source, pick a workload, and show the import plan
|
|
|
58
61
|
| `--username <name>` | Admin username (portainer source, defaults to "admin") | - | No |
|
|
59
62
|
| `--kubeconfig <path>` | Path to a kubeconfig file (kubernetes source) | - | No |
|
|
60
63
|
| `--deploy-yml <path>` | Path to config/deploy.yml (kamal source) | - | No |
|
|
64
|
+
| `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
|
|
65
|
+
| `--token-stdin` | Read the source API token or admin password from stdin instead of --token | - | No |
|
|
66
|
+
| `--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
67
|
|
|
62
68
|
### `migrate run`
|
|
63
69
|
|
|
@@ -80,6 +86,9 @@ Guided end-to-end migration: discover, plan, review, and execute
|
|
|
80
86
|
| `--branch <branch>` | Branch to deploy | `main` | No |
|
|
81
87
|
| `--dry-run` | Plan only — do not create or deploy anything | - | No |
|
|
82
88
|
| `-y, --yes` | Skip the confirmation prompt (for automation) | - | No |
|
|
89
|
+
| `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
|
|
90
|
+
| `--token-stdin` | Read the source API token or admin password from stdin instead of --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 |
|
|
83
92
|
|
|
84
93
|
### `migrate execute`
|
|
85
94
|
|
|
@@ -12,6 +12,9 @@ Manage uptime monitors for status pages
|
|
|
12
12
|
|
|
13
13
|
- `list` (`ls`) - List all monitors for a project
|
|
14
14
|
- `create` (`add`) - Create a new monitor for a project
|
|
15
|
+
- `add-target` - Monitor a URL, port, TLS certificate or DNS record outside Temps
|
|
16
|
+
- `update-target` - Change a monitor of a target outside Temps; omitted flags keep their value
|
|
17
|
+
- `locations` - List where monitors checked from worker nodes are checked from
|
|
15
18
|
- `show` - Show monitor details and current status
|
|
16
19
|
- `remove` (`rm`) - Delete a monitor
|
|
17
20
|
- `status` - Get current status — all monitors for a project, or a single monitor by ID
|
|
@@ -44,6 +47,73 @@ Create a new monitor for a project
|
|
|
44
47
|
| `--environment-id <id>` | Environment ID (default: 0 for production) | - | No |
|
|
45
48
|
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
46
49
|
|
|
50
|
+
### `monitors add-target`
|
|
51
|
+
|
|
52
|
+
Monitor a URL, port, TLS certificate or DNS record outside Temps
|
|
53
|
+
|
|
54
|
+
**Options:**
|
|
55
|
+
|
|
56
|
+
| Flag | Description | Default | Required |
|
|
57
|
+
|------|-------------|---------|----------|
|
|
58
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
59
|
+
| `--kind <kind>` | http, tcp, tls or dns | - | Yes |
|
|
60
|
+
| `--target <target>` | URL (http), host:port (tcp, tls) or host name (dns) | - | Yes |
|
|
61
|
+
| `-n, --name <name>` | Monitor name | - | Yes |
|
|
62
|
+
| `-i, --interval <seconds>` | Check interval in seconds (default 60, at least 30) | - | No |
|
|
63
|
+
| `--keyword-absent` | Fail when --keyword is present instead of missing | - | No |
|
|
64
|
+
| `--from-nodes` | Also check from online worker nodes; down only when most locations agree | - | No |
|
|
65
|
+
| `--method <method>` | HTTP method (default GET) | - | No |
|
|
66
|
+
| `--expect-status <codes>` | Codes or classes counted as up, e.g. 200,204 or 2xx (default 2xx or 3xx) | - | No |
|
|
67
|
+
| `--keyword <text>` | Text the response body must contain (first 256 KiB; never stored) | - | No |
|
|
68
|
+
| `--degraded-after-ms <ms>` | Slower than this is degraded (http, tcp) | - | No |
|
|
69
|
+
| `--warn-days <days>` | Degraded when the certificate expires within this many days (tls, default 14) | - | No |
|
|
70
|
+
| `--record <type>` | DNS record type: A, AAAA, CNAME, MX, TXT, NS (default A) | - | No |
|
|
71
|
+
| `--expect <values>` | Comma-separated DNS values; any match is up (default: any answer) | - | No |
|
|
72
|
+
| `--header-file <path>` | File of "Name: value" request headers; stored encrypted, never shown | - | No |
|
|
73
|
+
| `--body-file <path>` | File with the request body; stored encrypted | - | No |
|
|
74
|
+
| `--json` | Output in JSON format | - | No |
|
|
75
|
+
|
|
76
|
+
### `monitors update-target`
|
|
77
|
+
|
|
78
|
+
Change a monitor of a target outside Temps; omitted flags keep their value
|
|
79
|
+
|
|
80
|
+
**Options:**
|
|
81
|
+
|
|
82
|
+
| Flag | Description | Default | Required |
|
|
83
|
+
|------|-------------|---------|----------|
|
|
84
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
85
|
+
| `--monitor-id <id>` | Monitor ID | - | Yes |
|
|
86
|
+
| `--kind <kind>` | Change the check kind (pass the check flags for it) | - | No |
|
|
87
|
+
| `--target <target>` | New target | - | No |
|
|
88
|
+
| `-n, --name <name>` | New name | - | No |
|
|
89
|
+
| `-i, --interval <seconds>` | Check interval in seconds | - | No |
|
|
90
|
+
| `--keyword-absent` | Fail when --keyword is present instead of missing | - | No |
|
|
91
|
+
| `--pause` | Stop checking | - | No |
|
|
92
|
+
| `--resume` | Start checking again | - | No |
|
|
93
|
+
| `--from-nodes` | Also check from online worker nodes | - | No |
|
|
94
|
+
| `--no-from-nodes` | Check from this server only | - | No |
|
|
95
|
+
| `--method <method>` | HTTP method (default GET) | - | No |
|
|
96
|
+
| `--expect-status <codes>` | Codes or classes counted as up, e.g. 200,204 or 2xx (default 2xx or 3xx) | - | No |
|
|
97
|
+
| `--keyword <text>` | Text the response body must contain (first 256 KiB; never stored) | - | No |
|
|
98
|
+
| `--degraded-after-ms <ms>` | Slower than this is degraded (http, tcp) | - | No |
|
|
99
|
+
| `--warn-days <days>` | Degraded when the certificate expires within this many days (tls, default 14) | - | No |
|
|
100
|
+
| `--record <type>` | DNS record type: A, AAAA, CNAME, MX, TXT, NS (default A) | - | No |
|
|
101
|
+
| `--expect <values>` | Comma-separated DNS values; any match is up (default: any answer) | - | No |
|
|
102
|
+
| `--header-file <path>` | File of "Name: value" request headers; stored encrypted, never shown | - | No |
|
|
103
|
+
| `--body-file <path>` | File with the request body; stored encrypted | - | No |
|
|
104
|
+
| `--json` | Output in JSON format | - | No |
|
|
105
|
+
|
|
106
|
+
### `monitors locations`
|
|
107
|
+
|
|
108
|
+
List where monitors checked from worker nodes are checked from
|
|
109
|
+
|
|
110
|
+
**Options:**
|
|
111
|
+
|
|
112
|
+
| Flag | Description | Default | Required |
|
|
113
|
+
|------|-------------|---------|----------|
|
|
114
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
115
|
+
| `--json` | Output in JSON format | - | No |
|
|
116
|
+
|
|
47
117
|
### `monitors show`
|
|
48
118
|
|
|
49
119
|
Show monitor details and current status
|