@temps-sdk/cli 0.1.38 → 0.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +14 -0
  2. package/dist/index.js +63877 -40097
  3. package/dist/skills/temps/SKILL.md +18 -9
  4. package/dist/skills/temps/evals/evals.json +23 -6
  5. package/dist/skills/temps/howtos/agent-handoff.md +106 -0
  6. package/dist/skills/temps/howtos/ci-automation.md +2 -3
  7. package/dist/skills/temps/howtos/curated-services.md +69 -0
  8. package/dist/skills/temps/howtos/deploy-application.md +8 -1
  9. package/dist/skills/temps/howtos/edge-rules.md +135 -0
  10. package/dist/skills/temps/howtos/managed-services.md +4 -4
  11. package/dist/skills/temps/howtos/projects-and-monorepos.md +2 -1
  12. package/dist/skills/temps/references/cli-runtime.md +10 -18
  13. package/dist/skills/temps/references/commands/INDEX.md +11 -0
  14. package/dist/skills/temps/references/commands/access.md +4 -0
  15. package/dist/skills/temps/references/commands/agents.md +731 -0
  16. package/dist/skills/temps/references/commands/ai.md +2638 -9
  17. package/dist/skills/temps/references/commands/alarms.md +129 -0
  18. package/dist/skills/temps/references/commands/analytics.md +1199 -2
  19. package/dist/skills/temps/references/commands/apikeys.md +50 -1
  20. package/dist/skills/temps/references/commands/audit.md +1 -0
  21. package/dist/skills/temps/references/commands/backups.md +312 -0
  22. package/dist/skills/temps/references/commands/blob.md +169 -0
  23. package/dist/skills/temps/references/commands/cloud.md +73 -0
  24. package/dist/skills/temps/references/commands/cluster.md +223 -0
  25. package/dist/skills/temps/references/commands/configure.md +7 -0
  26. package/dist/skills/temps/references/commands/containers.md +45 -0
  27. package/dist/skills/temps/references/commands/context.md +6 -0
  28. package/dist/skills/temps/references/commands/custom-domains.md +32 -0
  29. package/dist/skills/temps/references/commands/data.md +11 -13
  30. package/dist/skills/temps/references/commands/deploy-image.md +3 -1
  31. package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
  32. package/dist/skills/temps/references/commands/deploy.md +2 -0
  33. package/dist/skills/temps/references/commands/deployments.md +560 -0
  34. package/dist/skills/temps/references/commands/dns-provider.md +63 -0
  35. package/dist/skills/temps/references/commands/domains.md +105 -0
  36. package/dist/skills/temps/references/commands/drop.md +2 -0
  37. package/dist/skills/temps/references/commands/edge-rules.md +218 -0
  38. package/dist/skills/temps/references/commands/email-domains.md +1 -0
  39. package/dist/skills/temps/references/commands/email-providers.md +64 -1
  40. package/dist/skills/temps/references/commands/emails.md +91 -0
  41. package/dist/skills/temps/references/commands/env-pull.md +2 -0
  42. package/dist/skills/temps/references/commands/env-push.md +2 -0
  43. package/dist/skills/temps/references/commands/environments.md +695 -2
  44. package/dist/skills/temps/references/commands/errors.md +1134 -61
  45. package/dist/skills/temps/references/commands/facets.md +6 -0
  46. package/dist/skills/temps/references/commands/flags.md +179 -0
  47. package/dist/skills/temps/references/commands/funnels.md +22 -2
  48. package/dist/skills/temps/references/commands/incidents.md +22 -0
  49. package/dist/skills/temps/references/commands/init.md +2 -0
  50. package/dist/skills/temps/references/commands/instances.md +6 -0
  51. package/dist/skills/temps/references/commands/instantiations.md +4 -0
  52. package/dist/skills/temps/references/commands/ip-access.md +96 -1
  53. package/dist/skills/temps/references/commands/kv.md +184 -0
  54. package/dist/skills/temps/references/commands/link.md +2 -0
  55. package/dist/skills/temps/references/commands/load-balancer.md +2 -0
  56. package/dist/skills/temps/references/commands/login.md +9 -1
  57. package/dist/skills/temps/references/commands/logs.md +405 -10
  58. package/dist/skills/temps/references/commands/mcp-servers.md +4 -0
  59. package/dist/skills/temps/references/commands/mcp.md +8 -1
  60. package/dist/skills/temps/references/commands/migrate.md +26 -0
  61. package/dist/skills/temps/references/commands/monitors.md +456 -0
  62. package/dist/skills/temps/references/commands/network-policy.md +147 -0
  63. package/dist/skills/temps/references/commands/nodes.md +209 -2
  64. package/dist/skills/temps/references/commands/notifications.md +173 -2
  65. package/dist/skills/temps/references/commands/open.md +2 -0
  66. package/dist/skills/temps/references/commands/otel-forward.md +16 -0
  67. package/dist/skills/temps/references/commands/otel.md +436 -0
  68. package/dist/skills/temps/references/commands/platform.md +57 -0
  69. package/dist/skills/temps/references/commands/plugin.md +106 -1
  70. package/dist/skills/temps/references/commands/presets.md +2 -0
  71. package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
  72. package/dist/skills/temps/references/commands/project-groups.md +72 -4
  73. package/dist/skills/temps/references/commands/projects.md +509 -4
  74. package/dist/skills/temps/references/commands/providers.md +533 -1
  75. package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
  76. package/dist/skills/temps/references/commands/revenue.md +223 -0
  77. package/dist/skills/temps/references/commands/rollback.md +2 -0
  78. package/dist/skills/temps/references/commands/sandbox.md +790 -10
  79. package/dist/skills/temps/references/commands/secrets.md +19 -6
  80. package/dist/skills/temps/references/commands/server.md +107 -0
  81. package/dist/skills/temps/references/commands/services.md +836 -5
  82. package/dist/skills/temps/references/commands/session-replay.md +8 -0
  83. package/dist/skills/temps/references/commands/settings.md +346 -0
  84. package/dist/skills/temps/references/commands/shield.md +354 -0
  85. package/dist/skills/temps/references/commands/skills.md +6 -0
  86. package/dist/skills/temps/references/commands/start.md +1 -0
  87. package/dist/skills/temps/references/commands/status-pages.md +376 -9
  88. package/dist/skills/temps/references/commands/status.md +2 -0
  89. package/dist/skills/temps/references/commands/surveys.md +165 -0
  90. package/dist/skills/temps/references/commands/teams.md +28 -0
  91. package/dist/skills/temps/references/commands/templates.md +22 -2
  92. package/dist/skills/temps/references/commands/tokens.md +106 -0
  93. package/dist/skills/temps/references/commands/traces.md +207 -0
  94. package/dist/skills/temps/references/commands/traefik-discovery.md +10 -0
  95. package/dist/skills/temps/references/commands/tunnels.md +141 -0
  96. package/dist/skills/temps/references/commands/up.md +2 -0
  97. package/dist/skills/temps/references/commands/users.md +127 -0
  98. package/dist/skills/temps/references/commands/vault.md +662 -0
  99. package/dist/skills/temps/references/commands/webhooks.md +10 -0
  100. package/dist/skills/temps/references/commands/workflow.md +2 -0
  101. package/dist/skills/temps/references/commands/workflows.md +563 -0
  102. package/dist/skills/temps/references/observability/analytics.md +2 -2
  103. package/dist/skills/temps/references/workflows/platform-operations.md +46 -36
  104. package/dist/skills/temps/scripts/generate_command_references.py +5 -3
  105. package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
  106. package/dist/skills/temps/scripts/test_validate_skill.py +25 -66
  107. package/dist/skills/temps/scripts/validate_skill.py +29 -43
  108. package/package.json +9 -3
  109. package/dist/skills/temps/scripts/__pycache__/generate_command_references.cpython-314.pyc +0 -0
  110. package/dist/skills/temps/scripts/__pycache__/test_generate_command_references.cpython-314.pyc +0 -0
  111. package/dist/skills/temps/scripts/__pycache__/test_validate_skill.cpython-314.pyc +0 -0
  112. package/dist/skills/temps/scripts/__pycache__/validate_skill.cpython-314.pyc +0 -0
