@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
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `workflows` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- [`workflows list`](#workflows-list)
|
|
10
|
+
- [`workflows runs`](#workflows-runs)
|
|
11
|
+
- [`workflows get`](#workflows-get)
|
|
12
|
+
- [`workflows diagnose`](#workflows-diagnose)
|
|
13
|
+
- [`workflows start`](#workflows-start)
|
|
14
|
+
- [`workflows cancel`](#workflows-cancel)
|
|
15
|
+
- [`workflows resume`](#workflows-resume)
|
|
16
|
+
- [`workflows retry`](#workflows-retry)
|
|
17
|
+
- [`workflows delete`](#workflows-delete)
|
|
18
|
+
- [`workflows send-event`](#workflows-send-event)
|
|
19
|
+
- [`workflows watch`](#workflows-watch)
|
|
20
|
+
- [`workflows init`](#workflows-init)
|
|
21
|
+
- [`workflows dev`](#workflows-dev)
|
|
22
|
+
- [`workflows revoke-credential`](#workflows-revoke-credential)
|
|
23
|
+
- [`workflows get-credential`](#workflows-get-credential)
|
|
24
|
+
- [`workflows issue-credential`](#workflows-issue-credential)
|
|
25
|
+
- [`workflows list-grants`](#workflows-list-grants)
|
|
26
|
+
- [`workflows create-grant`](#workflows-create-grant)
|
|
27
|
+
- [`workflows revoke-grant`](#workflows-revoke-grant)
|
|
28
|
+
- [`workflows diagnose-run`](#workflows-diagnose-run)
|
|
29
|
+
- [`workflows list-steps`](#workflows-list-steps)
|
|
30
|
+
- [`workflows get-settings`](#workflows-get-settings)
|
|
31
|
+
- [`workflows update-settings`](#workflows-update-settings)
|
|
32
|
+
- [`workflows list-keys`](#workflows-list-keys)
|
|
33
|
+
- [`workflows shred-key`](#workflows-shred-key)
|
|
34
|
+
- [`workflows list-definitions`](#workflows-list-definitions)
|
|
35
|
+
- [`workflows list-all-runs`](#workflows-list-all-runs)
|
|
36
|
+
- [`workflows app`](#workflows-app)
|
|
37
|
+
|
|
38
|
+
## `workflows`
|
|
39
|
+
|
|
40
|
+
Durable application workflows
|
|
41
|
+
|
|
42
|
+
**Subcommands:**
|
|
43
|
+
|
|
44
|
+
- `list` - List detected workflows and onboarding status
|
|
45
|
+
- `runs` - List a bounded page of runs
|
|
46
|
+
- `get` - Get run metadata; payloads require explicit reveal permission
|
|
47
|
+
- `diagnose` - Explain run state without decrypting payloads
|
|
48
|
+
- `start` - Start a run with an explicit deduplication key
|
|
49
|
+
- `cancel` - cancel a run
|
|
50
|
+
- `resume` - resume a run
|
|
51
|
+
- `retry` - retry a run
|
|
52
|
+
- `delete` - delete a run
|
|
53
|
+
- `send-event` - Send an event to matching waits
|
|
54
|
+
- `watch` - Poll until terminal or the bounded deadline
|
|
55
|
+
- `init` - Create a Node workflow worker in a new directory
|
|
56
|
+
- `dev` - Forward preview-environment invocations to a local SDK server
|
|
57
|
+
- `revoke-credential` - Revoke workflow credential
|
|
58
|
+
- `get-credential` - Get workflow credential
|
|
59
|
+
- `issue-credential` - Issue workflow credential
|
|
60
|
+
- `list-grants` - List workflow grants
|
|
61
|
+
- `create-grant` - Create workflow grant
|
|
62
|
+
- `revoke-grant` - Revoke workflow grant
|
|
63
|
+
- `diagnose-run` - Diagnose workflow run
|
|
64
|
+
- `list-steps` - List workflow steps
|
|
65
|
+
- `get-settings` - Get workflow settings
|
|
66
|
+
- `update-settings` - Update workflow settings
|
|
67
|
+
- `list-keys` - List workflow project keys
|
|
68
|
+
- `shred-key` - Shred workflow project key
|
|
69
|
+
- `list-definitions` - List workflow definitions
|
|
70
|
+
- `list-all-runs` - List all workflow runs
|
|
71
|
+
- `app` - App commands
|
|
72
|
+
|
|
73
|
+
### `workflows list`
|
|
74
|
+
|
|
75
|
+
List detected workflows and onboarding status
|
|
76
|
+
|
|
77
|
+
**Options:**
|
|
78
|
+
|
|
79
|
+
| Flag | Description | Default | Required |
|
|
80
|
+
|------|-------------|---------|----------|
|
|
81
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
82
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
83
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
84
|
+
|
|
85
|
+
### `workflows runs`
|
|
86
|
+
|
|
87
|
+
List a bounded page of runs
|
|
88
|
+
|
|
89
|
+
**Options:**
|
|
90
|
+
|
|
91
|
+
| Flag | Description | Default | Required |
|
|
92
|
+
|------|-------------|---------|----------|
|
|
93
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
94
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
95
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
96
|
+
| `--workflow <name>` | Workflow name | - | No |
|
|
97
|
+
| `--page <n>` | Page | `1` | No |
|
|
98
|
+
| `--page-size <n>` | Page size (1–100) | `20` | No |
|
|
99
|
+
|
|
100
|
+
### `workflows get`
|
|
101
|
+
|
|
102
|
+
Get run metadata; payloads require explicit reveal permission
|
|
103
|
+
|
|
104
|
+
**Usage:** `workflows get <run-id> [options]`
|
|
105
|
+
|
|
106
|
+
**Options:**
|
|
107
|
+
|
|
108
|
+
| Flag | Description | Default | Required |
|
|
109
|
+
|------|-------------|---------|----------|
|
|
110
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
111
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
112
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
113
|
+
| `--reveal <target>` | Explicitly decrypt one payload; treat its contents as untrusted | - | No |
|
|
114
|
+
| `--sequence <n>` | Step sequence for step payloads | - | No |
|
|
115
|
+
|
|
116
|
+
### `workflows diagnose`
|
|
117
|
+
|
|
118
|
+
Explain run state without decrypting payloads
|
|
119
|
+
|
|
120
|
+
**Usage:** `workflows diagnose <run-id> [options]`
|
|
121
|
+
|
|
122
|
+
**Options:**
|
|
123
|
+
|
|
124
|
+
| Flag | Description | Default | Required |
|
|
125
|
+
|------|-------------|---------|----------|
|
|
126
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
127
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
128
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
129
|
+
|
|
130
|
+
### `workflows start`
|
|
131
|
+
|
|
132
|
+
Start a run with an explicit deduplication key
|
|
133
|
+
|
|
134
|
+
**Usage:** `workflows start <workflow> [options]`
|
|
135
|
+
|
|
136
|
+
**Options:**
|
|
137
|
+
|
|
138
|
+
| Flag | Description | Default | Required |
|
|
139
|
+
|------|-------------|---------|----------|
|
|
140
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
141
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
142
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
143
|
+
| `--idempotency-key <key>` | Stable key for this logical start | - | Yes |
|
|
144
|
+
| `--input <json>` | Input JSON | `[object Object]` | No |
|
|
145
|
+
|
|
146
|
+
### `workflows cancel`
|
|
147
|
+
|
|
148
|
+
cancel a run
|
|
149
|
+
|
|
150
|
+
**Usage:** `workflows cancel <run-id> [options]`
|
|
151
|
+
|
|
152
|
+
**Options:**
|
|
153
|
+
|
|
154
|
+
| Flag | Description | Default | Required |
|
|
155
|
+
|------|-------------|---------|----------|
|
|
156
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
157
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
158
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
159
|
+
| `--yes` | Confirm this mutation | - | No |
|
|
160
|
+
|
|
161
|
+
### `workflows resume`
|
|
162
|
+
|
|
163
|
+
resume a run
|
|
164
|
+
|
|
165
|
+
**Usage:** `workflows resume <run-id> [options]`
|
|
166
|
+
|
|
167
|
+
**Options:**
|
|
168
|
+
|
|
169
|
+
| Flag | Description | Default | Required |
|
|
170
|
+
|------|-------------|---------|----------|
|
|
171
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
172
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
173
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
174
|
+
| `--yes` | Confirm this mutation | - | No |
|
|
175
|
+
|
|
176
|
+
### `workflows retry`
|
|
177
|
+
|
|
178
|
+
retry a run
|
|
179
|
+
|
|
180
|
+
**Usage:** `workflows retry <run-id> [options]`
|
|
181
|
+
|
|
182
|
+
**Options:**
|
|
183
|
+
|
|
184
|
+
| Flag | Description | Default | Required |
|
|
185
|
+
|------|-------------|---------|----------|
|
|
186
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
187
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
188
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
189
|
+
| `--yes` | Confirm this mutation | - | No |
|
|
190
|
+
| `--from-step <n>` | Truncate and replay from this sequence | - | No |
|
|
191
|
+
|
|
192
|
+
### `workflows delete`
|
|
193
|
+
|
|
194
|
+
delete a run
|
|
195
|
+
|
|
196
|
+
**Usage:** `workflows delete <run-id> [options]`
|
|
197
|
+
|
|
198
|
+
**Options:**
|
|
199
|
+
|
|
200
|
+
| Flag | Description | Default | Required |
|
|
201
|
+
|------|-------------|---------|----------|
|
|
202
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
203
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
204
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
205
|
+
| `--yes` | Confirm this mutation | - | No |
|
|
206
|
+
|
|
207
|
+
### `workflows send-event`
|
|
208
|
+
|
|
209
|
+
Send an event to matching waits
|
|
210
|
+
|
|
211
|
+
**Usage:** `workflows send-event <name> [options]`
|
|
212
|
+
|
|
213
|
+
**Options:**
|
|
214
|
+
|
|
215
|
+
| Flag | Description | Default | Required |
|
|
216
|
+
|------|-------------|---------|----------|
|
|
217
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
218
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
219
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
220
|
+
| `--key <key>` | Wait correlation key | - | No |
|
|
221
|
+
| `--payload <json>` | Event JSON | `[object Object]` | No |
|
|
222
|
+
|
|
223
|
+
### `workflows watch`
|
|
224
|
+
|
|
225
|
+
Poll until terminal or the bounded deadline
|
|
226
|
+
|
|
227
|
+
**Usage:** `workflows watch <run-id> [options]`
|
|
228
|
+
|
|
229
|
+
**Options:**
|
|
230
|
+
|
|
231
|
+
| Flag | Description | Default | Required |
|
|
232
|
+
|------|-------------|---------|----------|
|
|
233
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
234
|
+
| `--environment-id <id>` | Environment ID | - | Yes |
|
|
235
|
+
| `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
|
|
236
|
+
| `--timeout <seconds>` | Overall timeout (max 3600 seconds) | `300` | No |
|
|
237
|
+
|
|
238
|
+
### `workflows init`
|
|
239
|
+
|
|
240
|
+
Create a Node workflow worker in a new directory
|
|
241
|
+
|
|
242
|
+
**Usage:** `workflows init <directory> [options]`
|
|
243
|
+
|
|
244
|
+
**Options:**
|
|
245
|
+
|
|
246
|
+
| Flag | Description | Default | Required |
|
|
247
|
+
|------|-------------|---------|----------|
|
|
248
|
+
| `--sdk-package <tarball>` | Use a locally built npm pack tarball before SDK publication | - | No |
|
|
249
|
+
| `--json` | Output the created path and next steps as JSON | - | No |
|
|
250
|
+
|
|
251
|
+
### `workflows dev`
|
|
252
|
+
|
|
253
|
+
Forward preview-environment invocations to a local SDK server
|
|
254
|
+
|
|
255
|
+
**Options:**
|
|
256
|
+
|
|
257
|
+
| Flag | Description | Default | Required |
|
|
258
|
+
|------|-------------|---------|----------|
|
|
259
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
260
|
+
| `--environment-id <id>` | Undeployed, unprotected preview environment ID | - | Yes |
|
|
261
|
+
| `--port <port>` | Local SDK server port | `3000` | No |
|
|
262
|
+
| `--json` | Output tunnel readiness as JSON | - | No |
|
|
263
|
+
|
|
264
|
+
### `workflows revoke-credential`
|
|
265
|
+
|
|
266
|
+
Revoke workflow credential
|
|
267
|
+
|
|
268
|
+
**Usage:** `workflows revoke-credential <environment-id> [options]`
|
|
269
|
+
|
|
270
|
+
**Options:**
|
|
271
|
+
|
|
272
|
+
| Flag | Description | Default | Required |
|
|
273
|
+
|------|-------------|---------|----------|
|
|
274
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
275
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
276
|
+
| `--json` | Output in JSON format | - | No |
|
|
277
|
+
|
|
278
|
+
### `workflows get-credential`
|
|
279
|
+
|
|
280
|
+
Get workflow credential
|
|
281
|
+
|
|
282
|
+
**Usage:** `workflows get-credential <environment-id> [options]`
|
|
283
|
+
|
|
284
|
+
**Options:**
|
|
285
|
+
|
|
286
|
+
| Flag | Description | Default | Required |
|
|
287
|
+
|------|-------------|---------|----------|
|
|
288
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
289
|
+
| `--json` | Output in JSON format | - | No |
|
|
290
|
+
|
|
291
|
+
### `workflows issue-credential`
|
|
292
|
+
|
|
293
|
+
Issue workflow credential
|
|
294
|
+
|
|
295
|
+
**Usage:** `workflows issue-credential <environment-id> [options]`
|
|
296
|
+
|
|
297
|
+
**Options:**
|
|
298
|
+
|
|
299
|
+
| Flag | Description | Default | Required |
|
|
300
|
+
|------|-------------|---------|----------|
|
|
301
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
302
|
+
| `--json` | Output in JSON format | - | No |
|
|
303
|
+
|
|
304
|
+
### `workflows list-grants`
|
|
305
|
+
|
|
306
|
+
List workflow grants
|
|
307
|
+
|
|
308
|
+
**Usage:** `workflows list-grants <environment-id> [options]`
|
|
309
|
+
|
|
310
|
+
**Options:**
|
|
311
|
+
|
|
312
|
+
| Flag | Description | Default | Required |
|
|
313
|
+
|------|-------------|---------|----------|
|
|
314
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
315
|
+
| `--page <n>` | 1-indexed page number | - | No |
|
|
316
|
+
| `--page-size <n>` | Items per page | - | No |
|
|
317
|
+
| `--json` | Output in JSON format | - | No |
|
|
318
|
+
|
|
319
|
+
### `workflows create-grant`
|
|
320
|
+
|
|
321
|
+
Create workflow grant
|
|
322
|
+
|
|
323
|
+
**Usage:** `workflows create-grant <environment-id> [options]`
|
|
324
|
+
|
|
325
|
+
**Options:**
|
|
326
|
+
|
|
327
|
+
| Flag | Description | Default | Required |
|
|
328
|
+
|------|-------------|---------|----------|
|
|
329
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
330
|
+
| `--action <value>` | Body field action (one of: start, event) [required] | - | No |
|
|
331
|
+
| `--resource <value>` | Body field resource [required] | - | No |
|
|
332
|
+
| `--source-environment-id <n>` | Body field source_environment_id [required] | - | No |
|
|
333
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
334
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
335
|
+
| `--json` | Output in JSON format | - | No |
|
|
336
|
+
|
|
337
|
+
### `workflows revoke-grant`
|
|
338
|
+
|
|
339
|
+
Revoke workflow grant
|
|
340
|
+
|
|
341
|
+
**Usage:** `workflows revoke-grant <environment-id> <grant-id> [options]`
|
|
342
|
+
|
|
343
|
+
**Options:**
|
|
344
|
+
|
|
345
|
+
| Flag | Description | Default | Required |
|
|
346
|
+
|------|-------------|---------|----------|
|
|
347
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
348
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
349
|
+
| `--json` | Output in JSON format | - | No |
|
|
350
|
+
|
|
351
|
+
### `workflows diagnose-run`
|
|
352
|
+
|
|
353
|
+
Diagnose workflow run
|
|
354
|
+
|
|
355
|
+
**Usage:** `workflows diagnose-run <environment-id> <run-id> [options]`
|
|
356
|
+
|
|
357
|
+
**Options:**
|
|
358
|
+
|
|
359
|
+
| Flag | Description | Default | Required |
|
|
360
|
+
|------|-------------|---------|----------|
|
|
361
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
362
|
+
| `--json` | Output in JSON format | - | No |
|
|
363
|
+
|
|
364
|
+
### `workflows list-steps`
|
|
365
|
+
|
|
366
|
+
List workflow steps
|
|
367
|
+
|
|
368
|
+
**Usage:** `workflows list-steps <environment-id> <run-id> [options]`
|
|
369
|
+
|
|
370
|
+
**Options:**
|
|
371
|
+
|
|
372
|
+
| Flag | Description | Default | Required |
|
|
373
|
+
|------|-------------|---------|----------|
|
|
374
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
375
|
+
| `--page <n>` | 1-indexed page number | - | No |
|
|
376
|
+
| `--page-size <n>` | Items per page | - | No |
|
|
377
|
+
| `--json` | Output in JSON format | - | No |
|
|
378
|
+
|
|
379
|
+
### `workflows get-settings`
|
|
380
|
+
|
|
381
|
+
Get workflow settings
|
|
382
|
+
|
|
383
|
+
**Usage:** `workflows get-settings <environment-id> [options]`
|
|
384
|
+
|
|
385
|
+
**Options:**
|
|
386
|
+
|
|
387
|
+
| Flag | Description | Default | Required |
|
|
388
|
+
|------|-------------|---------|----------|
|
|
389
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
390
|
+
| `--json` | Output in JSON format | - | No |
|
|
391
|
+
|
|
392
|
+
### `workflows update-settings`
|
|
393
|
+
|
|
394
|
+
Update workflow settings
|
|
395
|
+
|
|
396
|
+
**Usage:** `workflows update-settings <environment-id> [options]`
|
|
397
|
+
|
|
398
|
+
**Options:**
|
|
399
|
+
|
|
400
|
+
| Flag | Description | Default | Required |
|
|
401
|
+
|------|-------------|---------|----------|
|
|
402
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
403
|
+
| `--drain-timeout-secs <n>` | Opt-in deploy drain: pause new invocations and wait for running attempts | - | No |
|
|
404
|
+
| `--host-service <value>` | Compose service hosting the workflow handler; 'None': the main service | - | No |
|
|
405
|
+
| `--inline-payload-limit-bytes <n>` | Body field inline_payload_limit_bytes [required] | - | No |
|
|
406
|
+
| `--invocation-deadline-secs <n>` | Body field invocation_deadline_secs [required] | - | No |
|
|
407
|
+
| `--lease-secs <n>` | Body field lease_secs [required] | - | No |
|
|
408
|
+
| `--managed-store-service-id <n>` | Managed PostgreSQL journal for new runs; existing runs keep their store | - | No |
|
|
409
|
+
| `--max-active-runs <n>` | Body field max_active_runs [required] | - | No |
|
|
410
|
+
| `--max-concurrent-runs <n>` | Body field max_concurrent_runs [required] | - | No |
|
|
411
|
+
| `--max-journal-bytes-per-run <n>` | Body field max_journal_bytes_per_run [required] | - | No |
|
|
412
|
+
| `--max-payload-bytes <n>` | Body field max_payload_bytes [required] | - | No |
|
|
413
|
+
| `--max-steps-per-run <n>` | Body field max_steps_per_run [required] | - | No |
|
|
414
|
+
| `--retention-days <n>` | Body field retention_days [required] | - | No |
|
|
415
|
+
| `--stuck-after-failures <n>` | Body field stuck_after_failures [required] | - | No |
|
|
416
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
417
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
418
|
+
| `--json` | Output in JSON format | - | No |
|
|
419
|
+
|
|
420
|
+
### `workflows list-keys`
|
|
421
|
+
|
|
422
|
+
List workflow project keys
|
|
423
|
+
|
|
424
|
+
**Options:**
|
|
425
|
+
|
|
426
|
+
| Flag | Description | Default | Required |
|
|
427
|
+
|------|-------------|---------|----------|
|
|
428
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
429
|
+
| `--page <n>` | 1-indexed page number | - | No |
|
|
430
|
+
| `--page-size <n>` | Items per page | - | No |
|
|
431
|
+
| `--json` | Output in JSON format | - | No |
|
|
432
|
+
|
|
433
|
+
### `workflows shred-key`
|
|
434
|
+
|
|
435
|
+
Shred workflow project key
|
|
436
|
+
|
|
437
|
+
**Usage:** `workflows shred-key <key-id> [options]`
|
|
438
|
+
|
|
439
|
+
**Options:**
|
|
440
|
+
|
|
441
|
+
| Flag | Description | Default | Required |
|
|
442
|
+
|------|-------------|---------|----------|
|
|
443
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
444
|
+
| `--confirm-key-id <value>` | Exact key UUID, confirming that its retained payloads become unreadable [required] | - | No |
|
|
445
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
446
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
447
|
+
| `--json` | Output in JSON format | - | No |
|
|
448
|
+
|
|
449
|
+
### `workflows list-definitions`
|
|
450
|
+
|
|
451
|
+
List workflow definitions
|
|
452
|
+
|
|
453
|
+
**Options:**
|
|
454
|
+
|
|
455
|
+
| Flag | Description | Default | Required |
|
|
456
|
+
|------|-------------|---------|----------|
|
|
457
|
+
| `--page <n>` | 1-based page; default 1 | - | No |
|
|
458
|
+
| `--page-size <n>` | Default 20, at most 100 | - | No |
|
|
459
|
+
| `--json` | Output in JSON format | - | No |
|
|
460
|
+
|
|
461
|
+
### `workflows list-all-runs`
|
|
462
|
+
|
|
463
|
+
List all workflow runs
|
|
464
|
+
|
|
465
|
+
**Options:**
|
|
466
|
+
|
|
467
|
+
| Flag | Description | Default | Required |
|
|
468
|
+
|------|-------------|---------|----------|
|
|
469
|
+
| `--status <value>` | Where a run is in its lifecycle (ADR-106 §3) (one of: queued, running, sleeping, waiting, retrying, completed, failed, cancelled, stuck) | - | No |
|
|
470
|
+
| `--workflow <value>` | Query parameter workflow | - | No |
|
|
471
|
+
| `--page-size <n>` | Query parameter page_size | - | No |
|
|
472
|
+
| `--cursor <value>` | Query parameter cursor | - | No |
|
|
473
|
+
| `--json` | Output in JSON format | - | No |
|
|
474
|
+
|
|
475
|
+
### `workflows app`
|
|
476
|
+
|
|
477
|
+
App commands
|
|
478
|
+
|
|
479
|
+
**Subcommands:**
|
|
480
|
+
|
|
481
|
+
- `send-event` - App send workflow event
|
|
482
|
+
- `send-granted-event` - App send granted event
|
|
483
|
+
- `start-granted` - App start granted workflow
|
|
484
|
+
- `start-run` - App start workflow run
|
|
485
|
+
- `get-run` - App get workflow run
|
|
486
|
+
|
|
487
|
+
#### `workflows app send-event`
|
|
488
|
+
|
|
489
|
+
App send workflow event
|
|
490
|
+
|
|
491
|
+
**Options:**
|
|
492
|
+
|
|
493
|
+
| Flag | Description | Default | Required |
|
|
494
|
+
|------|-------------|---------|----------|
|
|
495
|
+
| `--key <value>` | Narrows delivery to runs waiting on this key | - | No |
|
|
496
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
497
|
+
| `--payload <json>` | Body field payload (JSON) | - | No |
|
|
498
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
499
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
500
|
+
| `--json` | Output in JSON format | - | No |
|
|
501
|
+
|
|
502
|
+
#### `workflows app send-granted-event`
|
|
503
|
+
|
|
504
|
+
App send granted event
|
|
505
|
+
|
|
506
|
+
**Usage:** `workflows app send-granted-event <environment-id> [options]`
|
|
507
|
+
|
|
508
|
+
**Options:**
|
|
509
|
+
|
|
510
|
+
| Flag | Description | Default | Required |
|
|
511
|
+
|------|-------------|---------|----------|
|
|
512
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
513
|
+
| `--key <value>` | Narrows delivery to runs waiting on this key | - | No |
|
|
514
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
515
|
+
| `--payload <json>` | Body field payload (JSON) | - | No |
|
|
516
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
517
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
518
|
+
| `--json` | Output in JSON format | - | No |
|
|
519
|
+
|
|
520
|
+
#### `workflows app start-granted`
|
|
521
|
+
|
|
522
|
+
App start granted workflow
|
|
523
|
+
|
|
524
|
+
**Usage:** `workflows app start-granted <environment-id> [options]`
|
|
525
|
+
|
|
526
|
+
**Options:**
|
|
527
|
+
|
|
528
|
+
| Flag | Description | Default | Required |
|
|
529
|
+
|------|-------------|---------|----------|
|
|
530
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
531
|
+
| `--idempotency-key <value>` | A second start with the same key returns the first run | - | No |
|
|
532
|
+
| `--body-input <json>` | Body field input (JSON) | - | No |
|
|
533
|
+
| `--workflow <value>` | Body field workflow [required] | - | No |
|
|
534
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
535
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
536
|
+
| `--json` | Output in JSON format | - | No |
|
|
537
|
+
|
|
538
|
+
#### `workflows app start-run`
|
|
539
|
+
|
|
540
|
+
App start workflow run
|
|
541
|
+
|
|
542
|
+
**Options:**
|
|
543
|
+
|
|
544
|
+
| Flag | Description | Default | Required |
|
|
545
|
+
|------|-------------|---------|----------|
|
|
546
|
+
| `--idempotency-key <value>` | A second start with the same key returns the first run | - | No |
|
|
547
|
+
| `--body-input <json>` | Body field input (JSON) | - | No |
|
|
548
|
+
| `--workflow <value>` | Body field workflow [required] | - | No |
|
|
549
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
550
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
551
|
+
| `--json` | Output in JSON format | - | No |
|
|
552
|
+
|
|
553
|
+
#### `workflows app get-run`
|
|
554
|
+
|
|
555
|
+
App get workflow run
|
|
556
|
+
|
|
557
|
+
**Usage:** `workflows app get-run <run-id> [options]`
|
|
558
|
+
|
|
559
|
+
**Options:**
|
|
560
|
+
|
|
561
|
+
| Flag | Description | Default | Required |
|
|
562
|
+
|------|-------------|---------|----------|
|
|
563
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -104,7 +104,7 @@ mobile with identical windows and segment filters:
|
|
|
104
104
|
After runtime help confirms support, append either
|
|
105
105
|
`analytics performance -p my-app --period 7d --device desktop` or
|
|
106
106
|
`analytics performance -p my-app --period 7d --device mobile` to the verified,
|
|
107
|
-
|
|
107
|
+
documented invocation from [../cli-runtime.md](../cli-runtime.md).
|
|
108
108
|
|
|
109
109
|
Add `--group-by path` to locate slow pages, or group by `country`, `region`,
|
|
110
110
|
`city`, `device_type`, `browser`, or `operating_system`. Narrow the same query
|
|
@@ -117,7 +117,7 @@ the aggregate percentiles, time series, and optional breakdown payload.
|
|
|
117
117
|
Do not confuse this with `metrics query`, which reads OpenTelemetry application
|
|
118
118
|
metrics, or `analytics top devices`, which reports traffic counts rather than
|
|
119
119
|
browser performance. Runtime `--help` is authoritative; do not substitute an
|
|
120
|
-
ambient executable while the
|
|
120
|
+
ambient executable while the selected version predates the command.
|
|
121
121
|
|
|
122
122
|
## What belongs here vs. other pillars
|
|
123
123
|
|