@temps-sdk/cli 0.2.0-beta.1 → 0.2.0-beta.3
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/dist/index.js +104770 -87351
- package/dist/skills/temps/SKILL.md +6 -3
- package/dist/skills/temps/evals/evals.json +38 -0
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/howtos/install-temps.md +151 -0
- package/dist/skills/temps/references/commands/INDEX.md +7 -0
- package/dist/skills/temps/references/commands/agents.md +731 -0
- package/dist/skills/temps/references/commands/ai.md +2636 -11
- package/dist/skills/temps/references/commands/alarms.md +125 -0
- package/dist/skills/temps/references/commands/analytics.md +1001 -3
- package/dist/skills/temps/references/commands/apikeys.md +48 -1
- package/dist/skills/temps/references/commands/audit.md +1 -0
- package/dist/skills/temps/references/commands/backups.md +306 -0
- package/dist/skills/temps/references/commands/blob.md +169 -0
- package/dist/skills/temps/references/commands/cloud.md +59 -0
- package/dist/skills/temps/references/commands/cluster.md +223 -0
- package/dist/skills/temps/references/commands/containers.md +45 -0
- package/dist/skills/temps/references/commands/custom-domains.md +32 -0
- package/dist/skills/temps/references/commands/data.md +1 -0
- 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/deployments.md +559 -0
- package/dist/skills/temps/references/commands/dns-provider.md +63 -0
- package/dist/skills/temps/references/commands/domains.md +104 -0
- package/dist/skills/temps/references/commands/email-domains.md +1 -0
- package/dist/skills/temps/references/commands/email-providers.md +59 -1
- package/dist/skills/temps/references/commands/emails.md +91 -0
- package/dist/skills/temps/references/commands/environments.md +483 -2
- package/dist/skills/temps/references/commands/errors.md +563 -3
- package/dist/skills/temps/references/commands/flags.md +76 -0
- package/dist/skills/temps/references/commands/funnels.md +22 -2
- package/dist/skills/temps/references/commands/incidents.md +18 -0
- package/dist/skills/temps/references/commands/ingress.md +26 -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/load-balancer.md +2 -0
- package/dist/skills/temps/references/commands/login.md +4 -1
- package/dist/skills/temps/references/commands/logs.md +272 -0
- package/dist/skills/temps/references/commands/mcp.md +14 -1
- package/dist/skills/temps/references/commands/migrate.md +17 -0
- package/dist/skills/temps/references/commands/monitors.md +386 -0
- package/dist/skills/temps/references/commands/network-policy.md +27 -0
- package/dist/skills/temps/references/commands/nodes.md +155 -2
- package/dist/skills/temps/references/commands/notifications.md +149 -0
- package/dist/skills/temps/references/commands/otel.md +438 -0
- package/dist/skills/temps/references/commands/platform.md +64 -0
- package/dist/skills/temps/references/commands/plugin.md +76 -0
- package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
- package/dist/skills/temps/references/commands/project-groups.md +31 -0
- package/dist/skills/temps/references/commands/projects.md +453 -6
- package/dist/skills/temps/references/commands/providers.md +519 -0
- package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
- package/dist/skills/temps/references/commands/revenue.md +219 -0
- package/dist/skills/temps/references/commands/sandbox.md +732 -9
- package/dist/skills/temps/references/commands/secrets.md +3 -0
- package/dist/skills/temps/references/commands/server.md +107 -0
- package/dist/skills/temps/references/commands/services.md +831 -5
- package/dist/skills/temps/references/commands/settings.md +384 -0
- package/dist/skills/temps/references/commands/shield.md +354 -0
- package/dist/skills/temps/references/commands/start.md +1 -0
- package/dist/skills/temps/references/commands/status-pages.md +103 -3
- package/dist/skills/temps/references/commands/teams.md +14 -0
- package/dist/skills/temps/references/commands/templates.md +14 -0
- package/dist/skills/temps/references/commands/tokens.md +106 -0
- package/dist/skills/temps/references/commands/traces.md +149 -0
- package/dist/skills/temps/references/commands/tunnels.md +2 -0
- package/dist/skills/temps/references/commands/users.md +111 -0
- package/dist/skills/temps/references/commands/vault.md +662 -0
- package/dist/skills/temps/references/commands/webhooks.md +4 -0
- package/dist/skills/temps/references/commands/workflows.md +347 -0
- package/dist/skills/temps/scripts/generate_command_references.py +5 -3
- package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
- package/package.json +3 -2
|
@@ -4,6 +4,37 @@
|
|
|
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
|
+
- [`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
|
+
|
|
7
38
|
## `workflows`
|
|
8
39
|
|
|
9
40
|
Durable application workflows
|
|
@@ -23,6 +54,21 @@ Durable application workflows
|
|
|
23
54
|
- `watch` - Poll until terminal or the bounded deadline
|
|
24
55
|
- `init` - Create a Node workflow worker in a new directory
|
|
25
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
|
|
26
72
|
|
|
27
73
|
### `workflows list`
|
|
28
74
|
|
|
@@ -214,3 +260,304 @@ Forward preview-environment invocations to a local SDK server
|
|
|
214
260
|
| `--environment-id <id>` | Undeployed, unprotected preview environment ID | - | Yes |
|
|
215
261
|
| `--port <port>` | Local SDK server port | `3000` | No |
|
|
216
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 |
|
|
@@ -12,7 +12,7 @@ from pathlib import Path
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
HEADING = re.compile(r"^## `([^`]+)`(?:.*)$", re.MULTILINE)
|
|
15
|
-
SUBHEADING = re.compile(r"^### `([^`]+)
|
|
15
|
+
SUBHEADING = re.compile(r"^### (`([^`]+)`.*)$", re.MULTILINE)
|
|
16
16
|
FOOTER = re.compile(r"^---\n\n## Examples\n", re.MULTILINE)
|
|
17
17
|
GENERATED_MARKER = (
|
|
18
18
|
"<!-- Generated from skills/temps-cli/references/COMMANDS.md. "
|
|
@@ -78,11 +78,13 @@ def split_catalog(
|
|
|
78
78
|
"Apply [the CLI runtime and safety contract](../cli-runtime.md) "
|
|
79
79
|
"before executing a command. Runtime `--help` is authoritative.\n\n"
|
|
80
80
|
)
|
|
81
|
-
|
|
81
|
+
# (command, full heading text): the fragment comes from the whole heading,
|
|
82
|
+
# aliases included, as GitHub derives it.
|
|
83
|
+
subcommands = [(item.group(2), item.group(1)) for item in SUBHEADING.finditer(body)]
|
|
82
84
|
if (header + body).count("\n") + 1 > 300 and subcommands:
|
|
83
85
|
header += "## Contents\n\n"
|
|
84
86
|
header += "\n".join(
|
|
85
|
-
f"- [`{subcommand}`](#{anchor(
|
|
87
|
+
f"- [`{subcommand}`](#{anchor(title)})" for subcommand, title in subcommands
|
|
86
88
|
)
|
|
87
89
|
header += "\n\n"
|
|
88
90
|
output.write_text(header + body, encoding="utf-8")
|
|
@@ -38,7 +38,7 @@ class CommandReferenceGeneratorTests(unittest.TestCase):
|
|
|
38
38
|
destination = root / "commands"
|
|
39
39
|
body = "\n".join(f"line {number}" for number in range(301))
|
|
40
40
|
source.write_text(
|
|
41
|
-
f"# CLI\n\n## `services`\n\n### `services list`\n\n{body}\n",
|
|
41
|
+
f"# CLI\n\n## `services`\n\n### `services list`\n\n### `services remove` (alias: `rm`)\n\n{body}\n",
|
|
42
42
|
encoding="utf-8",
|
|
43
43
|
)
|
|
44
44
|
|
|
@@ -47,6 +47,8 @@ class CommandReferenceGeneratorTests(unittest.TestCase):
|
|
|
47
47
|
output = (destination / "services.md").read_text(encoding="utf-8")
|
|
48
48
|
self.assertIn("## Contents", output)
|
|
49
49
|
self.assertIn("[`services list`](#services-list)", output)
|
|
50
|
+
# A heading with an alias has the alias in its fragment.
|
|
51
|
+
self.assertIn("[`services remove`](#services-remove-alias-rm)", output)
|
|
50
52
|
|
|
51
53
|
def test_rejects_nonempty_noncanonical_destination(self) -> None:
|
|
52
54
|
with tempfile.TemporaryDirectory() as directory:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temps-sdk/cli",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.3",
|
|
4
4
|
"description": "CLI for Temps deployment platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"build:bin": "bun build src/index.ts --compile --outfile bin/temps",
|
|
18
18
|
"spec:update": "bun run scripts/update-openapi.ts",
|
|
19
19
|
"spec:check": "bun run scripts/check-openapi.ts",
|
|
20
|
-
"
|
|
20
|
+
"coverage:api": "bun run scripts/api-coverage.ts",
|
|
21
|
+
"generate:api": "bun openapi-ts && python3 ../../scripts/source_attribution.py annotate apps/temps-cli/src/api && bun run scripts/generate-settings-fields.ts",
|
|
21
22
|
"generate:docs": "bun run scripts/generate-docs.ts",
|
|
22
23
|
"generate:docs:mdx": "bun run scripts/generate-docs.ts --format mdx",
|
|
23
24
|
"generate:docs:json": "bun run scripts/generate-docs.ts --format json",
|