@@ -4,6 +4,28 @@
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
+ - [`environments list`](#environments-list-alias-ls)
10
+ - [`environments create`](#environments-create)
11
+ - [`environments delete`](#environments-delete-alias-rm)
12
+ - [`environments vars`](#environments-vars)
13
+ - [`environments resources`](#environments-resources)
14
+ - [`environments timeouts`](#environments-timeouts)
15
+ - [`environments force-https`](#environments-force-https)
16
+ - [`environments scale`](#environments-scale)
17
+ - [`environments placement`](#environments-placement)
18
+ - [`environments isolation`](#environments-isolation)
19
+ - [`environments volumes`](#environments-volumes)
20
+ - [`environments ingress`](#environments-ingress)
21
+ - [`environments crons`](#environments-crons)
22
+ - [`environments reachability`](#environments-reachability)
23
+ - [`environments create-ingress-login-grant`](#environments-create-ingress-login-grant)
24
+ - [`environments sleep`](#environments-sleep)
25
+ - [`environments wake`](#environments-wake)
26
+ - [`environments health`](#environments-health)
27
+ - [`environments settings`](#environments-settings)
28
+
7
29
  ## `environments` (alias: `envs`, `env`)
8
30
 
9
31
  Manage environments and environment variables
@@ -18,7 +40,17 @@ Manage environments and environment variables
18
40
  - `timeouts` - View or set upstream request/idle timeouts for an environment
19
41
  - `force-https` - View or set the HTTP to HTTPS redirect override for an environment
20
42
  - `scale` - View or set the number of replicas for an environment
43
+ - `placement` - Where the scheduler would run an environment's replicas, and why
44
+ - `isolation` - How an environment's replicas are isolated: a container (process) or a Firecracker microVM (micro_vm). Honoured only for environments whose deployments run on the workload plane
45
+ - `volumes` - Persistent volumes mounted into an environment's replicas; a replica that mounts one is pinned to its node
46
+ - `ingress` - Whether visitors must sign in to Temps to open an environment
21
47
  - `crons` - Manage cron jobs
48
+ - `reachability` - Reachability commands
49
+ - `create-ingress-login-grant` - Create ingress login grant
50
+ - `sleep` - Sleep an on-demand environment
51
+ - `wake` - Wake a sleeping on-demand environment
52
+ - `health` - Health commands
53
+ - `settings` - Change any setting of one environment (by its numeric ID); flags left out keep their value. `resources`, `timeouts` and `force-https` cover the common ones by name
22
54
 
23
55
  ### `environments list` (alias: `ls`)
24
56
 
@@ -48,6 +80,8 @@ Create a new environment
48
80
 
49
81
  Delete an environment
50
82
 
83
+ **Usage:** `environments delete <environment> [options]`
84
+
51
85
  **Options:**
52
86
 
53
87
  | Flag | Description | Default | Required |
@@ -69,7 +103,7 @@ Manage environment variables
69
103
 
70
104
  - `list` (`ls`) - List environment variables
71
105
  - `get` - Get a specific environment variable
72
- - `set` - Set an environment variable
106
+ - `set` - Set an environment variable. For a secret, read the value from a file or stdin (--value-file, --value-stdin) so it stays out of shell history and `ps`; the CLI never prints it
73
107
  - `delete` (`rm`, `unset`) - Delete an environment variable
74
108
  - `import` - Import environment variables from a .env file
75
109
  - `export` - Export environment variables to .env format
@@ -90,6 +124,8 @@ List environment variables
90
124
 
91
125
  Get a specific environment variable
92
126
 
127
+ **Usage:** `environments vars get <key> [options]`
128
+
93
129
  **Options:**
94
130
 
95
131
  | Flag | Description | Default | Required |
@@ -98,7 +134,9 @@ Get a specific environment variable
98
134
 
99
135
  #### `environments vars set`
100
136
 
101
- Set an environment variable
137
+ Set an environment variable. For a secret, read the value from a file or stdin (--value-file, --value-stdin) so it stays out of shell history and `ps`; the CLI never prints it
138
+
139
+ **Usage:** `environments vars set <key> [value] [options]`
102
140
 
103
141
  **Options:**
104
142
 
@@ -109,11 +147,16 @@ Set an environment variable
109
147
  | `--no-preview` | Exclude from preview environments | - | No |
110
148
  | `--update` | Update existing variable instead of creating new | - | No |
111
149
  | `--secret` | Store as a secret: the value is masked in the UI and never returned by the API. One-way — to make a secret readable again you must delete the variable and create it anew | - | No |
150
+ | `--value-file <path>` | Read the value from a file, byte-for-byte (- reads stdin). Keeps it out of shell history | - | No |
151
+ | `--value-stdin` | Read the value from stdin, e.g. piped from a secret manager | - | No |
152
+ | `--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 |
112
153
 
113
154
  #### `environments vars delete` (alias: `rm`, `unset`)
114
155
 
115
156
  Delete an environment variable
116
157
 
158
+ **Usage:** `environments vars delete <key> [options]`
159
+
117
160
  **Options:**
118
161
 
119
162
  | Flag | Description | Default | Required |
@@ -125,6 +168,8 @@ Delete an environment variable
125
168
 
126
169
  Import environment variables from a .env file
127
170
 
171
+ **Usage:** `environments vars import [file] [options]`
172
+
128
173
  **Options:**
129
174
 
130
175
  | Flag | Description | Default | Required |
@@ -147,6 +192,8 @@ Export environment variables to .env format
147
192
 
148
193
  View or set CPU/memory resources for an environment
149
194
 
195
+ **Usage:** `environments resources <environment> [options]`
196
+
150
197
  **Options:**
151
198
 
152
199
  | Flag | Description | Default | Required |
@@ -162,6 +209,8 @@ View or set CPU/memory resources for an environment
162
209
 
163
210
  View or set upstream request/idle timeouts for an environment
164
211
 
212
+ **Usage:** `environments timeouts <environment> [options]`
213
+
165
214
  **Options:**
166
215
 
167
216
  | Flag | Description | Default | Required |
@@ -177,6 +226,8 @@ View or set upstream request/idle timeouts for an environment
177
226
 
178
227
  View or set the HTTP to HTTPS redirect override for an environment
179
228
 
229
+ **Usage:** `environments force-https <environment> [options]`
230
+
180
231
  **Options:**
181
232
 
182
233
  | Flag | Description | Default | Required |
@@ -198,6 +249,266 @@ View or set the number of replicas for an environment
198
249
  | `-p, --project <project>` | Project slug or ID | - | No |
199
250
  | `-e, --environment <env>` | Environment name or slug | `production` | No |
200
251
  | `-r, --replicas <count>` | Number of replicas to set | - | No |
252
+ | `--load-balancing <json>` | Replica routing policy as JSON; null restores project inheritance | - | No |
253
+ | `--json` | Output in JSON format | - | No |
254
+
255
+ ### `environments placement`
256
+
257
+ Where the scheduler would run an environment's replicas, and why
258
+
259
+ **Subcommands:**
260
+
261
+ - `explain` - Show the nodes each replica would run on now, the eligible nodes ranked, and the ones excluded with the reason
262
+ - `recommend` - Recommend target nodes from where the environment actually ran (recommended, never applied)
263
+
264
+ #### `environments placement explain`
265
+
266
+ Show the nodes each replica would run on now, the eligible nodes ranked, and the ones excluded with the reason
267
+
268
+ **Usage:** `environments placement explain <environment> [options]`
269
+
270
+ **Options:**
271
+
272
+ | Flag | Description | Default | Required |
273
+ |------|-------------|---------|----------|
274
+ | `-p, --project <project>` | Project slug | - | No |
275
+ | `--json` | Output in JSON format | - | No |
276
+
277
+ #### `environments placement recommend`
278
+
279
+ Recommend target nodes from where the environment actually ran (recommended, never applied)
280
+
281
+ **Usage:** `environments placement recommend <environment> [options]`
282
+
283
+ **Options:**
284
+
285
+ | Flag | Description | Default | Required |
286
+ |------|-------------|---------|----------|
287
+ | `-p, --project <project>` | Project slug | - | No |
288
+ | `--window-days <days>` | How many days of history to consider (1-90, default 7) | - | No |
289
+ | `--json` | Output in JSON format | - | No |
290
+
291
+ ### `environments isolation`
292
+
293
+ How an environment's replicas are isolated: a container (process) or a Firecracker microVM (micro_vm). Honoured only for environments whose deployments run on the workload plane
294
+
295
+ **Subcommands:**
296
+
297
+ - `show` - Show the isolation and whether it takes effect
298
+ - `set` - Set the isolation: process or micro_vm (a microVM replica only runs on a node that provides one)
299
+
300
+ #### `environments isolation show`
301
+
302
+ Show the isolation and whether it takes effect
303
+
304
+ **Usage:** `environments isolation show <environment> [options]`
305
+
306
+ **Options:**
307
+
308
+ | Flag | Description | Default | Required |
309
+ |------|-------------|---------|----------|
310
+ | `-p, --project <project>` | Project slug | - | No |
311
+ | `--json` | Output in JSON format | - | No |
312
+
313
+ #### `environments isolation set`
314
+
315
+ Set the isolation: process or micro_vm (a microVM replica only runs on a node that provides one)
316
+
317
+ **Usage:** `environments isolation set <environment> <isolation> [options]`
318
+
319
+ **Options:**
320
+
321
+ | Flag | Description | Default | Required |
322
+ |------|-------------|---------|----------|
323
+ | `-p, --project <project>` | Project slug | - | No |
324
+ | `--json` | Output in JSON format | - | No |
325
+
326
+ ### `environments volumes`
327
+
328
+ Persistent volumes mounted into an environment's replicas; a replica that mounts one is pinned to its node
329
+
330
+ **Subcommands:**
331
+
332
+ - `list` (`ls`) - List the environment's volumes, newest first
333
+ - `create` - Create a volume (attach it to mount it)
334
+ - `status` - Show whether the next deploy mounts the attached volumes, and what to fix if not
335
+ - `attach` - Mount a volume (id or name) into every replica at --mount-path
336
+ - `detach` - Stop mounting a volume (id or name); its data is kept
337
+ - `rm` (`delete`) - Delete a volume (id or name), and its data unless it was created with --retain
338
+
339
+ #### `environments volumes list` (alias: `ls`)
340
+
341
+ List the environment's volumes, newest first
342
+
343
+ **Usage:** `environments volumes list <environment> [options]`
344
+
345
+ **Options:**
346
+
347
+ | Flag | Description | Default | Required |
348
+ |------|-------------|---------|----------|
349
+ | `-p, --project <project>` | Project slug | - | No |
350
+ | `--page <page>` | Page number (default 1) | - | No |
351
+ | `--page-size <size>` | Results per page (default 20, max 100) | - | No |
352
+ | `--json` | Output in JSON format | - | No |
353
+
354
+ #### `environments volumes create`
355
+
356
+ Create a volume (attach it to mount it)
357
+
358
+ **Usage:** `environments volumes create <environment> [options]`
359
+
360
+ **Options:**
361
+
362
+ | Flag | Description | Default | Required |
363
+ |------|-------------|---------|----------|
364
+ | `-p, --project <project>` | Project slug | - | No |
365
+ | `-n, --name <name>` | Volume name: 2-64 characters of a-z, 0-9, "_", "." or "-" | - | Yes |
366
+ | `--size-mb <mb>` | Size in MB, when the backend supports a size | - | No |
367
+ | `--retain` | Keep the data when the volume is deleted | - | No |
368
+ | `--json` | Output in JSON format | - | No |
369
+
370
+ #### `environments volumes status`
371
+
372
+ Show whether the next deploy mounts the attached volumes, and what to fix if not
373
+
374
+ **Usage:** `environments volumes status <environment> [options]`
375
+
376
+ **Options:**
377
+
378
+ | Flag | Description | Default | Required |
379
+ |------|-------------|---------|----------|
380
+ | `-p, --project <project>` | Project slug | - | No |
381
+ | `--json` | Output in JSON format | - | No |
382
+
383
+ #### `environments volumes attach`
384
+
385
+ Mount a volume (id or name) into every replica at --mount-path
386
+
387
+ **Usage:** `environments volumes attach <environment> <volume> [options]`
388
+
389
+ **Options:**
390
+
391
+ | Flag | Description | Default | Required |
392
+ |------|-------------|---------|----------|
393
+ | `-p, --project <project>` | Project slug | - | No |
394
+ | `--mount-path <path>` | Absolute path inside each replica | - | Yes |
395
+ | `--read-only` | Mount it read-only | - | No |
396
+ | `--json` | Output in JSON format | - | No |
397
+
398
+ #### `environments volumes detach`
399
+
400
+ Stop mounting a volume (id or name); its data is kept
401
+
402
+ **Usage:** `environments volumes detach <environment> <volume> [options]`
403
+
404
+ **Options:**
405
+
406
+ | Flag | Description | Default | Required |
407
+ |------|-------------|---------|----------|
408
+ | `-p, --project <project>` | Project slug | - | No |
409
+ | `--json` | Output in JSON format | - | No |
410
+
411
+ #### `environments volumes rm` (alias: `delete`)
412
+
413
+ Delete a volume (id or name), and its data unless it was created with --retain
414
+
415
+ **Usage:** `environments volumes rm <environment> <volume> [options]`
416
+
417
+ **Options:**
418
+
419
+ | Flag | Description | Default | Required |
420
+ |------|-------------|---------|----------|
421
+ | `-p, --project <project>` | Project slug | - | No |
422
+ | `-f, --force` | Skip confirmation | - | No |
423
+ | `-y, --yes` | Skip confirmation (alias for --force) | - | No |
424
+ | `--json` | Output in JSON format | - | No |
425
+
426
+ ### `environments ingress`
427
+
428
+ Whether visitors must sign in to Temps to open an environment
429
+
430
+ **Subcommands:**
431
+
432
+ - `show` - Show the login requirement and whether the proxy enforces it now
433
+ - `set` - Require visitors to sign in to Temps, or stop requiring it
434
+ - `delete-connector` - Delete a tunnel at the provider and unpublish every hostname it carries
435
+ - `get-connector` - Get one tunnel
436
+ - `retry-hostname-dns` - Retry DNS setup for a failed hostname publication on its current tunnel
437
+ - `list-providers` - List the tunnel providers this control plane offers
438
+
439
+ #### `environments ingress show`
440
+
441
+ Show the login requirement and whether the proxy enforces it now
442
+
443
+ **Usage:** `environments ingress show <environment> [options]`
444
+
445
+ **Options:**
446
+
447
+ | Flag | Description | Default | Required |
448
+ |------|-------------|---------|----------|
449
+ | `-p, --project <project>` | Project slug | - | No |
450
+ | `--json` | Output in JSON format | - | No |
451
+
452
+ #### `environments ingress set`
453
+
454
+ Require visitors to sign in to Temps, or stop requiring it
455
+
456
+ **Usage:** `environments ingress set <environment> [options]`
457
+
458
+ **Options:**
459
+
460
+ | Flag | Description | Default | Required |
461
+ |------|-------------|---------|----------|
462
+ | `-p, --project <project>` | Project slug | - | No |
463
+ | `--require-login` | Require sign-in only when ingress mode is enforce. Check login_enforced in JSON output or Enforced now in text output | - | No |
464
+ | `--no-require-login` | Visitors do not need to sign in | - | No |
465
+ | `--json` | Output in JSON format | - | No |
466
+
467
+ #### `environments ingress delete-connector`
468
+
469
+ Delete a tunnel at the provider and unpublish every hostname it carries
470
+
471
+ **Usage:** `environments ingress delete-connector <id> [options]`
472
+
473
+ **Options:**
474
+
475
+ | Flag | Description | Default | Required |
476
+ |------|-------------|---------|----------|
477
+ | `-y, --yes` | Do not ask for confirmation | - | No |
478
+ | `--json` | Output in JSON format | - | No |
479
+
480
+ #### `environments ingress get-connector`
481
+
482
+ Get one tunnel
483
+
484
+ **Usage:** `environments ingress get-connector <id> [options]`
485
+
486
+ **Options:**
487
+
488
+ | Flag | Description | Default | Required |
489
+ |------|-------------|---------|----------|
490
+ | `--json` | Output in JSON format | - | No |
491
+
492
+ #### `environments ingress retry-hostname-dns`
493
+
494
+ Retry DNS setup for a failed hostname publication on its current tunnel
495
+
496
+ **Usage:** `environments ingress retry-hostname-dns <id> <hostname> [options]`
497
+
498
+ **Options:**
499
+
500
+ | Flag | Description | Default | Required |
501
+ |------|-------------|---------|----------|
502
+ | `--json` | Output in JSON format | - | No |
503
+
504
+ #### `environments ingress list-providers`
505
+
506
+ List the tunnel providers this control plane offers
507
+
508
+ **Options:**
509
+
510
+ | Flag | Description | Default | Required |
511
+ |------|-------------|---------|----------|
201
512
  | `--json` | Output in JSON format | - | No |
202
513
 
203
514
  ### `environments crons`
@@ -250,3 +561,385 @@ Show cron job execution history
250
561
  | `--page <page>` | Page number | `1` | No |
251
562
  | `--per-page <count>` | Items per page | `20` | No |
252
563
  | `--json` | Output in JSON format | - | No |
564
+
565
+ ### `environments reachability`
566
+
567
+ Reachability commands
568
+
569
+ **Subcommands:**
570
+
571
+ - `get-certificate-methods` - Which ways to give a domain HTTPS work here
572
+ - `check-cloudflare-token` - Check which permissions a pasted Cloudflare API token has
573
+ - `get-connector-hosts` - What a tunnel publishes for environments, or would once turned on
574
+ - `set-connector-hosts` - Turn a tunnel's environment hosts on or off
575
+ - `get` - Whether visitors can reach each address of an environment
576
+ - `apply` - Carry out one option of a stored plan
577
+ - `get-choices` - Which audiences, and which ways in, can work for an environment
578
+ - `plan` - What *Make it reachable* would do for an address
579
+ - `list-runs` - The newest runs of an environment
580
+ - `get-run` - One run, with the progress of each step and what it created
581
+ - `decide-conflict` - Answer a conflict: a DNS record someone else changed while the run was setting it, or after it did (ADR..
582
+ - `resume-run` - Carry on a waiting or interrupted run from its first step not done
583
+ - `undo-run` - Remove exactly what a run created, newest first
584
+ - `get-preview-domain-status` - Whether the preview domain can be reached
585
+
586
+ #### `environments reachability get-certificate-methods`
587
+
588
+ Which ways to give a domain HTTPS work here
589
+
590
+ **Options:**
591
+
592
+ | Flag | Description | Default | Required |
593
+ |------|-------------|---------|----------|
594
+ | `--domain <value>` | The domain to judge, such as 'my-app.example.com' or '*.example.com' | - | No |
595
+ | `--json` | Output in JSON format | - | No |
596
+
597
+ #### `environments reachability check-cloudflare-token`
598
+
599
+ Check which permissions a pasted Cloudflare API token has
600
+
601
+ **Options:**
602
+
603
+ | Flag | Description | Default | Required |
604
+ |------|-------------|---------|----------|
605
+ | `--hostname <value>` | A hostname the token is meant to serve, when the zone is not known: the longest zone the token reaches... | - | No |
606
+ | `--token-stdin` | The token, as pasted [required] (read from stdin) | - | No |
607
+ | `--token-file <path>` | The token, as pasted [required] (read from a file) | - | No |
608
+ | `--zone <value>` | The zone the token is meant for | - | No |
609
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
610
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
611
+ | `--json` | Output in JSON format | - | No |
612
+
613
+ #### `environments reachability get-connector-hosts`
614
+
615
+ What a tunnel publishes for environments, or would once turned on
616
+
617
+ **Usage:** `environments reachability get-connector-hosts <id> [options]`
618
+
619
+ **Options:**
620
+
621
+ | Flag | Description | Default | Required |
622
+ |------|-------------|---------|----------|
623
+ | `--json` | Output in JSON format | - | No |
624
+
625
+ #### `environments reachability set-connector-hosts`
626
+
627
+ Turn a tunnel's environment hosts on or off
628
+
629
+ **Usage:** `environments reachability set-connector-hosts <id> [options]`
630
+
631
+ **Options:**
632
+
633
+ | Flag | Description | Default | Required |
634
+ |------|-------------|---------|----------|
635
+ | `--confirm <value>` | The 'confirm_token' of the list that was shown and accepted: turning on publishes every host in it,... | - | No |
636
+ | `--enabled` | Body field enabled [required] | - | No |
637
+ | `--no-enabled` | Set enabled to false | - | No |
638
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
639
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
640
+ | `--json` | Output in JSON format | - | No |
641
+
642
+ #### `environments reachability get`
643
+
644
+ Whether visitors can reach each address of an environment
645
+
646
+ **Usage:** `environments reachability get <environment-id> [options]`
647
+
648
+ **Options:**
649
+
650
+ | Flag | Description | Default | Required |
651
+ |------|-------------|---------|----------|
652
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
653
+ | `--json` | Output in JSON format | - | No |
654
+
655
+ #### `environments reachability apply`
656
+
657
+ Carry out one option of a stored plan
658
+
659
+ **Usage:** `environments reachability apply <environment-id> [options]`
660
+
661
+ **Options:**
662
+
663
+ | Flag | Description | Default | Required |
664
+ |------|-------------|---------|----------|
665
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
666
+ | `--answers <json>` | Answers to the option's fields by key. 'address', when given, must be the plan's; 'dns_provider_id' takes... (JSON) | - | No |
667
+ | `--confirmed` | The user saw and accepted the option's 'confirmation' | - | No |
668
+ | `--no-confirmed` | Set confirmed to false | - | No |
669
+ | `--option <value>` | Which option of the plan to carry out (one of: existing_tunnel, direct_managed_dns, new_tunnel, new_tunnel_with_token, direct_manual_dns, private_worker, tailscale_serve, tailscale_service, tailscale_service_with_credential, tunnel_environment_hosts) [required] | - | No |
670
+ | `--plan-id <value>` | The plan this acts on, from 'POST …/reachability/plan' [required] | - | No |
671
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
672
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
673
+ | `--json` | Output in JSON format | - | No |
674
+
675
+ #### `environments reachability get-choices`
676
+
677
+ Which audiences, and which ways in, can work for an environment
678
+
679
+ **Usage:** `environments reachability get-choices <environment-id> [options]`
680
+
681
+ **Options:**
682
+
683
+ | Flag | Description | Default | Required |
684
+ |------|-------------|---------|----------|
685
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
686
+ | `--json` | Output in JSON format | - | No |
687
+
688
+ #### `environments reachability plan`
689
+
690
+ What *Make it reachable* would do for an address
691
+
692
+ **Usage:** `environments reachability plan <environment-id> [options]`
693
+
694
+ **Options:**
695
+
696
+ | Flag | Description | Default | Required |
697
+ |------|-------------|---------|----------|
698
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
699
+ | `--address <value>` | The hostname to make reachable; Temps suggests one without it | - | No |
700
+ | `--audience <value>` | Who an address is for (one of: public, private, signed_in, tailnet_users, unsupported) | - | No |
701
+ | `--gate <value>` | Which gate an address has (D7) (one of: temps, cloudflare_access, unsupported) | - | No |
702
+ | `--principals <json>` | For 'tailnet_users': the tailnet logins and tags it admits (ADR 065 D6) (JSON) | - | No |
703
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
704
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
705
+ | `--json` | Output in JSON format | - | No |
706
+
707
+ #### `environments reachability list-runs`
708
+
709
+ The newest runs of an environment
710
+
711
+ **Usage:** `environments reachability list-runs <environment-id> [options]`
712
+
713
+ **Options:**
714
+
715
+ | Flag | Description | Default | Required |
716
+ |------|-------------|---------|----------|
717
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
718
+ | `--json` | Output in JSON format | - | No |
719
+
720
+ #### `environments reachability get-run`
721
+
722
+ One run, with the progress of each step and what it created
723
+
724
+ **Usage:** `environments reachability get-run <environment-id> <run-id> [options]`
725
+
726
+ **Options:**
727
+
728
+ | Flag | Description | Default | Required |
729
+ |------|-------------|---------|----------|
730
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
731
+ | `--json` | Output in JSON format | - | No |
732
+
733
+ #### `environments reachability decide-conflict`
734
+
735
+ Answer a conflict: a DNS record someone else changed while the run was setting it, or after it did (ADR..
736
+
737
+ **Usage:** `environments reachability decide-conflict <environment-id> <run-id> [options]`
738
+
739
+ **Options:**
740
+
741
+ | Flag | Description | Default | Required |
742
+ |------|-------------|---------|----------|
743
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
744
+ | `--decision <value>` | A user's answer to a conflict (ADR 064 D4), journaled with the entry (one of: keep, overwrite) [required] | - | No |
745
+ | `--key <value>` | The journal entry in conflict [required] | - | No |
746
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
747
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
748
+ | `--json` | Output in JSON format | - | No |
749
+
750
+ #### `environments reachability resume-run`
751
+
752
+ Carry on a waiting or interrupted run from its first step not done
753
+
754
+ **Usage:** `environments reachability resume-run <environment-id> <run-id> [options]`
755
+
756
+ **Options:**
757
+
758
+ | Flag | Description | Default | Required |
759
+ |------|-------------|---------|----------|
760
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
761
+ | `--answers <json>` | 'cloudflare_api_token', when the run had not saved the account yet (JSON) | - | No |
762
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
763
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
764
+ | `--json` | Output in JSON format | - | No |
765
+
766
+ #### `environments reachability undo-run`
767
+
768
+ Remove exactly what a run created, newest first
769
+
770
+ **Usage:** `environments reachability undo-run <environment-id> <run-id> [options]`
771
+
772
+ **Options:**
773
+
774
+ | Flag | Description | Default | Required |
775
+ |------|-------------|---------|----------|
776
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
777
+ | `--json` | Output in JSON format | - | No |
778
+
779
+ #### `environments reachability get-preview-domain-status`
780
+
781
+ Whether the preview domain can be reached
782
+
783
+ **Options:**
784
+
785
+ | Flag | Description | Default | Required |
786
+ |------|-------------|---------|----------|
787
+ | `--json` | Output in JSON format | - | No |
788
+
789
+ ### `environments create-ingress-login-grant`
790
+
791
+ Create ingress login grant
792
+
793
+ **Options:**
794
+
795
+ | Flag | Description | Default | Required |
796
+ |------|-------------|---------|----------|
797
+ | `--host <value>` | The hostname, without a port [required] | - | No |
798
+ | `--next <value>` | Path on the host to return to | - | No |
799
+ | `--owner-id <n>` | Body field owner_id [required] | - | No |
800
+ | `--owner-kind <value>` | 'environment' or 'sandbox' (a sandbox preview host) [required] | - | No |
801
+ | `--port <n>` | The port the visitor reached the host on, when the proxy's request carries one (it leaves out the scheme's... | - | No |
802
+ | `--scheme <value>` | 'http' or 'https': how the visitor reached the host [required] | - | No |
803
+ | `--sig <value>` | Body field sig [required] | - | No |
804
+ | `--ts <n>` | Unix seconds the proxy signed the request at [required] | - | No |
805
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
806
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
807
+ | `--json` | Output in JSON format | - | No |
808
+
809
+ ### `environments sleep`
810
+
811
+ Sleep an on-demand environment
812
+
813
+ **Usage:** `environments sleep <env-id> [options]`
814
+
815
+ **Options:**
816
+
817
+ | Flag | Description | Default | Required |
818
+ |------|-------------|---------|----------|
819
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
820
+ | `--json` | Output in JSON format | - | No |
821
+
822
+ ### `environments wake`
823
+
824
+ Wake a sleeping on-demand environment
825
+
826
+ **Usage:** `environments wake <env-id> [options]`
827
+
828
+ **Options:**
829
+
830
+ | Flag | Description | Default | Required |
831
+ |------|-------------|---------|----------|
832
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
833
+ | `--json` | Output in JSON format | - | No |
834
+
835
+ ### `environments health`
836
+
837
+ Health commands
838
+
839
+ **Subcommands:**
840
+
841
+ - `get-runtime` - Get runtime health
842
+ - `update-runtime` - Update runtime health
843
+ - `get-project-runtime-health` - Get project runtime health
844
+
845
+ #### `environments health get-runtime`
846
+
847
+ Get runtime health
848
+
849
+ **Usage:** `environments health get-runtime <environment-id> [options]`
850
+
851
+ **Options:**
852
+
853
+ | Flag | Description | Default | Required |
854
+ |------|-------------|---------|----------|
855
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
856
+ | `--json` | Output in JSON format | - | No |
857
+
858
+ #### `environments health update-runtime`
859
+
860
+ Update runtime health
861
+
862
+ **Usage:** `environments health update-runtime <environment-id> [options]`
863
+
864
+ **Options:**
865
+
866
+ | Flag | Description | Default | Required |
867
+ |------|-------------|---------|----------|
868
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
869
+ | `--enabled` | Body field enabled [required] | - | No |
870
+ | `--no-enabled` | Set enabled to false | - | No |
871
+ | `--paused` | Body field paused [required] | - | No |
872
+ | `--no-paused` | Set paused to false | - | No |
873
+ | `--required-healthy <n>` | Body field required_healthy | - | No |
874
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
875
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
876
+ | `--json` | Output in JSON format | - | No |
877
+
878
+ #### `environments health get-project-runtime-health`
879
+
880
+ Get project runtime health
881
+
882
+ **Options:**
883
+
884
+ | Flag | Description | Default | Required |
885
+ |------|-------------|---------|----------|
886
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
887
+ | `--json` | Output in JSON format | - | No |
888
+
889
+ ### `environments settings`
890
+
891
+ Change any setting of one environment (by its numeric ID); flags left out keep their value. `resources`, `timeouts` and `force-https` cover the common ones by name
892
+
893
+ **Usage:** `environments settings <env-id> [options]`
894
+
895
+ **Options:**
896
+
897
+ | Flag | Description | Default | Required |
898
+ |------|-------------|---------|----------|
899
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
900
+ | `--branch <value>` | Branch this environment deploys | - | No |
901
+ | `--automatic-deploy` | Deploy automatically on push | - | No |
902
+ | `--no-automatic-deploy` | Set automatic_deploy to false | - | No |
903
+ | `--protected` | Never deploy this environment automatically from a push | - | No |
904
+ | `--no-protected` | Set protected to false | - | No |
905
+ | `--replicas <n>` | Container replicas | - | No |
906
+ | `--cpu-limit <n>` | CPU limit per container, in microcores | - | No |
907
+ | `--cpu-request <n>` | CPU reserved per container, in microcores | - | No |
908
+ | `--memory-limit <n>` | Memory limit per container, in MB | - | No |
909
+ | `--memory-request <n>` | Memory reserved per container, in MB | - | No |
910
+ | `--exposed-port <n>` | Port the container listens on (overrides the project's) | - | No |
911
+ | `--anti-affinity` | Spread replicas across different nodes | - | No |
912
+ | `--no-anti-affinity` | Set anti_affinity to false | - | No |
913
+ | `--target-nodes <n>` | Only deploy to this node ID (repeatable) (repeatable) | - | No |
914
+ | `--target-labels <json>` | Only deploy to nodes with these labels, as JSON, e.g. {"region":"eu"} (JSON) | - | No |
915
+ | `--build-location <value>` | Where a source deployment's image is built (one of: control_plane, node, ci) | - | No |
916
+ | `--cross-architecture-builds` | Build one image per architecture the eligible nodes run | - | No |
917
+ | `--no-cross-architecture-builds` | Set cross_architecture_builds to false | - | No |
918
+ | `--on-demand` | Start containers on the first request and stop them when idle | - | No |
919
+ | `--no-on-demand` | Set on_demand to false | - | No |
920
+ | `--idle-timeout-seconds <n>` | Idle seconds (60-86400) before an on-demand environment stops | - | No |
921
+ | `--wake-timeout-seconds <n>` | Seconds (5-120) to wait for an on-demand environment to wake | - | No |
922
+ | `--health <json>` | Health check settings as JSON, e.g. {"path":"/healthz"} (JSON) | - | No |
923
+ | `--health-check-timeout-seconds <n>` | Seconds (30-3600) a new deployment's containers get to become ready | - | No |
924
+ | `--stop-timeout-seconds <n>` | Seconds (1-3600) the previous deployment gets to finish in-flight requests | - | No |
925
+ | `--load-balancing <json>` | Load balancing settings as JSON (JSON) | - | No |
926
+ | `--max-concurrent-connections <n>` | Cap on concurrent requests to this environment's upstream (0 = unlimited) | - | No |
927
+ | `--request-timeout-seconds <n>` | HTTP request timeout, in seconds | - | No |
928
+ | `--sse-idle-timeout-seconds <n>` | Idle timeout of SSE streams, in seconds | - | No |
929
+ | `--websocket-idle-timeout-seconds <n>` | Idle timeout of WebSocket connections, in seconds | - | No |
930
+ | `--force-https` | Redirect HTTP to HTTPS | - | No |
931
+ | `--no-force-https` | Set force_https to false | - | No |
932
+ | `--password-stdin` | Password visitors must enter to open the environment (read from stdin) | - | No |
933
+ | `--password-file <path>` | Password visitors must enter to open the environment (read from a file) | - | No |
934
+ | `--security <json>` | Security settings (headers, rate limits) as JSON (JSON) | - | No |
935
+ | `--attack-mode` | Ask visitors to solve a CAPTCHA | - | No |
936
+ | `--no-attack-mode` | Set attack_mode to false | - | No |
937
+ | `--shield-mode <value>` | How Shield acts on its verdicts (one of: off, log, selective, attack) | - | No |
938
+ | `--shield-exempt-paths <value>` | Path Shield never challenges, e.g. /api/* (repeatable; replaces the list) (repeatable) | - | No |
939
+ | `--performance-metrics-enabled` | Collect web performance metrics | - | No |
940
+ | `--no-performance-metrics-enabled` | Set performance_metrics_enabled to false | - | No |
941
+ | `--session-recording-enabled` | Record visitor sessions | - | No |
942
+ | `--no-session-recording-enabled` | Set session_recording_enabled to false | - | No |
943
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
944
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
945
+ | `--json` | Output in JSON format | - | No |