@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
@@ -7,23 +7,48 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
7
7
  ## Contents
8
8
 
9
9
  - [`sandbox create`](#sandbox-create)
10
- - [`sandbox list`](#sandbox-list)
10
+ - [`sandbox list`](#sandbox-list-alias-ls)
11
11
  - [`sandbox nodes`](#sandbox-nodes)
12
12
  - [`sandbox show`](#sandbox-show)
13
- - [`sandbox rm`](#sandbox-rm)
13
+ - [`sandbox rm`](#sandbox-rm-alias-stop-destroy)
14
14
  - [`sandbox pause`](#sandbox-pause)
15
15
  - [`sandbox resume`](#sandbox-resume)
16
16
  - [`sandbox restart`](#sandbox-restart)
17
17
  - [`sandbox clone`](#sandbox-clone)
18
- - [`sandbox shell`](#sandbox-shell)
18
+ - [`sandbox shell`](#sandbox-shell-alias-attach)
19
19
  - [`sandbox extend`](#sandbox-extend)
20
20
  - [`sandbox exec`](#sandbox-exec)
21
21
  - [`sandbox logs`](#sandbox-logs)
22
22
  - [`sandbox domain`](#sandbox-domain)
23
23
  - [`sandbox password`](#sandbox-password)
24
+ - [`sandbox preview-access`](#sandbox-preview-access)
25
+ - [`sandbox egress`](#sandbox-egress)
24
26
  - [`sandbox fs`](#sandbox-fs)
25
27
  - [`sandbox snapshots`](#sandbox-snapshots)
26
28
  - [`sandbox snapshot`](#sandbox-snapshot)
29
+ - [`sandbox service-access`](#sandbox-service-access)
30
+ - [`sandbox internal-access`](#sandbox-internal-access)
31
+ - [`sandbox services`](#sandbox-services)
32
+ - [`sandbox get-creation`](#sandbox-get-creation)
33
+ - [`sandbox get-image-preparation`](#sandbox-get-image-preparation)
34
+ - [`sandbox prepare-images`](#sandbox-prepare-images)
35
+ - [`sandbox update-host-image-preparation`](#sandbox-update-host-image-preparation)
36
+ - [`sandbox get-resource-defaults`](#sandbox-get-resource-defaults)
37
+ - [`sandbox rootfs-report`](#sandbox-rootfs-report)
38
+ - [`sandbox rootfs-gc`](#sandbox-rootfs-gc)
39
+ - [`sandbox get-cmd`](#sandbox-get-cmd)
40
+ - [`sandbox cmd-logs`](#sandbox-cmd-logs)
41
+ - [`sandbox cmd`](#sandbox-cmd)
42
+ - [`sandbox get-creation-by`](#sandbox-get-creation-by)
43
+ - [`sandbox list-dir`](#sandbox-list-dir)
44
+ - [`sandbox write-files`](#sandbox-write-files)
45
+ - [`sandbox list-jobs`](#sandbox-list-jobs)
46
+ - [`sandbox job-status`](#sandbox-job-status)
47
+ - [`sandbox kill-job`](#sandbox-kill-job)
48
+ - [`sandbox create-preview-link`](#sandbox-create-preview-link)
49
+ - [`sandbox resize`](#sandbox-resize)
50
+ - [`sandbox issue-runtime-environment`](#sandbox-issue-runtime-environment)
51
+ - [`sandbox cmd-kill`](#sandbox-cmd-kill)
27
52
 
28
53
  ## `sandbox`
29
54
 
@@ -34,7 +59,7 @@ Manage standalone sandboxes (/v1/sandbox API)
34
59
  - `create` - Create a new sandbox
35
60
  - `list` (`ls`) - List your sandboxes
36
61
  - `nodes` - List nodes that can run sandboxes and control which ones take new sandboxes
37
- - `show` - Show details for a sandbox
62
+ - `show` - Show a sandbox: status, image, node, expiry, preview access and outbound policy
38
63
  - `rm` (`stop`, `destroy`) - Remove a sandbox permanently (aliases: stop, destroy)
39
64
  - `pause` - Pause a running sandbox (non-destructive — resume later with `sandbox resume`)
40
65
  - `resume` - Resume a paused sandbox
@@ -42,13 +67,38 @@ Manage standalone sandboxes (/v1/sandbox API)
42
67
  - `clone` - Clone a git repo or extract a tarball into a running sandbox
43
68
  - `shell` (`attach`) - Open an interactive terminal in a sandbox. Detach with Ctrl-P Ctrl-Q to leave the program running; `exit` ends it. Reattach with the same --tab
44
69
  - `extend` - Extend a sandbox's idle timeout
45
- - `exec` - Run a command inside a sandbox. Use `--` to pass flags: `exec ID -- ls -la`
46
- - `logs` - Stream logs from a detached job (SSE)
70
+ - `exec` - Run a command inside a sandbox, print its output and exit with its exit code. Put `--` before the command: `exec ID -- ls -la`
71
+ - `logs` - Print the output of a job started with `exec --detach`, following it until the job ends
47
72
  - `domain` - Resolve the preview URL for a port inside a sandbox
48
73
  - `password` - Generate, rotate, or clear the preview-URL password for a sandbox
74
+ - `preview-access` - Show or set who may open the preview URLs: Temps login (default), the preview password, or anyone, optionally from listed networks only
75
+ - `egress` - Show or set where the sandbox may connect to: the internet, nothing, or only listed hosts and CIDRs. Private, loopback and metadata addresses are always refused
49
76
  - `fs` - Filesystem operations inside a sandbox
50
77
  - `snapshots` - Manage sandbox snapshots (ADR-037)
51
78
  - `snapshot` - Take a snapshot of a sandbox
79
+ - `service-access` - Service access commands
80
+ - `internal-access` - Internal access commands
81
+ - `services` - Services commands
82
+ - `get-creation` - Read a create's steps by the 'creation_id' its 'POST /v1/sandboxes' sent
83
+ - `get-image-preparation` - Every host that can run sandboxes, with whether its default sandbox image is pulled (with download..
84
+ - `prepare-images` - Pull the default sandbox image on every eligible host (or one), so the first sandbox there starts without..
85
+ - `update-host-image-preparation` - Turn keeping one host's sandbox image prepared on or off
86
+ - `get-resource-defaults` - Effective resource defaults and input ceilings for the requested placement
87
+ - `rootfs-report` - Inspect rootfs storage: the Firecracker digest-keyed cache (with which sandboxes reference each entry) and..
88
+ - `rootfs-gc` - Reclaim rootfs cache entries not backing any live sandbox
89
+ - `get-cmd` - Get cmd
90
+ - `cmd-logs` - Stream a command's stdout/stderr as 'application/x-ndjson' ('@vercel/sandbox'-compatible)
91
+ - `cmd` - Run a command the '@vercel/sandbox' way: without --wait it returns the started command's id at once (read its output with cmd-logs); with --wait it prints the running and finished envelopes as JSON lines. For an interactive run use `temps sandbox exec`
92
+ - `get-creation-by` - Read the steps of the create that made a sandbox, while this server still tracks it (it is running, or..
93
+ - `list-dir` - List dir
94
+ - `write-files` - Batch-write multiple files in a single request
95
+ - `list-jobs` - List jobs
96
+ - `job-status` - Job status
97
+ - `kill-job` - Terminate a detached job
98
+ - `create-preview-link` - Mint a shareable link to a sandbox preview
99
+ - `resize` - Grow a Firecracker sandbox's root disk
100
+ - `issue-runtime-environment` - Issue the same scoped service variables used by a deployment runtime for the project attached to this sandbox
101
+ - `cmd-kill` - Kill a running command ('@vercel/sandbox'-compatible)
52
102
 
53
103
  ### `sandbox create`
54
104
 
@@ -64,6 +114,8 @@ Create a new sandbox
64
114
  | `-e, --env <KEY=VAL>` | Env var baked into the container (repeatable) | - | No |
65
115
  | `--cpu-limit <cpu>` | CPU limit (e.g., 0.5 for half a core) | - | No |
66
116
  | `--memory-mb <mb>` | Memory limit in megabytes | - | No |
117
+ | `--pids-limit <n>` | Maximum number of processes (default 512) | - | No |
118
+ | `--creation-id <id>` | Your own id for this create (8-64 letters, digits, - or _), to follow its steps with `sandbox get-creation` | - | No |
67
119
  | `--git-url <url>` | Git repo URL to clone into the work dir | - | No |
68
120
  | `--git-rev <revision>` | Git revision to check out (requires --git-url) | - | No |
69
121
  | `--git-depth <n>` | Shallow clone depth (requires --git-url) | - | No |
@@ -78,11 +130,16 @@ Create a new sandbox
78
130
  | `--new-branch <name>` | Create and switch to a new branch after cloning, based on whatever was checked out | - | No |
79
131
  | `--preview-password` | Generate a random preview-URL password and print it once on stdout | - | No |
80
132
  | `--preview-password-length <n>` | Length of the generated preview password (8..=256, default 24) | - | No |
133
+ | `--egress-allow <host\|cidr[:ports]>` | Restrict outbound traffic to this destination (repeatable; no ports = 80 and 443). IPv6 with ports: [addr/prefix]:port | - | No |
134
+ | `--egress-deny-all` | Allow no outbound traffic at all | - | No |
81
135
  | `--from-snapshot <snap-id>` | Create sandbox from a snapshot (mutually exclusive with --image) | - | No |
82
- | `--node <name|id>` | Node to run the sandbox on (name, id, or 'control-plane'). Omit to let Temps place it; see `sandbox nodes` | - | No |
136
+ | `--node <name\|id>` | Node to run the sandbox on (name, id, or 'control-plane'). Omit to let Temps place it; see `sandbox nodes` | - | No |
83
137
  | `--backend <backend>` | Isolation backend: docker, firecracker, microsandbox. Omit for the host default. An unavailable backend fails instead of downgrading | - | No |
84
138
  | `--allow-docker` | Allow installing/running Docker inside microsandbox; relaxes guest privilege restrictions. Requires --backend microsandbox | - | No |
85
139
  | `--json` | Output as JSON | - | No |
140
+ | `--git-password-file <path>` | Read the Git HTTP password or token from a file (- reads stdin) instead of --git-password | - | No |
141
+ | `--git-password-stdin` | Read the Git HTTP password or token from stdin instead of --git-password | - | No |
142
+ | `--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 |
86
143
 
87
144
  ### `sandbox list` (alias: `ls`)
88
145
 
@@ -128,6 +185,8 @@ List nodes with their sandbox placement state (the default)
128
185
 
129
186
  Show a node's placement state and every live sandbox on it, from all users (name, id, or 'control-plane'). Admin only
130
187
 
188
+ **Usage:** `sandbox nodes show <node> [options]`
189
+
131
190
  **Options:**
132
191
 
133
192
  | Flag | Description | Default | Required |
@@ -140,6 +199,8 @@ Show a node's placement state and every live sandbox on it, from all users (name
140
199
 
141
200
  Allow exactly these nodes to run new sandboxes, replacing the list (names, ids, or 'control-plane'). Admin only
142
201
 
202
+ **Usage:** `sandbox nodes set <nodes...> [options]`
203
+
143
204
  **Options:**
144
205
 
145
206
  | Flag | Description | Default | Required |
@@ -150,6 +211,8 @@ Allow exactly these nodes to run new sandboxes, replacing the list (names, ids,
150
211
 
151
212
  Add nodes to the list allowed to run new sandboxes. Admin only
152
213
 
214
+ **Usage:** `sandbox nodes allow <nodes...> [options]`
215
+
153
216
  **Options:**
154
217
 
155
218
  | Flag | Description | Default | Required |
@@ -160,6 +223,8 @@ Add nodes to the list allowed to run new sandboxes. Admin only
160
223
 
161
224
  Stop nodes from taking new sandboxes (existing ones keep running). Admin only
162
225
 
226
+ **Usage:** `sandbox nodes deny <nodes...> [options]`
227
+
163
228
  **Options:**
164
229
 
165
230
  | Flag | Description | Default | Required |
@@ -190,6 +255,8 @@ Stop every node from taking new sandboxes (existing ones keep running). Admin on
190
255
 
191
256
  Destroy every sandbox on a worker node, from all users, so the node can be removed. Works on a node that is offline for good. Admin only
192
257
 
258
+ **Usage:** `sandbox nodes evict <node> [options]`
259
+
193
260
  **Options:**
194
261
 
195
262
  | Flag | Description | Default | Required |
@@ -199,7 +266,9 @@ Destroy every sandbox on a worker node, from all users, so the node can be remov
199
266
 
200
267
  ### `sandbox show`
201
268
 
202
- Show details for a sandbox
269
+ Show a sandbox: status, image, node, expiry, preview access and outbound policy
270
+
271
+ **Usage:** `sandbox show <id> [options]`
203
272
 
204
273
  **Options:**
205
274
 
@@ -211,6 +280,8 @@ Show details for a sandbox
211
280
 
212
281
  Remove a sandbox permanently (aliases: stop, destroy)
213
282
 
283
+ **Usage:** `sandbox rm <id> [options]`
284
+
214
285
  **Options:**
215
286
 
216
287
  | Flag | Description | Default | Required |
@@ -221,18 +292,26 @@ Remove a sandbox permanently (aliases: stop, destroy)
221
292
 
222
293
  Pause a running sandbox (non-destructive — resume later with `sandbox resume`)
223
294
 
295
+ **Usage:** `sandbox pause <id>`
296
+
224
297
  ### `sandbox resume`
225
298
 
226
299
  Resume a paused sandbox
227
300
 
301
+ **Usage:** `sandbox resume <id>`
302
+
228
303
  ### `sandbox restart`
229
304
 
230
305
  Restart a running sandbox (preserves filesystem)
231
306
 
307
+ **Usage:** `sandbox restart <id>`
308
+
232
309
  ### `sandbox clone`
233
310
 
234
311
  Clone a git repo or extract a tarball into a running sandbox
235
312
 
313
+ **Usage:** `sandbox clone <id> [options]`
314
+
236
315
  **Options:**
237
316
 
238
317
  | Flag | Description | Default | Required |
@@ -244,11 +323,17 @@ Clone a git repo or extract a tarball into a running sandbox
244
323
  | `--git-username <user>` | HTTP Basic username (pairs with --git-password) | - | No |
245
324
  | `--git-password <token>` | HTTP Basic password/token (injected via GIT_ASKPASS) | - | No |
246
325
  | `--tarball-url <url>` | Tarball URL to download and extract | - | No |
326
+ | `--strip-git-metadata` | Remove the .git directory after cloning | - | No |
327
+ | `--git-password-file <path>` | Read the Git HTTP password or token from a file (- reads stdin) instead of --git-password | - | No |
328
+ | `--git-password-stdin` | Read the Git HTTP password or token from stdin instead of --git-password | - | No |
329
+ | `--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 |
247
330
 
248
331
  ### `sandbox shell` (alias: `attach`)
249
332
 
250
333
  Open an interactive terminal in a sandbox. Detach with Ctrl-P Ctrl-Q to leave the program running; `exit` ends it. Reattach with the same --tab
251
334
 
335
+ **Usage:** `sandbox shell <id> [options]`
336
+
252
337
  **Options:**
253
338
 
254
339
  | Flag | Description | Default | Required |
@@ -260,6 +345,8 @@ Open an interactive terminal in a sandbox. Detach with Ctrl-P Ctrl-Q to leave th
260
345
 
261
346
  Extend a sandbox's idle timeout
262
347
 
348
+ **Usage:** `sandbox extend <id> [options]`
349
+
263
350
  **Options:**
264
351
 
265
352
  | Flag | Description | Default | Required |
@@ -268,7 +355,9 @@ Extend a sandbox's idle timeout
268
355
 
269
356
  ### `sandbox exec`
270
357
 
271
- Run a command inside a sandbox. Use `--` to pass flags: `exec ID -- ls -la`
358
+ Run a command inside a sandbox, print its output and exit with its exit code. Put `--` before the command: `exec ID -- ls -la`
359
+
360
+ **Usage:** `sandbox exec <id> [args...] [options]`
272
361
 
273
362
  **Options:**
274
363
 
@@ -280,12 +369,16 @@ Run a command inside a sandbox. Use `--` to pass flags: `exec ID -- ls -la`
280
369
 
281
370
  ### `sandbox logs`
282
371
 
283
- Stream logs from a detached job (SSE)
372
+ Print the output of a job started with `exec --detach`, following it until the job ends
373
+
374
+ **Usage:** `sandbox logs <id> <jobId>`
284
375
 
285
376
  ### `sandbox domain`
286
377
 
287
378
  Resolve the preview URL for a port inside a sandbox
288
379
 
380
+ **Usage:** `sandbox domain <id> [options]`
381
+
289
382
  **Options:**
290
383
 
291
384
  | Flag | Description | Default | Required |
@@ -296,6 +389,8 @@ Resolve the preview URL for a port inside a sandbox
296
389
 
297
390
  Generate, rotate, or clear the preview-URL password for a sandbox
298
391
 
392
+ **Usage:** `sandbox password <id> [options]`
393
+
299
394
  **Options:**
300
395
 
301
396
  | Flag | Description | Default | Required |
@@ -304,6 +399,36 @@ Generate, rotate, or clear the preview-URL password for a sandbox
304
399
  | `--length <n>` | Length of the generated password (8..=256, default 24) | - | No |
305
400
  | `--clear` | Remove the preview password — preview URLs become open again | - | No |
306
401
 
402
+ ### `sandbox preview-access`
403
+
404
+ Show or set who may open the preview URLs: Temps login (default), the preview password, or anyone, optionally from listed networks only
405
+
406
+ **Usage:** `sandbox preview-access <id> [options]`
407
+
408
+ **Options:**
409
+
410
+ | Flag | Description | Default | Required |
411
+ |------|-------------|---------|----------|
412
+ | `--access <mode>` | temps_login (alias 'login'), password, or public. 'password' needs a preview password first (`sandbox password`) | - | No |
413
+ | `--allow-ip <ip\|cidr>` | Only these client networks may open previews, in every mode (repeatable; replaces the list) | - | No |
414
+ | `--any-ip` | Clear the allow-list: any client address may open previews | - | No |
415
+ | `--json` | Output as JSON | - | No |
416
+
417
+ ### `sandbox egress`
418
+
419
+ Show or set where the sandbox may connect to: the internet, nothing, or only listed hosts and CIDRs. Private, loopback and metadata addresses are always refused
420
+
421
+ **Usage:** `sandbox egress <id> [options]`
422
+
423
+ **Options:**
424
+
425
+ | Flag | Description | Default | Required |
426
+ |------|-------------|---------|----------|
427
+ | `--internet` | Remove the restriction | - | No |
428
+ | `--deny-all` | Allow no outbound traffic at all | - | No |
429
+ | `--allow <host\|cidr[:ports]>` | Allow only these destinations (repeatable; replaces the policy; no ports = 80 and 443). IPv6 with ports: [addr/prefix]:port | - | No |
430
+ | `--json` | Output as JSON | - | No |
431
+
307
432
  ### `sandbox fs`
308
433
 
309
434
  Filesystem operations inside a sandbox
@@ -319,6 +444,8 @@ Filesystem operations inside a sandbox
319
444
 
320
445
  Read a file from the sandbox
321
446
 
447
+ **Usage:** `sandbox fs read <id> [options]`
448
+
322
449
  **Options:**
323
450
 
324
451
  | Flag | Description | Default | Required |
@@ -330,6 +457,8 @@ Read a file from the sandbox
330
457
 
331
458
  Write a file to the sandbox
332
459
 
460
+ **Usage:** `sandbox fs write <id> [options]`
461
+
333
462
  **Options:**
334
463
 
335
464
  | Flag | Description | Default | Required |
@@ -343,6 +472,8 @@ Write a file to the sandbox
343
472
 
344
473
  Stat a path inside the sandbox
345
474
 
475
+ **Usage:** `sandbox fs stat <id> [options]`
476
+
346
477
  **Options:**
347
478
 
348
479
  | Flag | Description | Default | Required |
@@ -354,6 +485,8 @@ Stat a path inside the sandbox
354
485
 
355
486
  Create a directory inside the sandbox (mkdir -p)
356
487
 
488
+ **Usage:** `sandbox fs mkdir <id> [options]`
489
+
357
490
  **Options:**
358
491
 
359
492
  | Flag | Description | Default | Required |
@@ -389,6 +522,8 @@ List your snapshots
389
522
 
390
523
  Show details for a snapshot
391
524
 
525
+ **Usage:** `sandbox snapshots show <snapId> [options]`
526
+
392
527
  **Options:**
393
528
 
394
529
  | Flag | Description | Default | Required |
@@ -399,6 +534,8 @@ Show details for a snapshot
399
534
 
400
535
  Delete a snapshot permanently
401
536
 
537
+ **Usage:** `sandbox snapshots delete <snapId> [options]`
538
+
402
539
  **Options:**
403
540
 
404
541
  | Flag | Description | Default | Required |
@@ -419,6 +556,8 @@ Show snapshot storage usage and quota
419
556
 
420
557
  Take a snapshot of a sandbox
421
558
 
559
+ **Usage:** `sandbox snapshot <id> [options]`
560
+
422
561
  **Options:**
423
562
 
424
563
  | Flag | Description | Default | Required |
@@ -426,3 +565,644 @@ Take a snapshot of a sandbox
426
565
  | `--label <label>` | Human-readable label for the snapshot | - | No |
427
566
  | `--wait` | Wait until the snapshot reaches ready or failed status | - | No |
428
567
  | `--json` | Output as JSON | - | No |
568
+
569
+ ### `sandbox service-access`
570
+
571
+ Service access commands
572
+
573
+ **Subcommands:**
574
+
575
+ - `list` - List access services
576
+ - `create` - Create access service
577
+ - `get` - Get access service
578
+ - `update` - Update access service
579
+ - `list-grants` - List service grants
580
+ - `request-grant` - Request service grant
581
+ - `approve-grant` - Approve service grant
582
+ - `revoke-grant` - Revoke service grant
583
+ - `capability` - Access capability
584
+
585
+ #### `sandbox service-access list`
586
+
587
+ List access services
588
+
589
+ **Options:**
590
+
591
+ | Flag | Description | Default | Required |
592
+ |------|-------------|---------|----------|
593
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
594
+ | `--page <n>` | Query parameter page | - | No |
595
+ | `--page-size <n>` | Query parameter page_size | - | No |
596
+ | `--json` | Output in JSON format | - | No |
597
+
598
+ #### `sandbox service-access create`
599
+
600
+ Create access service
601
+
602
+ **Options:**
603
+
604
+ | Flag | Description | Default | Required |
605
+ |------|-------------|---------|----------|
606
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
607
+ | `--clear-credential` | Body field clear_credential | - | No |
608
+ | `--no-clear-credential` | Set clear_credential to false | - | No |
609
+ | `--credential-stdin` | A credential (read from stdin) | - | No |
610
+ | `--credential-file <path>` | A credential (read from a file) | - | No |
611
+ | `--enabled` | Allows requests to be saved; does not enable a network connection [required] | - | No |
612
+ | `--no-enabled` | Set enabled to false | - | No |
613
+ | `--expected-version <n>` | Required for updates; omit for creation | - | No |
614
+ | `--max-ttl-seconds <n>` | Maximum lifetime of a request, between 60 and 86400 seconds [required] | - | No |
615
+ | `--name <value>` | Body field name [required] | - | No |
616
+ | `--policy <json>` | Exact destination and request scope (JSON) [required] | - | No |
617
+ | `--vault-id <value>` | Add a newly created service to this vault in the same transaction | - | No |
618
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
619
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
620
+ | `--json` | Output in JSON format | - | No |
621
+
622
+ #### `sandbox service-access get`
623
+
624
+ Get access service
625
+
626
+ **Usage:** `sandbox service-access get <service-id> [options]`
627
+
628
+ **Options:**
629
+
630
+ | Flag | Description | Default | Required |
631
+ |------|-------------|---------|----------|
632
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
633
+ | `--json` | Output in JSON format | - | No |
634
+
635
+ #### `sandbox service-access update`
636
+
637
+ Update access service
638
+
639
+ **Usage:** `sandbox service-access update <service-id> [options]`
640
+
641
+ **Options:**
642
+
643
+ | Flag | Description | Default | Required |
644
+ |------|-------------|---------|----------|
645
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
646
+ | `--clear-credential` | Body field clear_credential | - | No |
647
+ | `--no-clear-credential` | Set clear_credential to false | - | No |
648
+ | `--credential-stdin` | A credential (read from stdin) | - | No |
649
+ | `--credential-file <path>` | A credential (read from a file) | - | No |
650
+ | `--enabled` | Allows requests to be saved; does not enable a network connection [required] | - | No |
651
+ | `--no-enabled` | Set enabled to false | - | No |
652
+ | `--expected-version <n>` | Required for updates; omit for creation | - | No |
653
+ | `--max-ttl-seconds <n>` | Maximum lifetime of a request, between 60 and 86400 seconds [required] | - | No |
654
+ | `--name <value>` | Body field name [required] | - | No |
655
+ | `--policy <json>` | Exact destination and request scope (JSON) [required] | - | No |
656
+ | `--vault-id <value>` | Add a newly created service to this vault in the same transaction | - | No |
657
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
658
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
659
+ | `--json` | Output in JSON format | - | No |
660
+
661
+ #### `sandbox service-access list-grants`
662
+
663
+ List service grants
664
+
665
+ **Usage:** `sandbox service-access list-grants <sandbox-id> [options]`
666
+
667
+ **Options:**
668
+
669
+ | Flag | Description | Default | Required |
670
+ |------|-------------|---------|----------|
671
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
672
+ | `--page <n>` | Query parameter page | - | No |
673
+ | `--page-size <n>` | Query parameter page_size | - | No |
674
+ | `--json` | Output in JSON format | - | No |
675
+
676
+ #### `sandbox service-access request-grant`
677
+
678
+ Request service grant
679
+
680
+ **Usage:** `sandbox service-access request-grant <sandbox-id> [options]`
681
+
682
+ **Options:**
683
+
684
+ | Flag | Description | Default | Required |
685
+ |------|-------------|---------|----------|
686
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
687
+ | `--service-id <value>` | Body field service_id [required] | - | No |
688
+ | `--service-version <n>` | Body field service_version [required] | - | No |
689
+ | `--ttl-seconds <n>` | Absolute expiry is calculated at creation, even if the broker is unavailable [required] | - | No |
690
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
691
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
692
+ | `--json` | Output in JSON format | - | No |
693
+
694
+ #### `sandbox service-access approve-grant`
695
+
696
+ Approve service grant
697
+
698
+ **Usage:** `sandbox service-access approve-grant <sandbox-id> [options]`
699
+
700
+ **Options:**
701
+
702
+ | Flag | Description | Default | Required |
703
+ |------|-------------|---------|----------|
704
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
705
+ | `--request-id <value>` | Body field request_id [required] | - | No |
706
+ | `--service-id <value>` | Body field service_id [required] | - | No |
707
+ | `--service-version <n>` | Body field service_version [required] | - | No |
708
+ | `--ttl-seconds <n>` | Body field ttl_seconds [required] | - | No |
709
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
710
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
711
+ | `--json` | Output in JSON format | - | No |
712
+
713
+ #### `sandbox service-access revoke-grant`
714
+
715
+ Revoke service grant
716
+
717
+ **Usage:** `sandbox service-access revoke-grant <sandbox-id> <grant-id> [options]`
718
+
719
+ **Options:**
720
+
721
+ | Flag | Description | Default | Required |
722
+ |------|-------------|---------|----------|
723
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
724
+ | `--expected-version <n>` | Body field expected_version [required] | - | No |
725
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
726
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
727
+ | `-y, --yes` | Do not ask for confirmation | - | No |
728
+ | `--json` | Output in JSON format | - | No |
729
+
730
+ #### `sandbox service-access capability`
731
+
732
+ Access capability
733
+
734
+ **Options:**
735
+
736
+ | Flag | Description | Default | Required |
737
+ |------|-------------|---------|----------|
738
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
739
+ | `--json` | Output in JSON format | - | No |
740
+
741
+ ### `sandbox internal-access`
742
+
743
+ Internal access commands
744
+
745
+ **Subcommands:**
746
+
747
+ - `list-grants` - List the projects allowed to call this project's internal addresses
748
+ - `create-grant` - Allow another project to call this project's internal addresses
749
+ - `list-internal-access-sandbox-grants` - List the sandboxes allowed to call this project's internal addresses
750
+ - `create-internal-access-sandbox-grant` - Allow one of your sandboxes to call this project's internal addresses
751
+ - `delete-grant` - Stop a sandbox from calling this project's internal addresses
752
+ - `delete-internal-access-grant` - Stop another project from calling this project's internal addresses
753
+ - `list-addresses` - List the internal addresses one of your sandboxes may call
754
+
755
+ #### `sandbox internal-access list-grants`
756
+
757
+ List the projects allowed to call this project's internal addresses
758
+
759
+ **Options:**
760
+
761
+ | Flag | Description | Default | Required |
762
+ |------|-------------|---------|----------|
763
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
764
+ | `--environment-id <n>` | Only grants that cover this environment of the project: its own and the project-wide ones | - | No |
765
+ | `--page <n>` | 1-based page, default 1 | - | No |
766
+ | `--page-size <n>` | Default 20, at most 100 | - | No |
767
+ | `--json` | Output in JSON format | - | No |
768
+
769
+ #### `sandbox internal-access create-grant`
770
+
771
+ Allow another project to call this project's internal addresses
772
+
773
+ **Options:**
774
+
775
+ | Flag | Description | Default | Required |
776
+ |------|-------------|---------|----------|
777
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
778
+ | `--caller-environment-id <n>` | Only this environment of the calling project; omit for every environment, present and future | - | No |
779
+ | `--caller-project-id <n>` | The project whose workloads may call [required] | - | No |
780
+ | `--description <value>` | Why the grant exists, up to 200 characters | - | No |
781
+ | `--target-environment-id <n>` | The environment of this project that may be called; omit for every environment, present and future | - | No |
782
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
783
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
784
+ | `--json` | Output in JSON format | - | No |
785
+
786
+ #### `sandbox internal-access list-internal-access-sandbox-grants`
787
+
788
+ List the sandboxes allowed to call this project's internal addresses
789
+
790
+ **Options:**
791
+
792
+ | Flag | Description | Default | Required |
793
+ |------|-------------|---------|----------|
794
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
795
+ | `--environment-id <n>` | Only grants that cover this environment of the project: its own and the project-wide ones | - | No |
796
+ | `--page <n>` | 1-based page, default 1 | - | No |
797
+ | `--page-size <n>` | Default 20, at most 100 | - | No |
798
+ | `--json` | Output in JSON format | - | No |
799
+
800
+ #### `sandbox internal-access create-internal-access-sandbox-grant`
801
+
802
+ Allow one of your sandboxes to call this project's internal addresses
803
+
804
+ **Options:**
805
+
806
+ | Flag | Description | Default | Required |
807
+ |------|-------------|---------|----------|
808
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
809
+ | `--description <value>` | Why the grant exists, up to 200 characters | - | No |
810
+ | `--sandbox-id <value>` | Public id of one of your sandboxes [required] | - | No |
811
+ | `--target-environment-id <n>` | The environment of this project that may be called; omit for every environment, present and future | - | No |
812
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
813
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
814
+ | `--json` | Output in JSON format | - | No |
815
+
816
+ #### `sandbox internal-access delete-grant`
817
+
818
+ Stop a sandbox from calling this project's internal addresses
819
+
820
+ **Usage:** `sandbox internal-access delete-grant <grant-id> [options]`
821
+
822
+ **Options:**
823
+
824
+ | Flag | Description | Default | Required |
825
+ |------|-------------|---------|----------|
826
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
827
+ | `-y, --yes` | Do not ask for confirmation | - | No |
828
+ | `--json` | Output in JSON format | - | No |
829
+
830
+ #### `sandbox internal-access delete-internal-access-grant`
831
+
832
+ Stop another project from calling this project's internal addresses
833
+
834
+ **Usage:** `sandbox internal-access delete-internal-access-grant <grant-id> [options]`
835
+
836
+ **Options:**
837
+
838
+ | Flag | Description | Default | Required |
839
+ |------|-------------|---------|----------|
840
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
841
+ | `-y, --yes` | Do not ask for confirmation | - | No |
842
+ | `--json` | Output in JSON format | - | No |
843
+
844
+ #### `sandbox internal-access list-addresses`
845
+
846
+ List the internal addresses one of your sandboxes may call
847
+
848
+ **Usage:** `sandbox internal-access list-addresses <sandbox-id> [options]`
849
+
850
+ **Options:**
851
+
852
+ | Flag | Description | Default | Required |
853
+ |------|-------------|---------|----------|
854
+ | `--page <n>` | 1-based page, default 1 | - | No |
855
+ | `--page-size <n>` | Default 20, at most 100 | - | No |
856
+ | `--json` | Output in JSON format | - | No |
857
+
858
+ ### `sandbox services`
859
+
860
+ Services commands
861
+
862
+ **Subcommands:**
863
+
864
+ - `list` - List sandbox services
865
+ - `request` - Request sandbox service
866
+ - `approve` - Approve sandbox service
867
+ - `revoke` - Revoke sandbox service
868
+
869
+ #### `sandbox services list`
870
+
871
+ List sandbox services
872
+
873
+ **Usage:** `sandbox services list <sandbox-id> [options]`
874
+
875
+ **Options:**
876
+
877
+ | Flag | Description | Default | Required |
878
+ |------|-------------|---------|----------|
879
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
880
+ | `--page <n>` | Query parameter page | - | No |
881
+ | `--page-size <n>` | Query parameter page_size | - | No |
882
+ | `--json` | Output in JSON format | - | No |
883
+
884
+ #### `sandbox services request`
885
+
886
+ Request sandbox service
887
+
888
+ **Usage:** `sandbox services request <sandbox-id> [options]`
889
+
890
+ **Options:**
891
+
892
+ | Flag | Description | Default | Required |
893
+ |------|-------------|---------|----------|
894
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
895
+ | `--service-id <value>` | Body field service_id [required] | - | No |
896
+ | `--service-version <n>` | Body field service_version [required] | - | No |
897
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
898
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
899
+ | `--json` | Output in JSON format | - | No |
900
+
901
+ #### `sandbox services approve`
902
+
903
+ Approve sandbox service
904
+
905
+ **Usage:** `sandbox services approve <sandbox-id> <access-id> [options]`
906
+
907
+ **Options:**
908
+
909
+ | Flag | Description | Default | Required |
910
+ |------|-------------|---------|----------|
911
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
912
+ | `--expected-version <n>` | Body field expected_version [required] | - | No |
913
+ | `--expires-at <value>` | Omit for the sandbox lifetime | - | No |
914
+ | `--service-version <n>` | Body field service_version [required] | - | No |
915
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
916
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
917
+ | `--json` | Output in JSON format | - | No |
918
+
919
+ #### `sandbox services revoke`
920
+
921
+ Revoke sandbox service
922
+
923
+ **Usage:** `sandbox services revoke <sandbox-id> <access-id> [options]`
924
+
925
+ **Options:**
926
+
927
+ | Flag | Description | Default | Required |
928
+ |------|-------------|---------|----------|
929
+ | `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
930
+ | `--expected-version <n>` | Body field expected_version [required] | - | No |
931
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
932
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
933
+ | `-y, --yes` | Do not ask for confirmation | - | No |
934
+ | `--json` | Output in JSON format | - | No |
935
+
936
+ ### `sandbox get-creation`
937
+
938
+ Read a create's steps by the 'creation_id' its 'POST /v1/sandboxes' sent
939
+
940
+ **Usage:** `sandbox get-creation <creation-id> [options]`
941
+
942
+ **Options:**
943
+
944
+ | Flag | Description | Default | Required |
945
+ |------|-------------|---------|----------|
946
+ | `--json` | Output in JSON format | - | No |
947
+
948
+ ### `sandbox get-image-preparation`
949
+
950
+ Every host that can run sandboxes, with whether its default sandbox image is pulled (with download..
951
+
952
+ **Options:**
953
+
954
+ | Flag | Description | Default | Required |
955
+ |------|-------------|---------|----------|
956
+ | `--json` | Output in JSON format | - | No |
957
+
958
+ ### `sandbox prepare-images`
959
+
960
+ Pull the default sandbox image on every eligible host (or one), so the first sandbox there starts without..
961
+
962
+ **Options:**
963
+
964
+ | Flag | Description | Default | Required |
965
+ |------|-------------|---------|----------|
966
+ | `--node-id <n>` | The host to prepare: a node id, or '0' for the control plane | - | No |
967
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
968
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
969
+ | `--json` | Output in JSON format | - | No |
970
+
971
+ ### `sandbox update-host-image-preparation`
972
+
973
+ Turn keeping one host's sandbox image prepared on or off
974
+
975
+ **Usage:** `sandbox update-host-image-preparation <node-id> [options]`
976
+
977
+ **Options:**
978
+
979
+ | Flag | Description | Default | Required |
980
+ |------|-------------|---------|----------|
981
+ | `--keep-prepared` | Keep this host's default sandbox image pulled, re-pulling it when an upgrade changes the default. 'false'... [required] | - | No |
982
+ | `--no-keep-prepared` | Set keep_prepared to false | - | No |
983
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
984
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
985
+ | `--json` | Output in JSON format | - | No |
986
+
987
+ ### `sandbox get-resource-defaults`
988
+
989
+ Effective resource defaults and input ceilings for the requested placement
990
+
991
+ **Options:**
992
+
993
+ | Flag | Description | Default | Required |
994
+ |------|-------------|---------|----------|
995
+ | `--node <value>` | Query parameter node | - | No |
996
+ | `--backend <value>` | Which isolation backend a sandbox runs on (ADR-029, ADR-050) (one of: docker, firecracker, microsandbox, local) | - | No |
997
+ | `--json` | Output in JSON format | - | No |
998
+
999
+ ### `sandbox rootfs-report`
1000
+
1001
+ Inspect rootfs storage: the Firecracker digest-keyed cache (with which sandboxes reference each entry) and..
1002
+
1003
+ **Options:**
1004
+
1005
+ | Flag | Description | Default | Required |
1006
+ |------|-------------|---------|----------|
1007
+ | `--json` | Output in JSON format | - | No |
1008
+
1009
+ ### `sandbox rootfs-gc`
1010
+
1011
+ Reclaim rootfs cache entries not backing any live sandbox
1012
+
1013
+ **Options:**
1014
+
1015
+ | Flag | Description | Default | Required |
1016
+ |------|-------------|---------|----------|
1017
+ | `--json` | Output in JSON format | - | No |
1018
+
1019
+ ### `sandbox get-cmd`
1020
+
1021
+ Get cmd
1022
+
1023
+ **Usage:** `sandbox get-cmd <id> <cmd-id> [options]`
1024
+
1025
+ **Options:**
1026
+
1027
+ | Flag | Description | Default | Required |
1028
+ |------|-------------|---------|----------|
1029
+ | `--json` | Output in JSON format | - | No |
1030
+
1031
+ ### `sandbox cmd-logs`
1032
+
1033
+ Stream a command's stdout/stderr as 'application/x-ndjson' ('@vercel/sandbox'-compatible)
1034
+
1035
+ **Usage:** `sandbox cmd-logs <id> <cmd-id> [options]`
1036
+
1037
+ **Options:**
1038
+
1039
+ | Flag | Description | Default | Required |
1040
+ |------|-------------|---------|----------|
1041
+ | `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
1042
+ | `--json` | Output in JSON format | - | No |
1043
+
1044
+ ### `sandbox cmd`
1045
+
1046
+ Run a command the '@vercel/sandbox' way: without --wait it returns the started command's id at once (read its output with cmd-logs); with --wait it prints the running and finished envelopes as JSON lines. For an interactive run use `temps sandbox exec`
1047
+
1048
+ **Usage:** `sandbox cmd <id> [options]`
1049
+
1050
+ **Options:**
1051
+
1052
+ | Flag | Description | Default | Required |
1053
+ |------|-------------|---------|----------|
1054
+ | `--command <value>` | Program to run [required] | - | No |
1055
+ | `--args <value>` | Argument (repeatable, in order) (repeatable) | - | No |
1056
+ | `--cwd <value>` | Working directory inside the sandbox | - | No |
1057
+ | `--env <json>` | Environment variables as a JSON object, e.g. {"NODE_ENV":"test"} (JSON) | - | No |
1058
+ | `--sudo` | Run the command privileged | - | No |
1059
+ | `--no-sudo` | Set sudo to false | - | No |
1060
+ | `--wait` | Wait for the command to finish | - | No |
1061
+ | `--no-wait` | Set wait to false | - | No |
1062
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1063
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1064
+ | `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
1065
+ | `--json` | Output in JSON format | - | No |
1066
+
1067
+ ### `sandbox get-creation-by`
1068
+
1069
+ Read the steps of the create that made a sandbox, while this server still tracks it (it is running, or..
1070
+
1071
+ **Usage:** `sandbox get-creation-by <id> [options]`
1072
+
1073
+ **Options:**
1074
+
1075
+ | Flag | Description | Default | Required |
1076
+ |------|-------------|---------|----------|
1077
+ | `--json` | Output in JSON format | - | No |
1078
+
1079
+ ### `sandbox list-dir`
1080
+
1081
+ List dir
1082
+
1083
+ **Usage:** `sandbox list-dir <id> [options]`
1084
+
1085
+ **Options:**
1086
+
1087
+ | Flag | Description | Default | Required |
1088
+ |------|-------------|---------|----------|
1089
+ | `--path <value>` | Absolute path of a directory inside the sandbox [required] | - | No |
1090
+ | `--page <n>` | 1-based page (default 1) | - | No |
1091
+ | `--page-size <n>` | Entries per page (default 20, max 100) | - | No |
1092
+ | `--json` | Output in JSON format | - | No |
1093
+
1094
+ ### `sandbox write-files`
1095
+
1096
+ Batch-write multiple files in a single request
1097
+
1098
+ **Usage:** `sandbox write-files <id> [options]`
1099
+
1100
+ **Options:**
1101
+
1102
+ | Flag | Description | Default | Required |
1103
+ |------|-------------|---------|----------|
1104
+ | `--files <json>` | List of files to write (JSON) [required] | - | No |
1105
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1106
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1107
+ | `--json` | Output in JSON format | - | No |
1108
+
1109
+ ### `sandbox list-jobs`
1110
+
1111
+ List jobs
1112
+
1113
+ **Usage:** `sandbox list-jobs <id> [options]`
1114
+
1115
+ **Options:**
1116
+
1117
+ | Flag | Description | Default | Required |
1118
+ |------|-------------|---------|----------|
1119
+ | `--json` | Output in JSON format | - | No |
1120
+
1121
+ ### `sandbox job-status`
1122
+
1123
+ Job status
1124
+
1125
+ **Usage:** `sandbox job-status <id> <job-id> [options]`
1126
+
1127
+ **Options:**
1128
+
1129
+ | Flag | Description | Default | Required |
1130
+ |------|-------------|---------|----------|
1131
+ | `--json` | Output in JSON format | - | No |
1132
+
1133
+ ### `sandbox kill-job`
1134
+
1135
+ Terminate a detached job
1136
+
1137
+ **Usage:** `sandbox kill-job <id> <job-id> [options]`
1138
+
1139
+ **Options:**
1140
+
1141
+ | Flag | Description | Default | Required |
1142
+ |------|-------------|---------|----------|
1143
+ | `--force` | When true, sends SIGKILL immediately | - | No |
1144
+ | `--no-force` | Set force to false | - | No |
1145
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1146
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1147
+ | `-y, --yes` | Do not ask for confirmation | - | No |
1148
+ | `--json` | Output in JSON format | - | No |
1149
+
1150
+ ### `sandbox create-preview-link`
1151
+
1152
+ Mint a shareable link to a sandbox preview
1153
+
1154
+ **Usage:** `sandbox create-preview-link <id> [options]`
1155
+
1156
+ **Options:**
1157
+
1158
+ | Flag | Description | Default | Required |
1159
+ |------|-------------|---------|----------|
1160
+ | `--path <value>` | Path the recipient lands on | - | No |
1161
+ | `--port <n>` | Port inside the sandbox the preview serves on [required] | - | No |
1162
+ | `--ttl-seconds <n>` | How long the link stays usable, in seconds | - | No |
1163
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1164
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1165
+ | `--json` | Output in JSON format | - | No |
1166
+
1167
+ ### `sandbox resize`
1168
+
1169
+ Grow a Firecracker sandbox's root disk
1170
+
1171
+ **Usage:** `sandbox resize <id> [options]`
1172
+
1173
+ **Options:**
1174
+
1175
+ | Flag | Description | Default | Required |
1176
+ |------|-------------|---------|----------|
1177
+ | `--disk-size-mb <n>` | New root disk size in MB [required] | - | No |
1178
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1179
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1180
+ | `--json` | Output in JSON format | - | No |
1181
+
1182
+ ### `sandbox issue-runtime-environment`
1183
+
1184
+ Issue the same scoped service variables used by a deployment runtime for the project attached to this sandbox
1185
+
1186
+ **Usage:** `sandbox issue-runtime-environment <id> [options]`
1187
+
1188
+ **Options:**
1189
+
1190
+ | Flag | Description | Default | Required |
1191
+ |------|-------------|---------|----------|
1192
+ | `--json` | Output in JSON format | - | No |
1193
+
1194
+ ### `sandbox cmd-kill`
1195
+
1196
+ Kill a running command ('@vercel/sandbox'-compatible)
1197
+
1198
+ **Usage:** `sandbox cmd-kill <id> <cmd-id> [options]`
1199
+
1200
+ **Options:**
1201
+
1202
+ | Flag | Description | Default | Required |
1203
+ |------|-------------|---------|----------|
1204
+ | `--force` | Optional: when true, SIGKILL instead of SIGTERM | - | No |
1205
+ | `--no-force` | Set force to false | - | No |
1206
+ | `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
1207
+ | `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
1208
+ | `--json` | Output in JSON format | - | No |