@temps-sdk/cli 0.1.37 → 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.
Files changed (130) hide show
  1. package/README.md +14 -0
  2. package/dist/index.js +32148 -34152
  3. package/dist/skills/temps/SKILL.md +148 -0
  4. package/dist/skills/temps/agents/openai.yaml +7 -0
  5. package/dist/skills/temps/evals/evals.json +112 -0
  6. package/dist/skills/temps/howtos/backup-recovery.md +41 -0
  7. package/dist/skills/temps/howtos/ci-automation.md +17 -0
  8. package/dist/skills/temps/howtos/curated-services.md +69 -0
  9. package/dist/skills/temps/howtos/deploy-application.md +36 -0
  10. package/dist/skills/temps/howtos/diagnose-deployment.md +17 -0
  11. package/dist/skills/temps/howtos/edge-rules.md +135 -0
  12. package/dist/skills/temps/howtos/framework-routing.md +28 -0
  13. package/dist/skills/temps/howtos/javascript-typescript.md +57 -0
  14. package/dist/skills/temps/howtos/managed-services.md +83 -0
  15. package/dist/skills/temps/howtos/observability-onboarding.md +52 -0
  16. package/dist/skills/temps/howtos/projects-and-monorepos.md +50 -0
  17. package/dist/skills/temps/howtos/python.md +42 -0
  18. package/dist/skills/temps/howtos/rust.md +30 -0
  19. package/dist/skills/temps/references/cli-runtime.md +60 -0
  20. package/dist/skills/temps/references/commands/INDEX.md +102 -0
  21. package/dist/skills/temps/references/commands/access.md +53 -0
  22. package/dist/skills/temps/references/commands/ai.md +47 -0
  23. package/dist/skills/temps/references/commands/alarms.md +91 -0
  24. package/dist/skills/temps/references/commands/analytics.md +568 -0
  25. package/dist/skills/temps/references/commands/apikeys.md +98 -0
  26. package/dist/skills/temps/references/commands/audit.md +41 -0
  27. package/dist/skills/temps/references/commands/backups.md +269 -0
  28. package/dist/skills/temps/references/commands/cloud.md +385 -0
  29. package/dist/skills/temps/references/commands/cluster.md +31 -0
  30. package/dist/skills/temps/references/commands/configure.md +62 -0
  31. package/dist/skills/temps/references/commands/containers.md +110 -0
  32. package/dist/skills/temps/references/commands/context.md +55 -0
  33. package/dist/skills/temps/references/commands/custom-domains.md +98 -0
  34. package/dist/skills/temps/references/commands/data.md +87 -0
  35. package/dist/skills/temps/references/commands/delivery-profiles.md +69 -0
  36. package/dist/skills/temps/references/commands/delivery.md +116 -0
  37. package/dist/skills/temps/references/commands/deploy-image.md +23 -0
  38. package/dist/skills/temps/references/commands/deploy-local-image.md +28 -0
  39. package/dist/skills/temps/references/commands/deploy-static.md +23 -0
  40. package/dist/skills/temps/references/commands/deploy.md +23 -0
  41. package/dist/skills/temps/references/commands/deployments.md +173 -0
  42. package/dist/skills/temps/references/commands/dns-provider.md +196 -0
  43. package/dist/skills/temps/references/commands/dns.md +181 -0
  44. package/dist/skills/temps/references/commands/domains.md +188 -0
  45. package/dist/skills/temps/references/commands/drop.md +23 -0
  46. package/dist/skills/temps/references/commands/dsn.md +84 -0
  47. package/dist/skills/temps/references/commands/edge-rules.md +218 -0
  48. package/dist/skills/temps/references/commands/email-domains.md +160 -0
  49. package/dist/skills/temps/references/commands/email-providers.md +96 -0
  50. package/dist/skills/temps/references/commands/emails.md +79 -0
  51. package/dist/skills/temps/references/commands/env-pull.md +18 -0
  52. package/dist/skills/temps/references/commands/env-push.md +19 -0
  53. package/dist/skills/temps/references/commands/environments.md +500 -0
  54. package/dist/skills/temps/references/commands/errors.md +763 -0
  55. package/dist/skills/temps/references/commands/facets.md +63 -0
  56. package/dist/skills/temps/references/commands/flags.md +246 -0
  57. package/dist/skills/temps/references/commands/funnels.md +92 -0
  58. package/dist/skills/temps/references/commands/incidents.md +115 -0
  59. package/dist/skills/temps/references/commands/init.md +18 -0
  60. package/dist/skills/temps/references/commands/instances.md +62 -0
  61. package/dist/skills/temps/references/commands/instantiations.md +57 -0
  62. package/dist/skills/temps/references/commands/ip-access.md +153 -0
  63. package/dist/skills/temps/references/commands/link.md +17 -0
  64. package/dist/skills/temps/references/commands/load-balancer.md +73 -0
  65. package/dist/skills/temps/references/commands/login.md +22 -0
  66. package/dist/skills/temps/references/commands/logout.md +16 -0
  67. package/dist/skills/temps/references/commands/logs.md +290 -0
  68. package/dist/skills/temps/references/commands/mcp-servers.md +74 -0
  69. package/dist/skills/temps/references/commands/mcp.md +72 -0
  70. package/dist/skills/temps/references/commands/metrics.md +79 -0
  71. package/dist/skills/temps/references/commands/migrate.md +118 -0
  72. package/dist/skills/temps/references/commands/monitors.md +162 -0
  73. package/dist/skills/temps/references/commands/network-policy.md +120 -0
  74. package/dist/skills/temps/references/commands/nodes.md +254 -0
  75. package/dist/skills/temps/references/commands/notification-preferences.md +47 -0
  76. package/dist/skills/temps/references/commands/notifications.md +233 -0
  77. package/dist/skills/temps/references/commands/open.md +19 -0
  78. package/dist/skills/temps/references/commands/otel-forward.md +226 -0
  79. package/dist/skills/temps/references/commands/otel.md +38 -0
  80. package/dist/skills/temps/references/commands/platform.md +151 -0
  81. package/dist/skills/temps/references/commands/plugin.md +222 -0
  82. package/dist/skills/temps/references/commands/presets.md +37 -0
  83. package/dist/skills/temps/references/commands/project-groups.md +292 -0
  84. package/dist/skills/temps/references/commands/projects.md +329 -0
  85. package/dist/skills/temps/references/commands/providers.md +290 -0
  86. package/dist/skills/temps/references/commands/proxy-logs.md +85 -0
  87. package/dist/skills/temps/references/commands/revenue.md +52 -0
  88. package/dist/skills/temps/references/commands/rollback.md +20 -0
  89. package/dist/skills/temps/references/commands/runtime-logs.md +21 -0
  90. package/dist/skills/temps/references/commands/sandbox.md +518 -0
  91. package/dist/skills/temps/references/commands/scans.md +113 -0
  92. package/dist/skills/temps/references/commands/secrets.md +75 -0
  93. package/dist/skills/temps/references/commands/server.md +50 -0
  94. package/dist/skills/temps/references/commands/services.md +642 -0
  95. package/dist/skills/temps/references/commands/session-replay.md +84 -0
  96. package/dist/skills/temps/references/commands/settings.md +84 -0
  97. package/dist/skills/temps/references/commands/setup.md +25 -0
  98. package/dist/skills/temps/references/commands/skills.md +93 -0
  99. package/dist/skills/temps/references/commands/start.md +21 -0
  100. package/dist/skills/temps/references/commands/status-pages.md +455 -0
  101. package/dist/skills/temps/references/commands/status.md +19 -0
  102. package/dist/skills/temps/references/commands/stop.md +16 -0
  103. package/dist/skills/temps/references/commands/surveys.md +165 -0
  104. package/dist/skills/temps/references/commands/teams.md +143 -0
  105. package/dist/skills/temps/references/commands/templates.md +67 -0
  106. package/dist/skills/temps/references/commands/tokens.md +77 -0
  107. package/dist/skills/temps/references/commands/traces.md +100 -0
  108. package/dist/skills/temps/references/commands/traefik-discovery.md +123 -0
  109. package/dist/skills/temps/references/commands/tunnels.md +139 -0
  110. package/dist/skills/temps/references/commands/up.md +27 -0
  111. package/dist/skills/temps/references/commands/users.md +115 -0
  112. package/dist/skills/temps/references/commands/webhooks.md +171 -0
  113. package/dist/skills/temps/references/commands/whoami.md +15 -0
  114. package/dist/skills/temps/references/commands/workflow.md +44 -0
  115. package/dist/skills/temps/references/commands/workflows.md +216 -0
  116. package/dist/skills/temps/references/observability/analytics.md +146 -0
  117. package/dist/skills/temps/references/observability/error-tracking.md +73 -0
  118. package/dist/skills/temps/references/observability/hygiene.md +112 -0
  119. package/dist/skills/temps/references/observability/logs.md +43 -0
  120. package/dist/skills/temps/references/observability/metrics.md +41 -0
  121. package/dist/skills/temps/references/observability/tracing.md +392 -0
  122. package/dist/skills/temps/references/runtime-contract.md +115 -0
  123. package/dist/skills/temps/references/workflows/platform-operations.md +164 -0
  124. package/dist/skills/temps/scripts/detect_project_capabilities.py +239 -0
  125. package/dist/skills/temps/scripts/generate_command_references.py +144 -0
  126. package/dist/skills/temps/scripts/test_detect_project_capabilities.py +124 -0
  127. package/dist/skills/temps/scripts/test_generate_command_references.py +128 -0
  128. package/dist/skills/temps/scripts/test_validate_skill.py +43 -0
  129. package/dist/skills/temps/scripts/validate_skill.py +97 -0
  130. package/package.json +7 -2
@@ -0,0 +1,115 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `users` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `users`
8
+
9
+ Manage platform users
10
+
11
+ **Subcommands:**
12
+
13
+ - `list` (`ls`) - List all users
14
+ - `create` (`add`) - Create a new user
15
+ - `me` - Show current user info
16
+ - `remove` (`rm`) - Remove a user
17
+ - `restore` - Restore a deleted user
18
+ - `reset-password` - Reset another user's password to a generated temporary one. The user is signed out of every browser session and must choose a new password at next sign-in
19
+ - `reset-mfa` - Remove another user's MFA (authenticator and recovery codes) after they lost both. The user is signed out of every session. Password sign-in is blocked when require_mfa_for_admins applies; arrange SSO access or a temporary policy change before resetting MFA. Otherwise, sign in with a password to enroll again
20
+ - `role` - Manage user roles
21
+
22
+ ### `users list` (alias: `ls`)
23
+
24
+ List all users
25
+
26
+ **Options:**
27
+
28
+ | Flag | Description | Default | Required |
29
+ |------|-------------|---------|----------|
30
+ | `--json` | Output in JSON format | - | No |
31
+
32
+ ### `users create` (alias: `add`)
33
+
34
+ Create a new user
35
+
36
+ **Options:**
37
+
38
+ | Flag | Description | Default | Required |
39
+ |------|-------------|---------|----------|
40
+ | `-u, --username <username>` | Username | - | No |
41
+ | `-e, --email <email>` | Email address | - | No |
42
+ | `-p, --password <password>` | Password (if not provided, invite email will be sent) | - | No |
43
+ | `-r, --roles <roles>` | Comma-separated roles (admin, user) | - | No |
44
+ | `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
45
+ | `--password-file <path>` | Read the password from a file (- reads stdin) instead of --password | - | No |
46
+ | `--password-stdin` | Read the password from stdin instead of --password | - | 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 |
48
+
49
+ ### `users me`
50
+
51
+ Show current user info
52
+
53
+ **Options:**
54
+
55
+ | Flag | Description | Default | Required |
56
+ |------|-------------|---------|----------|
57
+ | `--json` | Output in JSON format | - | No |
58
+
59
+ ### `users remove` (alias: `rm`)
60
+
61
+ Remove a user
62
+
63
+ **Options:**
64
+
65
+ | Flag | Description | Default | Required |
66
+ |------|-------------|---------|----------|
67
+ | `--id <id>` | User ID | - | Yes |
68
+ | `-f, --force` | Skip confirmation | - | No |
69
+ | `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
70
+
71
+ ### `users restore`
72
+
73
+ Restore a deleted user
74
+
75
+ **Options:**
76
+
77
+ | Flag | Description | Default | Required |
78
+ |------|-------------|---------|----------|
79
+ | `--id <id>` | User ID | - | Yes |
80
+
81
+ ### `users reset-password`
82
+
83
+ Reset another user's password to a generated temporary one. The user is signed out of every browser session and must choose a new password at next sign-in
84
+
85
+ **Options:**
86
+
87
+ | Flag | Description | Default | Required |
88
+ |------|-------------|---------|----------|
89
+ | `--id <id>` | User ID | - | Yes |
90
+ | `--json` | Output in JSON format | - | No |
91
+ | `-y, --yes` | Skip confirmation prompt (for automation) | - | No |
92
+
93
+ ### `users reset-mfa`
94
+
95
+ Remove another user's MFA (authenticator and recovery codes) after they lost both. The user is signed out of every session. Password sign-in is blocked when require_mfa_for_admins applies; arrange SSO access or a temporary policy change before resetting MFA. Otherwise, sign in with a password to enroll again
96
+
97
+ **Options:**
98
+
99
+ | Flag | Description | Default | Required |
100
+ |------|-------------|---------|----------|
101
+ | `--id <id>` | User ID | - | Yes |
102
+ | `--json` | Output in JSON format | - | No |
103
+ | `-y, --yes` | Skip confirmation prompt (for automation) | - | No |
104
+
105
+ ### `users role`
106
+
107
+ Manage user roles
108
+
109
+ **Options:**
110
+
111
+ | Flag | Description | Default | Required |
112
+ |------|-------------|---------|----------|
113
+ | `--id <id>` | User ID | - | Yes |
114
+ | `--add <role>` | Add a role to user | - | No |
115
+ | `--remove <role>` | Remove a role from user | - | No |
@@ -0,0 +1,171 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `webhooks` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `webhooks` (alias: `hooks`)
8
+
9
+ Manage webhooks for project events
10
+
11
+ **Subcommands:**
12
+
13
+ - `list` (`ls`) - List all webhooks for a project
14
+ - `create` (`add`) - Create a new webhook for a project
15
+ - `show` - Show webhook details
16
+ - `update` - Update a webhook
17
+ - `remove` (`rm`) - Delete a webhook
18
+ - `enable` - Enable a webhook
19
+ - `disable` - Disable a webhook
20
+ - `events` - List available webhook event types
21
+ - `deliveries` - Manage webhook deliveries
22
+
23
+ ### `webhooks list` (alias: `ls`)
24
+
25
+ List all webhooks for a project
26
+
27
+ **Options:**
28
+
29
+ | Flag | Description | Default | Required |
30
+ |------|-------------|---------|----------|
31
+ | `--project-id <id>` | Project ID | - | Yes |
32
+ | `--json` | Output in JSON format | - | No |
33
+
34
+ ### `webhooks create` (alias: `add`)
35
+
36
+ Create a new webhook for a project
37
+
38
+ **Options:**
39
+
40
+ | Flag | Description | Default | Required |
41
+ |------|-------------|---------|----------|
42
+ | `--project-id <id>` | Project ID | - | Yes |
43
+ | `-u, --url <url>` | Webhook URL | - | No |
44
+ | `-e, --events <events>` | Comma-separated event types (or "all" for all events) | - | No |
45
+ | `-s, --secret <secret>` | Webhook secret for signature verification | - | No |
46
+ | `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
47
+ | `--secret-file <path>` | Read the webhook signing secret from a file (- reads stdin) instead of --secret | - | No |
48
+ | `--secret-stdin` | Read the webhook signing secret from stdin instead of --secret | - | No |
49
+ | `--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 |
50
+
51
+ ### `webhooks show`
52
+
53
+ Show webhook details
54
+
55
+ **Options:**
56
+
57
+ | Flag | Description | Default | Required |
58
+ |------|-------------|---------|----------|
59
+ | `--project-id <id>` | Project ID | - | Yes |
60
+ | `--webhook-id <id>` | Webhook ID | - | Yes |
61
+ | `--json` | Output in JSON format | - | No |
62
+
63
+ ### `webhooks update`
64
+
65
+ Update a webhook
66
+
67
+ **Options:**
68
+
69
+ | Flag | Description | Default | Required |
70
+ |------|-------------|---------|----------|
71
+ | `--project-id <id>` | Project ID | - | Yes |
72
+ | `--webhook-id <id>` | Webhook ID | - | Yes |
73
+ | `-u, --url <url>` | New webhook URL | - | No |
74
+ | `-e, --events <events>` | Comma-separated event types (or "all" for all events) | - | No |
75
+ | `-s, --secret <secret>` | New webhook secret for signature verification | - | No |
76
+ | `--secret-file <path>` | Read the webhook signing secret from a file (- reads stdin) instead of --secret | - | No |
77
+ | `--secret-stdin` | Read the webhook signing secret from stdin instead of --secret | - | No |
78
+ | `--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 |
79
+
80
+ ### `webhooks remove` (alias: `rm`)
81
+
82
+ Delete a webhook
83
+
84
+ **Options:**
85
+
86
+ | Flag | Description | Default | Required |
87
+ |------|-------------|---------|----------|
88
+ | `--project-id <id>` | Project ID | - | Yes |
89
+ | `--webhook-id <id>` | Webhook ID | - | Yes |
90
+ | `-f, --force` | Skip confirmation | - | No |
91
+ | `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
92
+
93
+ ### `webhooks enable`
94
+
95
+ Enable a webhook
96
+
97
+ **Options:**
98
+
99
+ | Flag | Description | Default | Required |
100
+ |------|-------------|---------|----------|
101
+ | `--project-id <id>` | Project ID | - | Yes |
102
+ | `--webhook-id <id>` | Webhook ID | - | Yes |
103
+
104
+ ### `webhooks disable`
105
+
106
+ Disable a webhook
107
+
108
+ **Options:**
109
+
110
+ | Flag | Description | Default | Required |
111
+ |------|-------------|---------|----------|
112
+ | `--project-id <id>` | Project ID | - | Yes |
113
+ | `--webhook-id <id>` | Webhook ID | - | Yes |
114
+
115
+ ### `webhooks events`
116
+
117
+ List available webhook event types
118
+
119
+ **Options:**
120
+
121
+ | Flag | Description | Default | Required |
122
+ |------|-------------|---------|----------|
123
+ | `--json` | Output in JSON format | - | No |
124
+
125
+ ### `webhooks deliveries`
126
+
127
+ Manage webhook deliveries
128
+
129
+ **Subcommands:**
130
+
131
+ - `list` (`ls`) - List deliveries for a webhook
132
+ - `show` - Show delivery details
133
+ - `retry` - Retry a failed delivery
134
+
135
+ #### `webhooks deliveries list` (alias: `ls`)
136
+
137
+ List deliveries for a webhook
138
+
139
+ **Options:**
140
+
141
+ | Flag | Description | Default | Required |
142
+ |------|-------------|---------|----------|
143
+ | `--project-id <id>` | Project ID | - | Yes |
144
+ | `--webhook-id <id>` | Webhook ID | - | Yes |
145
+ | `--limit <n>` | Number of deliveries to return (default: 50) | - | No |
146
+ | `--json` | Output in JSON format | - | No |
147
+
148
+ #### `webhooks deliveries show`
149
+
150
+ Show delivery details
151
+
152
+ **Options:**
153
+
154
+ | Flag | Description | Default | Required |
155
+ |------|-------------|---------|----------|
156
+ | `--project-id <id>` | Project ID | - | Yes |
157
+ | `--webhook-id <id>` | Webhook ID | - | Yes |
158
+ | `--delivery-id <id>` | Delivery ID | - | Yes |
159
+ | `--json` | Output in JSON format | - | No |
160
+
161
+ #### `webhooks deliveries retry`
162
+
163
+ Retry a failed delivery
164
+
165
+ **Options:**
166
+
167
+ | Flag | Description | Default | Required |
168
+ |------|-------------|---------|----------|
169
+ | `--project-id <id>` | Project ID | - | Yes |
170
+ | `--webhook-id <id>` | Webhook ID | - | Yes |
171
+ | `--delivery-id <id>` | Delivery ID | - | Yes |
@@ -0,0 +1,15 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `whoami` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `whoami`
8
+
9
+ Display current authenticated user and active context
10
+
11
+ **Options:**
12
+
13
+ | Flag | Description | Default | Required |
14
+ |------|-------------|---------|----------|
15
+ | `--json` | Output as JSON | - | No |
@@ -0,0 +1,44 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `workflow` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `workflow` (alias: `wf`)
8
+
9
+ Trigger and inspect agent/workflow runs
10
+
11
+ **Subcommands:**
12
+
13
+ - `list` (`ls`) - List workflows/agents available on this project
14
+ - `run` - Trigger a workflow and stream its output
15
+
16
+ ### `workflow list` (alias: `ls`)
17
+
18
+ List workflows/agents available on this project
19
+
20
+ **Options:**
21
+
22
+ | Flag | Description | Default | Required |
23
+ |------|-------------|---------|----------|
24
+ | `-p, --project <slug>` | Project slug (auto-detect from .temps/config.json) | - | No |
25
+ | `--json` | Output as JSON | - | No |
26
+
27
+ ### `workflow run`
28
+
29
+ Trigger a workflow and stream its output
30
+
31
+ **Usage:** `workflow run [slug] [options]`
32
+
33
+ **Options:**
34
+
35
+ | Flag | Description | Default | Required |
36
+ |------|-------------|---------|----------|
37
+ | `-p, --project <slug>` | Project slug (auto-detect from .temps/config.json) | - | No |
38
+ | `-c, --context <text>` | Free-form user context passed to the workflow (e.g. a bug description) | - | No |
39
+ | `-f, --from-file <path>` | Run an ephemeral workflow from a local YAML file (no server-side persistence). Mutually exclusive with <slug>. | - | No |
40
+ | `-e, --error-group <id>` | Link this run to an error group id. The workflow will see the error type, message, and stack trace via the usual {{error_type}} / {{error_message}} template fields. Works with both committed slugs and --from-file. | - | No |
41
+ | `--cpu <cores>` | CPU cores for the ephemeral sandbox (0.1–4.0). Overrides the YAML value. Only applies with --from-file. | - | No |
42
+ | `--memory <mb>` | Memory limit in MB for the ephemeral sandbox (128–8192). Overrides the YAML value. Only applies with --from-file. | - | No |
43
+ | `--no-follow` | Return immediately after queueing instead of streaming logs | - | No |
44
+ | `--json` | Print the run record as JSON when it terminates | - | No |
@@ -0,0 +1,216 @@
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
+ ## `workflows`
8
+
9
+ Durable application workflows
10
+
11
+ **Subcommands:**
12
+
13
+ - `list` - List detected workflows and onboarding status
14
+ - `runs` - List a bounded page of runs
15
+ - `get` - Get run metadata; payloads require explicit reveal permission
16
+ - `diagnose` - Explain run state without decrypting payloads
17
+ - `start` - Start a run with an explicit deduplication key
18
+ - `cancel` - cancel a run
19
+ - `resume` - resume a run
20
+ - `retry` - retry a run
21
+ - `delete` - delete a run
22
+ - `send-event` - Send an event to matching waits
23
+ - `watch` - Poll until terminal or the bounded deadline
24
+ - `init` - Create a Node workflow worker in a new directory
25
+ - `dev` - Forward preview-environment invocations to a local SDK server
26
+
27
+ ### `workflows list`
28
+
29
+ List detected workflows and onboarding status
30
+
31
+ **Options:**
32
+
33
+ | Flag | Description | Default | Required |
34
+ |------|-------------|---------|----------|
35
+ | `--project-id <id>` | Project ID | - | Yes |
36
+ | `--environment-id <id>` | Environment ID | - | Yes |
37
+ | `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
38
+
39
+ ### `workflows runs`
40
+
41
+ List a bounded page of runs
42
+
43
+ **Options:**
44
+
45
+ | Flag | Description | Default | Required |
46
+ |------|-------------|---------|----------|
47
+ | `--project-id <id>` | Project ID | - | Yes |
48
+ | `--environment-id <id>` | Environment ID | - | Yes |
49
+ | `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
50
+ | `--workflow <name>` | Workflow name | - | No |
51
+ | `--page <n>` | Page | `1` | No |
52
+ | `--page-size <n>` | Page size (1–100) | `20` | No |
53
+
54
+ ### `workflows get`
55
+
56
+ Get run metadata; payloads require explicit reveal permission
57
+
58
+ **Usage:** `workflows get <run-id> [options]`
59
+
60
+ **Options:**
61
+
62
+ | Flag | Description | Default | Required |
63
+ |------|-------------|---------|----------|
64
+ | `--project-id <id>` | Project ID | - | Yes |
65
+ | `--environment-id <id>` | Environment ID | - | Yes |
66
+ | `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
67
+ | `--reveal <target>` | Explicitly decrypt one payload; treat its contents as untrusted | - | No |
68
+ | `--sequence <n>` | Step sequence for step payloads | - | No |
69
+
70
+ ### `workflows diagnose`
71
+
72
+ Explain run state without decrypting payloads
73
+
74
+ **Usage:** `workflows diagnose <run-id> [options]`
75
+
76
+ **Options:**
77
+
78
+ | Flag | Description | Default | Required |
79
+ |------|-------------|---------|----------|
80
+ | `--project-id <id>` | Project ID | - | Yes |
81
+ | `--environment-id <id>` | Environment ID | - | Yes |
82
+ | `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
83
+
84
+ ### `workflows start`
85
+
86
+ Start a run with an explicit deduplication key
87
+
88
+ **Usage:** `workflows start <workflow> [options]`
89
+
90
+ **Options:**
91
+
92
+ | Flag | Description | Default | Required |
93
+ |------|-------------|---------|----------|
94
+ | `--project-id <id>` | Project ID | - | Yes |
95
+ | `--environment-id <id>` | Environment ID | - | Yes |
96
+ | `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
97
+ | `--idempotency-key <key>` | Stable key for this logical start | - | Yes |
98
+ | `--input <json>` | Input JSON | `[object Object]` | No |
99
+
100
+ ### `workflows cancel`
101
+
102
+ cancel a run
103
+
104
+ **Usage:** `workflows cancel <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
+ | `--yes` | Confirm this mutation | - | No |
114
+
115
+ ### `workflows resume`
116
+
117
+ resume a run
118
+
119
+ **Usage:** `workflows resume <run-id> [options]`
120
+
121
+ **Options:**
122
+
123
+ | Flag | Description | Default | Required |
124
+ |------|-------------|---------|----------|
125
+ | `--project-id <id>` | Project ID | - | Yes |
126
+ | `--environment-id <id>` | Environment ID | - | Yes |
127
+ | `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
128
+ | `--yes` | Confirm this mutation | - | No |
129
+
130
+ ### `workflows retry`
131
+
132
+ retry a run
133
+
134
+ **Usage:** `workflows retry <run-id> [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
+ | `--yes` | Confirm this mutation | - | No |
144
+ | `--from-step <n>` | Truncate and replay from this sequence | - | No |
145
+
146
+ ### `workflows delete`
147
+
148
+ delete a run
149
+
150
+ **Usage:** `workflows delete <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 send-event`
162
+
163
+ Send an event to matching waits
164
+
165
+ **Usage:** `workflows send-event <name> [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
+ | `--key <key>` | Wait correlation key | - | No |
175
+ | `--payload <json>` | Event JSON | `[object Object]` | No |
176
+
177
+ ### `workflows watch`
178
+
179
+ Poll until terminal or the bounded deadline
180
+
181
+ **Usage:** `workflows watch <run-id> [options]`
182
+
183
+ **Options:**
184
+
185
+ | Flag | Description | Default | Required |
186
+ |------|-------------|---------|----------|
187
+ | `--project-id <id>` | Project ID | - | Yes |
188
+ | `--environment-id <id>` | Environment ID | - | Yes |
189
+ | `--json` | Output JSON (watch emits one JSON object per poll) | - | No |
190
+ | `--timeout <seconds>` | Overall timeout (max 3600 seconds) | `300` | No |
191
+
192
+ ### `workflows init`
193
+
194
+ Create a Node workflow worker in a new directory
195
+
196
+ **Usage:** `workflows init <directory> [options]`
197
+
198
+ **Options:**
199
+
200
+ | Flag | Description | Default | Required |
201
+ |------|-------------|---------|----------|
202
+ | `--sdk-package <tarball>` | Use a locally built npm pack tarball before SDK publication | - | No |
203
+ | `--json` | Output the created path and next steps as JSON | - | No |
204
+
205
+ ### `workflows dev`
206
+
207
+ Forward preview-environment invocations to a local SDK server
208
+
209
+ **Options:**
210
+
211
+ | Flag | Description | Default | Required |
212
+ |------|-------------|---------|----------|
213
+ | `--project-id <id>` | Project ID | - | Yes |
214
+ | `--environment-id <id>` | Undeployed, unprotected preview environment ID | - | Yes |
215
+ | `--port <port>` | Local SDK server port | `3000` | No |
216
+ | `--json` | Output tunnel readiness as JSON | - | No |