@temps-sdk/cli 0.2.0-beta.1 → 0.2.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +104770 -87351
- package/dist/skills/temps/SKILL.md +6 -3
- package/dist/skills/temps/evals/evals.json +38 -0
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/howtos/install-temps.md +151 -0
- package/dist/skills/temps/references/commands/INDEX.md +7 -0
- package/dist/skills/temps/references/commands/agents.md +731 -0
- package/dist/skills/temps/references/commands/ai.md +2636 -11
- package/dist/skills/temps/references/commands/alarms.md +125 -0
- package/dist/skills/temps/references/commands/analytics.md +1001 -3
- package/dist/skills/temps/references/commands/apikeys.md +48 -1
- package/dist/skills/temps/references/commands/audit.md +1 -0
- package/dist/skills/temps/references/commands/backups.md +306 -0
- package/dist/skills/temps/references/commands/blob.md +169 -0
- package/dist/skills/temps/references/commands/cloud.md +59 -0
- package/dist/skills/temps/references/commands/cluster.md +223 -0
- package/dist/skills/temps/references/commands/containers.md +45 -0
- package/dist/skills/temps/references/commands/custom-domains.md +32 -0
- package/dist/skills/temps/references/commands/data.md +1 -0
- package/dist/skills/temps/references/commands/deploy-image.md +3 -1
- package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
- package/dist/skills/temps/references/commands/deployments.md +559 -0
- package/dist/skills/temps/references/commands/dns-provider.md +63 -0
- package/dist/skills/temps/references/commands/domains.md +104 -0
- package/dist/skills/temps/references/commands/email-domains.md +1 -0
- package/dist/skills/temps/references/commands/email-providers.md +59 -1
- package/dist/skills/temps/references/commands/emails.md +91 -0
- package/dist/skills/temps/references/commands/environments.md +483 -2
- package/dist/skills/temps/references/commands/errors.md +563 -3
- package/dist/skills/temps/references/commands/flags.md +76 -0
- package/dist/skills/temps/references/commands/funnels.md +22 -2
- package/dist/skills/temps/references/commands/incidents.md +18 -0
- package/dist/skills/temps/references/commands/ingress.md +26 -0
- package/dist/skills/temps/references/commands/ip-access.md +96 -1
- package/dist/skills/temps/references/commands/kv.md +184 -0
- package/dist/skills/temps/references/commands/load-balancer.md +2 -0
- package/dist/skills/temps/references/commands/login.md +4 -1
- package/dist/skills/temps/references/commands/logs.md +272 -0
- package/dist/skills/temps/references/commands/mcp.md +14 -1
- package/dist/skills/temps/references/commands/migrate.md +17 -0
- package/dist/skills/temps/references/commands/monitors.md +386 -0
- package/dist/skills/temps/references/commands/network-policy.md +27 -0
- package/dist/skills/temps/references/commands/nodes.md +155 -2
- package/dist/skills/temps/references/commands/notifications.md +149 -0
- package/dist/skills/temps/references/commands/otel.md +438 -0
- package/dist/skills/temps/references/commands/platform.md +64 -0
- package/dist/skills/temps/references/commands/plugin.md +76 -0
- package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
- package/dist/skills/temps/references/commands/project-groups.md +31 -0
- package/dist/skills/temps/references/commands/projects.md +453 -6
- package/dist/skills/temps/references/commands/providers.md +519 -0
- package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
- package/dist/skills/temps/references/commands/revenue.md +219 -0
- package/dist/skills/temps/references/commands/sandbox.md +732 -9
- package/dist/skills/temps/references/commands/secrets.md +3 -0
- package/dist/skills/temps/references/commands/server.md +107 -0
- package/dist/skills/temps/references/commands/services.md +831 -5
- package/dist/skills/temps/references/commands/settings.md +384 -0
- package/dist/skills/temps/references/commands/shield.md +354 -0
- package/dist/skills/temps/references/commands/start.md +1 -0
- package/dist/skills/temps/references/commands/status-pages.md +103 -3
- package/dist/skills/temps/references/commands/teams.md +14 -0
- package/dist/skills/temps/references/commands/templates.md +14 -0
- package/dist/skills/temps/references/commands/tokens.md +106 -0
- package/dist/skills/temps/references/commands/traces.md +149 -0
- package/dist/skills/temps/references/commands/tunnels.md +2 -0
- package/dist/skills/temps/references/commands/users.md +111 -0
- package/dist/skills/temps/references/commands/vault.md +662 -0
- package/dist/skills/temps/references/commands/webhooks.md +4 -0
- package/dist/skills/temps/references/commands/workflows.md +347 -0
- package/dist/skills/temps/scripts/generate_command_references.py +5 -3
- package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
- package/package.json +3 -2
|
@@ -7,15 +7,15 @@ 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)
|
|
@@ -23,9 +23,34 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
23
23
|
- [`sandbox password`](#sandbox-password)
|
|
24
24
|
- [`sandbox preview-access`](#sandbox-preview-access)
|
|
25
25
|
- [`sandbox egress`](#sandbox-egress)
|
|
26
|
+
- [`sandbox recording`](#sandbox-recording)
|
|
27
|
+
- [`sandbox outbound`](#sandbox-outbound)
|
|
26
28
|
- [`sandbox fs`](#sandbox-fs)
|
|
27
29
|
- [`sandbox snapshots`](#sandbox-snapshots)
|
|
28
30
|
- [`sandbox snapshot`](#sandbox-snapshot)
|
|
31
|
+
- [`sandbox service-access`](#sandbox-service-access)
|
|
32
|
+
- [`sandbox internal-access`](#sandbox-internal-access)
|
|
33
|
+
- [`sandbox services`](#sandbox-services)
|
|
34
|
+
- [`sandbox get-creation`](#sandbox-get-creation)
|
|
35
|
+
- [`sandbox get-image-preparation`](#sandbox-get-image-preparation)
|
|
36
|
+
- [`sandbox prepare-images`](#sandbox-prepare-images)
|
|
37
|
+
- [`sandbox update-host-image-preparation`](#sandbox-update-host-image-preparation)
|
|
38
|
+
- [`sandbox get-resource-defaults`](#sandbox-get-resource-defaults)
|
|
39
|
+
- [`sandbox rootfs-report`](#sandbox-rootfs-report)
|
|
40
|
+
- [`sandbox rootfs-gc`](#sandbox-rootfs-gc)
|
|
41
|
+
- [`sandbox get-cmd`](#sandbox-get-cmd)
|
|
42
|
+
- [`sandbox cmd-logs`](#sandbox-cmd-logs)
|
|
43
|
+
- [`sandbox cmd`](#sandbox-cmd)
|
|
44
|
+
- [`sandbox get-creation-by`](#sandbox-get-creation-by)
|
|
45
|
+
- [`sandbox list-dir`](#sandbox-list-dir)
|
|
46
|
+
- [`sandbox write-files`](#sandbox-write-files)
|
|
47
|
+
- [`sandbox list-jobs`](#sandbox-list-jobs)
|
|
48
|
+
- [`sandbox job-status`](#sandbox-job-status)
|
|
49
|
+
- [`sandbox kill-job`](#sandbox-kill-job)
|
|
50
|
+
- [`sandbox create-preview-link`](#sandbox-create-preview-link)
|
|
51
|
+
- [`sandbox resize`](#sandbox-resize)
|
|
52
|
+
- [`sandbox issue-runtime-environment`](#sandbox-issue-runtime-environment)
|
|
53
|
+
- [`sandbox cmd-kill`](#sandbox-cmd-kill)
|
|
29
54
|
|
|
30
55
|
## `sandbox`
|
|
31
56
|
|
|
@@ -36,7 +61,7 @@ Manage standalone sandboxes (/v1/sandbox API)
|
|
|
36
61
|
- `create` - Create a new sandbox
|
|
37
62
|
- `list` (`ls`) - List your sandboxes
|
|
38
63
|
- `nodes` - List nodes that can run sandboxes and control which ones take new sandboxes
|
|
39
|
-
- `show` - Show
|
|
64
|
+
- `show` - Show a sandbox: status, image, node, expiry, preview access and outbound policy
|
|
40
65
|
- `rm` (`stop`, `destroy`) - Remove a sandbox permanently (aliases: stop, destroy)
|
|
41
66
|
- `pause` - Pause a running sandbox (non-destructive — resume later with `sandbox resume`)
|
|
42
67
|
- `resume` - Resume a paused sandbox
|
|
@@ -44,15 +69,40 @@ Manage standalone sandboxes (/v1/sandbox API)
|
|
|
44
69
|
- `clone` - Clone a git repo or extract a tarball into a running sandbox
|
|
45
70
|
- `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
|
|
46
71
|
- `extend` - Extend a sandbox's idle timeout
|
|
47
|
-
- `exec` - Run a command inside a sandbox.
|
|
48
|
-
- `logs` -
|
|
72
|
+
- `exec` - Run a command inside a sandbox, print its output and exit with its exit code. Put `--` before the command: `exec ID -- ls -la`
|
|
73
|
+
- `logs` - Print the output of a job started with `exec --detach`, following it until the job ends
|
|
49
74
|
- `domain` - Resolve the preview URL for a port inside a sandbox
|
|
50
75
|
- `password` - Generate, rotate, or clear the preview-URL password for a sandbox
|
|
51
76
|
- `preview-access` - Show or set who may open the preview URLs: Temps login (default), the preview password, or anyone, optionally from listed networks only
|
|
52
77
|
- `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
|
|
78
|
+
- `recording` - Show or set whether the sandbox records its outbound connections (destination, outcome, bytes; never headers or bodies)
|
|
79
|
+
- `outbound` - List the outbound connections a recording sandbox made, newest first
|
|
53
80
|
- `fs` - Filesystem operations inside a sandbox
|
|
54
81
|
- `snapshots` - Manage sandbox snapshots (ADR-037)
|
|
55
82
|
- `snapshot` - Take a snapshot of a sandbox
|
|
83
|
+
- `service-access` - Service access commands
|
|
84
|
+
- `internal-access` - Internal access commands
|
|
85
|
+
- `services` - Services commands
|
|
86
|
+
- `get-creation` - Read a create's steps by the 'creation_id' its 'POST /v1/sandboxes' sent
|
|
87
|
+
- `get-image-preparation` - Every host that can run sandboxes, with whether its default sandbox image is pulled (with download..
|
|
88
|
+
- `prepare-images` - Pull the default sandbox image on every eligible host (or one), so the first sandbox there starts without..
|
|
89
|
+
- `update-host-image-preparation` - Turn keeping one host's sandbox image prepared on or off
|
|
90
|
+
- `get-resource-defaults` - Effective resource defaults and input ceilings for the requested placement
|
|
91
|
+
- `rootfs-report` - Inspect rootfs storage: the Firecracker digest-keyed cache (with which sandboxes reference each entry) and..
|
|
92
|
+
- `rootfs-gc` - Reclaim rootfs cache entries not backing any live sandbox
|
|
93
|
+
- `get-cmd` - Get cmd
|
|
94
|
+
- `cmd-logs` - Stream a command's stdout/stderr as 'application/x-ndjson' ('@vercel/sandbox'-compatible)
|
|
95
|
+
- `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`
|
|
96
|
+
- `get-creation-by` - Read the steps of the create that made a sandbox, while this server still tracks it (it is running, or..
|
|
97
|
+
- `list-dir` - List dir
|
|
98
|
+
- `write-files` - Batch-write multiple files in a single request
|
|
99
|
+
- `list-jobs` - List jobs
|
|
100
|
+
- `job-status` - Job status
|
|
101
|
+
- `kill-job` - Terminate a detached job
|
|
102
|
+
- `create-preview-link` - Mint a shareable link to a sandbox preview
|
|
103
|
+
- `resize` - Grow a Firecracker sandbox's root disk
|
|
104
|
+
- `issue-runtime-environment` - Issue the same scoped service variables used by a deployment runtime for the project attached to this sandbox
|
|
105
|
+
- `cmd-kill` - Kill a running command ('@vercel/sandbox'-compatible)
|
|
56
106
|
|
|
57
107
|
### `sandbox create`
|
|
58
108
|
|
|
@@ -68,6 +118,8 @@ Create a new sandbox
|
|
|
68
118
|
| `-e, --env <KEY=VAL>` | Env var baked into the container (repeatable) | - | No |
|
|
69
119
|
| `--cpu-limit <cpu>` | CPU limit (e.g., 0.5 for half a core) | - | No |
|
|
70
120
|
| `--memory-mb <mb>` | Memory limit in megabytes | - | No |
|
|
121
|
+
| `--pids-limit <n>` | Maximum number of processes (default 512) | - | No |
|
|
122
|
+
| `--creation-id <id>` | Your own id for this create (8-64 letters, digits, - or _), to follow its steps with `sandbox get-creation` | - | No |
|
|
71
123
|
| `--git-url <url>` | Git repo URL to clone into the work dir | - | No |
|
|
72
124
|
| `--git-rev <revision>` | Git revision to check out (requires --git-url) | - | No |
|
|
73
125
|
| `--git-depth <n>` | Shallow clone depth (requires --git-url) | - | No |
|
|
@@ -218,7 +270,7 @@ Destroy every sandbox on a worker node, from all users, so the node can be remov
|
|
|
218
270
|
|
|
219
271
|
### `sandbox show`
|
|
220
272
|
|
|
221
|
-
Show
|
|
273
|
+
Show a sandbox: status, image, node, expiry, preview access and outbound policy
|
|
222
274
|
|
|
223
275
|
**Usage:** `sandbox show <id> [options]`
|
|
224
276
|
|
|
@@ -275,6 +327,7 @@ Clone a git repo or extract a tarball into a running sandbox
|
|
|
275
327
|
| `--git-username <user>` | HTTP Basic username (pairs with --git-password) | - | No |
|
|
276
328
|
| `--git-password <token>` | HTTP Basic password/token (injected via GIT_ASKPASS) | - | No |
|
|
277
329
|
| `--tarball-url <url>` | Tarball URL to download and extract | - | No |
|
|
330
|
+
| `--strip-git-metadata` | Remove the .git directory after cloning | - | No |
|
|
278
331
|
| `--git-password-file <path>` | Read the Git HTTP password or token from a file (- reads stdin) instead of --git-password | - | No |
|
|
279
332
|
| `--git-password-stdin` | Read the Git HTTP password or token from stdin instead of --git-password | - | No |
|
|
280
333
|
| `--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 |
|
|
@@ -306,7 +359,7 @@ Extend a sandbox's idle timeout
|
|
|
306
359
|
|
|
307
360
|
### `sandbox exec`
|
|
308
361
|
|
|
309
|
-
Run a command inside a sandbox.
|
|
362
|
+
Run a command inside a sandbox, print its output and exit with its exit code. Put `--` before the command: `exec ID -- ls -la`
|
|
310
363
|
|
|
311
364
|
**Usage:** `sandbox exec <id> [args...] [options]`
|
|
312
365
|
|
|
@@ -320,7 +373,7 @@ Run a command inside a sandbox. Use `--` to pass flags: `exec ID -- ls -la`
|
|
|
320
373
|
|
|
321
374
|
### `sandbox logs`
|
|
322
375
|
|
|
323
|
-
|
|
376
|
+
Print the output of a job started with `exec --detach`, following it until the job ends
|
|
324
377
|
|
|
325
378
|
**Usage:** `sandbox logs <id> <jobId>`
|
|
326
379
|
|
|
@@ -380,6 +433,35 @@ Show or set where the sandbox may connect to: the internet, nothing, or only lis
|
|
|
380
433
|
| `--allow <host\|cidr[:ports]>` | Allow only these destinations (repeatable; replaces the policy; no ports = 80 and 443). IPv6 with ports: [addr/prefix]:port | - | No |
|
|
381
434
|
| `--json` | Output as JSON | - | No |
|
|
382
435
|
|
|
436
|
+
### `sandbox recording`
|
|
437
|
+
|
|
438
|
+
Show or set whether the sandbox records its outbound connections (destination, outcome, bytes; never headers or bodies)
|
|
439
|
+
|
|
440
|
+
**Usage:** `sandbox recording <id> [options]`
|
|
441
|
+
|
|
442
|
+
**Options:**
|
|
443
|
+
|
|
444
|
+
| Flag | Description | Default | Required |
|
|
445
|
+
|------|-------------|---------|----------|
|
|
446
|
+
| `--on` | Record its outbound connections | - | No |
|
|
447
|
+
| `--off` | Stop recording | - | No |
|
|
448
|
+
| `--json` | Output as JSON | - | No |
|
|
449
|
+
|
|
450
|
+
### `sandbox outbound`
|
|
451
|
+
|
|
452
|
+
List the outbound connections a recording sandbox made, newest first
|
|
453
|
+
|
|
454
|
+
**Usage:** `sandbox outbound <id> [options]`
|
|
455
|
+
|
|
456
|
+
**Options:**
|
|
457
|
+
|
|
458
|
+
| Flag | Description | Default | Required |
|
|
459
|
+
|------|-------------|---------|----------|
|
|
460
|
+
| `--page <n>` | Page number (default 1) | - | No |
|
|
461
|
+
| `--per-page <n>` | Records per page (default 20, max 100) | - | No |
|
|
462
|
+
| `--outcome <outcome>` | Only allowed, refused or failed connections | - | No |
|
|
463
|
+
| `--json` | Output as JSON | - | No |
|
|
464
|
+
|
|
383
465
|
### `sandbox fs`
|
|
384
466
|
|
|
385
467
|
Filesystem operations inside a sandbox
|
|
@@ -516,3 +598,644 @@ Take a snapshot of a sandbox
|
|
|
516
598
|
| `--label <label>` | Human-readable label for the snapshot | - | No |
|
|
517
599
|
| `--wait` | Wait until the snapshot reaches ready or failed status | - | No |
|
|
518
600
|
| `--json` | Output as JSON | - | No |
|
|
601
|
+
|
|
602
|
+
### `sandbox service-access`
|
|
603
|
+
|
|
604
|
+
Service access commands
|
|
605
|
+
|
|
606
|
+
**Subcommands:**
|
|
607
|
+
|
|
608
|
+
- `list` - List access services
|
|
609
|
+
- `create` - Create access service
|
|
610
|
+
- `get` - Get access service
|
|
611
|
+
- `update` - Update access service
|
|
612
|
+
- `list-grants` - List service grants
|
|
613
|
+
- `request-grant` - Request service grant
|
|
614
|
+
- `approve-grant` - Approve service grant
|
|
615
|
+
- `revoke-grant` - Revoke service grant
|
|
616
|
+
- `capability` - Access capability
|
|
617
|
+
|
|
618
|
+
#### `sandbox service-access list`
|
|
619
|
+
|
|
620
|
+
List access services
|
|
621
|
+
|
|
622
|
+
**Options:**
|
|
623
|
+
|
|
624
|
+
| Flag | Description | Default | Required |
|
|
625
|
+
|------|-------------|---------|----------|
|
|
626
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
627
|
+
| `--page <n>` | Query parameter page | - | No |
|
|
628
|
+
| `--page-size <n>` | Query parameter page_size | - | No |
|
|
629
|
+
| `--json` | Output in JSON format | - | No |
|
|
630
|
+
|
|
631
|
+
#### `sandbox service-access create`
|
|
632
|
+
|
|
633
|
+
Create access service
|
|
634
|
+
|
|
635
|
+
**Options:**
|
|
636
|
+
|
|
637
|
+
| Flag | Description | Default | Required |
|
|
638
|
+
|------|-------------|---------|----------|
|
|
639
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
640
|
+
| `--clear-credential` | Body field clear_credential | - | No |
|
|
641
|
+
| `--no-clear-credential` | Set clear_credential to false | - | No |
|
|
642
|
+
| `--credential-stdin` | A credential (read from stdin) | - | No |
|
|
643
|
+
| `--credential-file <path>` | A credential (read from a file) | - | No |
|
|
644
|
+
| `--enabled` | Allows requests to be saved; does not enable a network connection [required] | - | No |
|
|
645
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
646
|
+
| `--expected-version <n>` | Required for updates; omit for creation | - | No |
|
|
647
|
+
| `--max-ttl-seconds <n>` | Maximum lifetime of a request, between 60 and 86400 seconds [required] | - | No |
|
|
648
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
649
|
+
| `--policy <json>` | Exact destination and request scope (JSON) [required] | - | No |
|
|
650
|
+
| `--vault-id <value>` | Add a newly created service to this vault in the same transaction | - | No |
|
|
651
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
652
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
653
|
+
| `--json` | Output in JSON format | - | No |
|
|
654
|
+
|
|
655
|
+
#### `sandbox service-access get`
|
|
656
|
+
|
|
657
|
+
Get access service
|
|
658
|
+
|
|
659
|
+
**Usage:** `sandbox service-access get <service-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
|
+
| `--json` | Output in JSON format | - | No |
|
|
667
|
+
|
|
668
|
+
#### `sandbox service-access update`
|
|
669
|
+
|
|
670
|
+
Update access service
|
|
671
|
+
|
|
672
|
+
**Usage:** `sandbox service-access update <service-id> [options]`
|
|
673
|
+
|
|
674
|
+
**Options:**
|
|
675
|
+
|
|
676
|
+
| Flag | Description | Default | Required |
|
|
677
|
+
|------|-------------|---------|----------|
|
|
678
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
679
|
+
| `--clear-credential` | Body field clear_credential | - | No |
|
|
680
|
+
| `--no-clear-credential` | Set clear_credential to false | - | No |
|
|
681
|
+
| `--credential-stdin` | A credential (read from stdin) | - | No |
|
|
682
|
+
| `--credential-file <path>` | A credential (read from a file) | - | No |
|
|
683
|
+
| `--enabled` | Allows requests to be saved; does not enable a network connection [required] | - | No |
|
|
684
|
+
| `--no-enabled` | Set enabled to false | - | No |
|
|
685
|
+
| `--expected-version <n>` | Required for updates; omit for creation | - | No |
|
|
686
|
+
| `--max-ttl-seconds <n>` | Maximum lifetime of a request, between 60 and 86400 seconds [required] | - | No |
|
|
687
|
+
| `--name <value>` | Body field name [required] | - | No |
|
|
688
|
+
| `--policy <json>` | Exact destination and request scope (JSON) [required] | - | No |
|
|
689
|
+
| `--vault-id <value>` | Add a newly created service to this vault in the same transaction | - | 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 list-grants`
|
|
695
|
+
|
|
696
|
+
List service grants
|
|
697
|
+
|
|
698
|
+
**Usage:** `sandbox service-access list-grants <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
|
+
| `--page <n>` | Query parameter page | - | No |
|
|
706
|
+
| `--page-size <n>` | Query parameter page_size | - | No |
|
|
707
|
+
| `--json` | Output in JSON format | - | No |
|
|
708
|
+
|
|
709
|
+
#### `sandbox service-access request-grant`
|
|
710
|
+
|
|
711
|
+
Request service grant
|
|
712
|
+
|
|
713
|
+
**Usage:** `sandbox service-access request-grant <sandbox-id> [options]`
|
|
714
|
+
|
|
715
|
+
**Options:**
|
|
716
|
+
|
|
717
|
+
| Flag | Description | Default | Required |
|
|
718
|
+
|------|-------------|---------|----------|
|
|
719
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
720
|
+
| `--service-id <value>` | Body field service_id [required] | - | No |
|
|
721
|
+
| `--service-version <n>` | Body field service_version [required] | - | No |
|
|
722
|
+
| `--ttl-seconds <n>` | Absolute expiry is calculated at creation, even if the broker is unavailable [required] | - | No |
|
|
723
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
724
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
725
|
+
| `--json` | Output in JSON format | - | No |
|
|
726
|
+
|
|
727
|
+
#### `sandbox service-access approve-grant`
|
|
728
|
+
|
|
729
|
+
Approve service grant
|
|
730
|
+
|
|
731
|
+
**Usage:** `sandbox service-access approve-grant <sandbox-id> [options]`
|
|
732
|
+
|
|
733
|
+
**Options:**
|
|
734
|
+
|
|
735
|
+
| Flag | Description | Default | Required |
|
|
736
|
+
|------|-------------|---------|----------|
|
|
737
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
738
|
+
| `--request-id <value>` | Body field request_id [required] | - | No |
|
|
739
|
+
| `--service-id <value>` | Body field service_id [required] | - | No |
|
|
740
|
+
| `--service-version <n>` | Body field service_version [required] | - | No |
|
|
741
|
+
| `--ttl-seconds <n>` | Body field ttl_seconds [required] | - | No |
|
|
742
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
743
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
744
|
+
| `--json` | Output in JSON format | - | No |
|
|
745
|
+
|
|
746
|
+
#### `sandbox service-access revoke-grant`
|
|
747
|
+
|
|
748
|
+
Revoke service grant
|
|
749
|
+
|
|
750
|
+
**Usage:** `sandbox service-access revoke-grant <sandbox-id> <grant-id> [options]`
|
|
751
|
+
|
|
752
|
+
**Options:**
|
|
753
|
+
|
|
754
|
+
| Flag | Description | Default | Required |
|
|
755
|
+
|------|-------------|---------|----------|
|
|
756
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
757
|
+
| `--expected-version <n>` | Body field expected_version [required] | - | No |
|
|
758
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
759
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
760
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
761
|
+
| `--json` | Output in JSON format | - | No |
|
|
762
|
+
|
|
763
|
+
#### `sandbox service-access capability`
|
|
764
|
+
|
|
765
|
+
Access capability
|
|
766
|
+
|
|
767
|
+
**Options:**
|
|
768
|
+
|
|
769
|
+
| Flag | Description | Default | Required |
|
|
770
|
+
|------|-------------|---------|----------|
|
|
771
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
772
|
+
| `--json` | Output in JSON format | - | No |
|
|
773
|
+
|
|
774
|
+
### `sandbox internal-access`
|
|
775
|
+
|
|
776
|
+
Internal access commands
|
|
777
|
+
|
|
778
|
+
**Subcommands:**
|
|
779
|
+
|
|
780
|
+
- `list-grants` - List the projects allowed to call this project's internal addresses
|
|
781
|
+
- `create-grant` - Allow another project to call this project's internal addresses
|
|
782
|
+
- `list-internal-access-sandbox-grants` - List the sandboxes allowed to call this project's internal addresses
|
|
783
|
+
- `create-internal-access-sandbox-grant` - Allow one of your sandboxes to call this project's internal addresses
|
|
784
|
+
- `delete-grant` - Stop a sandbox from calling this project's internal addresses
|
|
785
|
+
- `delete-internal-access-grant` - Stop another project from calling this project's internal addresses
|
|
786
|
+
- `list-addresses` - List the internal addresses one of your sandboxes may call
|
|
787
|
+
|
|
788
|
+
#### `sandbox internal-access list-grants`
|
|
789
|
+
|
|
790
|
+
List the projects allowed to call this project's internal addresses
|
|
791
|
+
|
|
792
|
+
**Options:**
|
|
793
|
+
|
|
794
|
+
| Flag | Description | Default | Required |
|
|
795
|
+
|------|-------------|---------|----------|
|
|
796
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
797
|
+
| `--environment-id <n>` | Only grants that cover this environment of the project: its own and the project-wide ones | - | No |
|
|
798
|
+
| `--page <n>` | 1-based page, default 1 | - | No |
|
|
799
|
+
| `--page-size <n>` | Default 20, at most 100 | - | No |
|
|
800
|
+
| `--json` | Output in JSON format | - | No |
|
|
801
|
+
|
|
802
|
+
#### `sandbox internal-access create-grant`
|
|
803
|
+
|
|
804
|
+
Allow another project to call this project's internal addresses
|
|
805
|
+
|
|
806
|
+
**Options:**
|
|
807
|
+
|
|
808
|
+
| Flag | Description | Default | Required |
|
|
809
|
+
|------|-------------|---------|----------|
|
|
810
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
811
|
+
| `--caller-environment-id <n>` | Only this environment of the calling project; omit for every environment, present and future | - | No |
|
|
812
|
+
| `--caller-project-id <n>` | The project whose workloads may call [required] | - | No |
|
|
813
|
+
| `--description <value>` | Why the grant exists, up to 200 characters | - | No |
|
|
814
|
+
| `--target-environment-id <n>` | The environment of this project that may be called; omit for every environment, present and future | - | No |
|
|
815
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
816
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
817
|
+
| `--json` | Output in JSON format | - | No |
|
|
818
|
+
|
|
819
|
+
#### `sandbox internal-access list-internal-access-sandbox-grants`
|
|
820
|
+
|
|
821
|
+
List the sandboxes allowed to call this project's internal addresses
|
|
822
|
+
|
|
823
|
+
**Options:**
|
|
824
|
+
|
|
825
|
+
| Flag | Description | Default | Required |
|
|
826
|
+
|------|-------------|---------|----------|
|
|
827
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
828
|
+
| `--environment-id <n>` | Only grants that cover this environment of the project: its own and the project-wide ones | - | No |
|
|
829
|
+
| `--page <n>` | 1-based page, default 1 | - | No |
|
|
830
|
+
| `--page-size <n>` | Default 20, at most 100 | - | No |
|
|
831
|
+
| `--json` | Output in JSON format | - | No |
|
|
832
|
+
|
|
833
|
+
#### `sandbox internal-access create-internal-access-sandbox-grant`
|
|
834
|
+
|
|
835
|
+
Allow one of your sandboxes to call this project's internal addresses
|
|
836
|
+
|
|
837
|
+
**Options:**
|
|
838
|
+
|
|
839
|
+
| Flag | Description | Default | Required |
|
|
840
|
+
|------|-------------|---------|----------|
|
|
841
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
842
|
+
| `--description <value>` | Why the grant exists, up to 200 characters | - | No |
|
|
843
|
+
| `--sandbox-id <value>` | Public id of one of your sandboxes [required] | - | No |
|
|
844
|
+
| `--target-environment-id <n>` | The environment of this project that may be called; omit for every environment, present and future | - | No |
|
|
845
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
846
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
847
|
+
| `--json` | Output in JSON format | - | No |
|
|
848
|
+
|
|
849
|
+
#### `sandbox internal-access delete-grant`
|
|
850
|
+
|
|
851
|
+
Stop a sandbox from calling this project's internal addresses
|
|
852
|
+
|
|
853
|
+
**Usage:** `sandbox internal-access delete-grant <grant-id> [options]`
|
|
854
|
+
|
|
855
|
+
**Options:**
|
|
856
|
+
|
|
857
|
+
| Flag | Description | Default | Required |
|
|
858
|
+
|------|-------------|---------|----------|
|
|
859
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
860
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
861
|
+
| `--json` | Output in JSON format | - | No |
|
|
862
|
+
|
|
863
|
+
#### `sandbox internal-access delete-internal-access-grant`
|
|
864
|
+
|
|
865
|
+
Stop another project from calling this project's internal addresses
|
|
866
|
+
|
|
867
|
+
**Usage:** `sandbox internal-access delete-internal-access-grant <grant-id> [options]`
|
|
868
|
+
|
|
869
|
+
**Options:**
|
|
870
|
+
|
|
871
|
+
| Flag | Description | Default | Required |
|
|
872
|
+
|------|-------------|---------|----------|
|
|
873
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
874
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
875
|
+
| `--json` | Output in JSON format | - | No |
|
|
876
|
+
|
|
877
|
+
#### `sandbox internal-access list-addresses`
|
|
878
|
+
|
|
879
|
+
List the internal addresses one of your sandboxes may call
|
|
880
|
+
|
|
881
|
+
**Usage:** `sandbox internal-access list-addresses <sandbox-id> [options]`
|
|
882
|
+
|
|
883
|
+
**Options:**
|
|
884
|
+
|
|
885
|
+
| Flag | Description | Default | Required |
|
|
886
|
+
|------|-------------|---------|----------|
|
|
887
|
+
| `--page <n>` | 1-based page, default 1 | - | No |
|
|
888
|
+
| `--page-size <n>` | Default 20, at most 100 | - | No |
|
|
889
|
+
| `--json` | Output in JSON format | - | No |
|
|
890
|
+
|
|
891
|
+
### `sandbox services`
|
|
892
|
+
|
|
893
|
+
Services commands
|
|
894
|
+
|
|
895
|
+
**Subcommands:**
|
|
896
|
+
|
|
897
|
+
- `list` - List sandbox services
|
|
898
|
+
- `request` - Request sandbox service
|
|
899
|
+
- `approve` - Approve sandbox service
|
|
900
|
+
- `revoke` - Revoke sandbox service
|
|
901
|
+
|
|
902
|
+
#### `sandbox services list`
|
|
903
|
+
|
|
904
|
+
List sandbox services
|
|
905
|
+
|
|
906
|
+
**Usage:** `sandbox services list <sandbox-id> [options]`
|
|
907
|
+
|
|
908
|
+
**Options:**
|
|
909
|
+
|
|
910
|
+
| Flag | Description | Default | Required |
|
|
911
|
+
|------|-------------|---------|----------|
|
|
912
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
913
|
+
| `--page <n>` | Query parameter page | - | No |
|
|
914
|
+
| `--page-size <n>` | Query parameter page_size | - | No |
|
|
915
|
+
| `--json` | Output in JSON format | - | No |
|
|
916
|
+
|
|
917
|
+
#### `sandbox services request`
|
|
918
|
+
|
|
919
|
+
Request sandbox service
|
|
920
|
+
|
|
921
|
+
**Usage:** `sandbox services request <sandbox-id> [options]`
|
|
922
|
+
|
|
923
|
+
**Options:**
|
|
924
|
+
|
|
925
|
+
| Flag | Description | Default | Required |
|
|
926
|
+
|------|-------------|---------|----------|
|
|
927
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
928
|
+
| `--service-id <value>` | Body field service_id [required] | - | No |
|
|
929
|
+
| `--service-version <n>` | Body field service_version [required] | - | No |
|
|
930
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
931
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
932
|
+
| `--json` | Output in JSON format | - | No |
|
|
933
|
+
|
|
934
|
+
#### `sandbox services approve`
|
|
935
|
+
|
|
936
|
+
Approve sandbox service
|
|
937
|
+
|
|
938
|
+
**Usage:** `sandbox services approve <sandbox-id> <access-id> [options]`
|
|
939
|
+
|
|
940
|
+
**Options:**
|
|
941
|
+
|
|
942
|
+
| Flag | Description | Default | Required |
|
|
943
|
+
|------|-------------|---------|----------|
|
|
944
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
945
|
+
| `--expected-version <n>` | Body field expected_version [required] | - | No |
|
|
946
|
+
| `--expires-at <value>` | Omit for the sandbox lifetime | - | No |
|
|
947
|
+
| `--service-version <n>` | Body field service_version [required] | - | No |
|
|
948
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
949
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
950
|
+
| `--json` | Output in JSON format | - | No |
|
|
951
|
+
|
|
952
|
+
#### `sandbox services revoke`
|
|
953
|
+
|
|
954
|
+
Revoke sandbox service
|
|
955
|
+
|
|
956
|
+
**Usage:** `sandbox services revoke <sandbox-id> <access-id> [options]`
|
|
957
|
+
|
|
958
|
+
**Options:**
|
|
959
|
+
|
|
960
|
+
| Flag | Description | Default | Required |
|
|
961
|
+
|------|-------------|---------|----------|
|
|
962
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
963
|
+
| `--expected-version <n>` | Body field expected_version [required] | - | No |
|
|
964
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
965
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
966
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
967
|
+
| `--json` | Output in JSON format | - | No |
|
|
968
|
+
|
|
969
|
+
### `sandbox get-creation`
|
|
970
|
+
|
|
971
|
+
Read a create's steps by the 'creation_id' its 'POST /v1/sandboxes' sent
|
|
972
|
+
|
|
973
|
+
**Usage:** `sandbox get-creation <creation-id> [options]`
|
|
974
|
+
|
|
975
|
+
**Options:**
|
|
976
|
+
|
|
977
|
+
| Flag | Description | Default | Required |
|
|
978
|
+
|------|-------------|---------|----------|
|
|
979
|
+
| `--json` | Output in JSON format | - | No |
|
|
980
|
+
|
|
981
|
+
### `sandbox get-image-preparation`
|
|
982
|
+
|
|
983
|
+
Every host that can run sandboxes, with whether its default sandbox image is pulled (with download..
|
|
984
|
+
|
|
985
|
+
**Options:**
|
|
986
|
+
|
|
987
|
+
| Flag | Description | Default | Required |
|
|
988
|
+
|------|-------------|---------|----------|
|
|
989
|
+
| `--json` | Output in JSON format | - | No |
|
|
990
|
+
|
|
991
|
+
### `sandbox prepare-images`
|
|
992
|
+
|
|
993
|
+
Pull the default sandbox image on every eligible host (or one), so the first sandbox there starts without..
|
|
994
|
+
|
|
995
|
+
**Options:**
|
|
996
|
+
|
|
997
|
+
| Flag | Description | Default | Required |
|
|
998
|
+
|------|-------------|---------|----------|
|
|
999
|
+
| `--node-id <n>` | The host to prepare: a node id, or '0' for the control plane | - | No |
|
|
1000
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1001
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1002
|
+
| `--json` | Output in JSON format | - | No |
|
|
1003
|
+
|
|
1004
|
+
### `sandbox update-host-image-preparation`
|
|
1005
|
+
|
|
1006
|
+
Turn keeping one host's sandbox image prepared on or off
|
|
1007
|
+
|
|
1008
|
+
**Usage:** `sandbox update-host-image-preparation <node-id> [options]`
|
|
1009
|
+
|
|
1010
|
+
**Options:**
|
|
1011
|
+
|
|
1012
|
+
| Flag | Description | Default | Required |
|
|
1013
|
+
|------|-------------|---------|----------|
|
|
1014
|
+
| `--keep-prepared` | Keep this host's default sandbox image pulled, re-pulling it when an upgrade changes the default. 'false'... [required] | - | No |
|
|
1015
|
+
| `--no-keep-prepared` | Set keep_prepared to false | - | No |
|
|
1016
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1017
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1018
|
+
| `--json` | Output in JSON format | - | No |
|
|
1019
|
+
|
|
1020
|
+
### `sandbox get-resource-defaults`
|
|
1021
|
+
|
|
1022
|
+
Effective resource defaults and input ceilings for the requested placement
|
|
1023
|
+
|
|
1024
|
+
**Options:**
|
|
1025
|
+
|
|
1026
|
+
| Flag | Description | Default | Required |
|
|
1027
|
+
|------|-------------|---------|----------|
|
|
1028
|
+
| `--node <value>` | Query parameter node | - | No |
|
|
1029
|
+
| `--backend <value>` | Which isolation backend a sandbox runs on (ADR-029, ADR-050) (one of: docker, firecracker, microsandbox, local) | - | No |
|
|
1030
|
+
| `--json` | Output in JSON format | - | No |
|
|
1031
|
+
|
|
1032
|
+
### `sandbox rootfs-report`
|
|
1033
|
+
|
|
1034
|
+
Inspect rootfs storage: the Firecracker digest-keyed cache (with which sandboxes reference each entry) and..
|
|
1035
|
+
|
|
1036
|
+
**Options:**
|
|
1037
|
+
|
|
1038
|
+
| Flag | Description | Default | Required |
|
|
1039
|
+
|------|-------------|---------|----------|
|
|
1040
|
+
| `--json` | Output in JSON format | - | No |
|
|
1041
|
+
|
|
1042
|
+
### `sandbox rootfs-gc`
|
|
1043
|
+
|
|
1044
|
+
Reclaim rootfs cache entries not backing any live sandbox
|
|
1045
|
+
|
|
1046
|
+
**Options:**
|
|
1047
|
+
|
|
1048
|
+
| Flag | Description | Default | Required |
|
|
1049
|
+
|------|-------------|---------|----------|
|
|
1050
|
+
| `--json` | Output in JSON format | - | No |
|
|
1051
|
+
|
|
1052
|
+
### `sandbox get-cmd`
|
|
1053
|
+
|
|
1054
|
+
Get cmd
|
|
1055
|
+
|
|
1056
|
+
**Usage:** `sandbox get-cmd <id> <cmd-id> [options]`
|
|
1057
|
+
|
|
1058
|
+
**Options:**
|
|
1059
|
+
|
|
1060
|
+
| Flag | Description | Default | Required |
|
|
1061
|
+
|------|-------------|---------|----------|
|
|
1062
|
+
| `--json` | Output in JSON format | - | No |
|
|
1063
|
+
|
|
1064
|
+
### `sandbox cmd-logs`
|
|
1065
|
+
|
|
1066
|
+
Stream a command's stdout/stderr as 'application/x-ndjson' ('@vercel/sandbox'-compatible)
|
|
1067
|
+
|
|
1068
|
+
**Usage:** `sandbox cmd-logs <id> <cmd-id> [options]`
|
|
1069
|
+
|
|
1070
|
+
**Options:**
|
|
1071
|
+
|
|
1072
|
+
| Flag | Description | Default | Required |
|
|
1073
|
+
|------|-------------|---------|----------|
|
|
1074
|
+
| `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
|
|
1075
|
+
| `--json` | Output in JSON format | - | No |
|
|
1076
|
+
|
|
1077
|
+
### `sandbox cmd`
|
|
1078
|
+
|
|
1079
|
+
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`
|
|
1080
|
+
|
|
1081
|
+
**Usage:** `sandbox cmd <id> [options]`
|
|
1082
|
+
|
|
1083
|
+
**Options:**
|
|
1084
|
+
|
|
1085
|
+
| Flag | Description | Default | Required |
|
|
1086
|
+
|------|-------------|---------|----------|
|
|
1087
|
+
| `--command <value>` | Program to run [required] | - | No |
|
|
1088
|
+
| `--args <value>` | Argument (repeatable, in order) (repeatable) | - | No |
|
|
1089
|
+
| `--cwd <value>` | Working directory inside the sandbox | - | No |
|
|
1090
|
+
| `--env <json>` | Environment variables as a JSON object, e.g. {"NODE_ENV":"test"} (JSON) | - | No |
|
|
1091
|
+
| `--sudo` | Run the command privileged | - | No |
|
|
1092
|
+
| `--no-sudo` | Set sudo to false | - | No |
|
|
1093
|
+
| `--wait` | Wait for the command to finish | - | No |
|
|
1094
|
+
| `--no-wait` | Set wait to false | - | No |
|
|
1095
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1096
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1097
|
+
| `-o, --output <path>` | Where to write the reply (default: stdout) | `-` | No |
|
|
1098
|
+
| `--json` | Output in JSON format | - | No |
|
|
1099
|
+
|
|
1100
|
+
### `sandbox get-creation-by`
|
|
1101
|
+
|
|
1102
|
+
Read the steps of the create that made a sandbox, while this server still tracks it (it is running, or..
|
|
1103
|
+
|
|
1104
|
+
**Usage:** `sandbox get-creation-by <id> [options]`
|
|
1105
|
+
|
|
1106
|
+
**Options:**
|
|
1107
|
+
|
|
1108
|
+
| Flag | Description | Default | Required |
|
|
1109
|
+
|------|-------------|---------|----------|
|
|
1110
|
+
| `--json` | Output in JSON format | - | No |
|
|
1111
|
+
|
|
1112
|
+
### `sandbox list-dir`
|
|
1113
|
+
|
|
1114
|
+
List dir
|
|
1115
|
+
|
|
1116
|
+
**Usage:** `sandbox list-dir <id> [options]`
|
|
1117
|
+
|
|
1118
|
+
**Options:**
|
|
1119
|
+
|
|
1120
|
+
| Flag | Description | Default | Required |
|
|
1121
|
+
|------|-------------|---------|----------|
|
|
1122
|
+
| `--path <value>` | Absolute path of a directory inside the sandbox [required] | - | No |
|
|
1123
|
+
| `--page <n>` | 1-based page (default 1) | - | No |
|
|
1124
|
+
| `--page-size <n>` | Entries per page (default 20, max 100) | - | No |
|
|
1125
|
+
| `--json` | Output in JSON format | - | No |
|
|
1126
|
+
|
|
1127
|
+
### `sandbox write-files`
|
|
1128
|
+
|
|
1129
|
+
Batch-write multiple files in a single request
|
|
1130
|
+
|
|
1131
|
+
**Usage:** `sandbox write-files <id> [options]`
|
|
1132
|
+
|
|
1133
|
+
**Options:**
|
|
1134
|
+
|
|
1135
|
+
| Flag | Description | Default | Required |
|
|
1136
|
+
|------|-------------|---------|----------|
|
|
1137
|
+
| `--files <json>` | List of files to write (JSON) [required] | - | No |
|
|
1138
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1139
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1140
|
+
| `--json` | Output in JSON format | - | No |
|
|
1141
|
+
|
|
1142
|
+
### `sandbox list-jobs`
|
|
1143
|
+
|
|
1144
|
+
List jobs
|
|
1145
|
+
|
|
1146
|
+
**Usage:** `sandbox list-jobs <id> [options]`
|
|
1147
|
+
|
|
1148
|
+
**Options:**
|
|
1149
|
+
|
|
1150
|
+
| Flag | Description | Default | Required |
|
|
1151
|
+
|------|-------------|---------|----------|
|
|
1152
|
+
| `--json` | Output in JSON format | - | No |
|
|
1153
|
+
|
|
1154
|
+
### `sandbox job-status`
|
|
1155
|
+
|
|
1156
|
+
Job status
|
|
1157
|
+
|
|
1158
|
+
**Usage:** `sandbox job-status <id> <job-id> [options]`
|
|
1159
|
+
|
|
1160
|
+
**Options:**
|
|
1161
|
+
|
|
1162
|
+
| Flag | Description | Default | Required |
|
|
1163
|
+
|------|-------------|---------|----------|
|
|
1164
|
+
| `--json` | Output in JSON format | - | No |
|
|
1165
|
+
|
|
1166
|
+
### `sandbox kill-job`
|
|
1167
|
+
|
|
1168
|
+
Terminate a detached job
|
|
1169
|
+
|
|
1170
|
+
**Usage:** `sandbox kill-job <id> <job-id> [options]`
|
|
1171
|
+
|
|
1172
|
+
**Options:**
|
|
1173
|
+
|
|
1174
|
+
| Flag | Description | Default | Required |
|
|
1175
|
+
|------|-------------|---------|----------|
|
|
1176
|
+
| `--force` | When true, sends SIGKILL immediately | - | No |
|
|
1177
|
+
| `--no-force` | Set force to false | - | 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
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1181
|
+
| `--json` | Output in JSON format | - | No |
|
|
1182
|
+
|
|
1183
|
+
### `sandbox create-preview-link`
|
|
1184
|
+
|
|
1185
|
+
Mint a shareable link to a sandbox preview
|
|
1186
|
+
|
|
1187
|
+
**Usage:** `sandbox create-preview-link <id> [options]`
|
|
1188
|
+
|
|
1189
|
+
**Options:**
|
|
1190
|
+
|
|
1191
|
+
| Flag | Description | Default | Required |
|
|
1192
|
+
|------|-------------|---------|----------|
|
|
1193
|
+
| `--path <value>` | Path the recipient lands on | - | No |
|
|
1194
|
+
| `--port <n>` | Port inside the sandbox the preview serves on [required] | - | No |
|
|
1195
|
+
| `--ttl-seconds <n>` | How long the link stays usable, in seconds | - | No |
|
|
1196
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1197
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1198
|
+
| `--json` | Output in JSON format | - | No |
|
|
1199
|
+
|
|
1200
|
+
### `sandbox resize`
|
|
1201
|
+
|
|
1202
|
+
Grow a Firecracker sandbox's root disk
|
|
1203
|
+
|
|
1204
|
+
**Usage:** `sandbox resize <id> [options]`
|
|
1205
|
+
|
|
1206
|
+
**Options:**
|
|
1207
|
+
|
|
1208
|
+
| Flag | Description | Default | Required |
|
|
1209
|
+
|------|-------------|---------|----------|
|
|
1210
|
+
| `--disk-size-mb <n>` | New root disk size in MB [required] | - | No |
|
|
1211
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1212
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1213
|
+
| `--json` | Output in JSON format | - | No |
|
|
1214
|
+
|
|
1215
|
+
### `sandbox issue-runtime-environment`
|
|
1216
|
+
|
|
1217
|
+
Issue the same scoped service variables used by a deployment runtime for the project attached to this sandbox
|
|
1218
|
+
|
|
1219
|
+
**Usage:** `sandbox issue-runtime-environment <id> [options]`
|
|
1220
|
+
|
|
1221
|
+
**Options:**
|
|
1222
|
+
|
|
1223
|
+
| Flag | Description | Default | Required |
|
|
1224
|
+
|------|-------------|---------|----------|
|
|
1225
|
+
| `--json` | Output in JSON format | - | No |
|
|
1226
|
+
|
|
1227
|
+
### `sandbox cmd-kill`
|
|
1228
|
+
|
|
1229
|
+
Kill a running command ('@vercel/sandbox'-compatible)
|
|
1230
|
+
|
|
1231
|
+
**Usage:** `sandbox cmd-kill <id> <cmd-id> [options]`
|
|
1232
|
+
|
|
1233
|
+
**Options:**
|
|
1234
|
+
|
|
1235
|
+
| Flag | Description | Default | Required |
|
|
1236
|
+
|------|-------------|---------|----------|
|
|
1237
|
+
| `--force` | Optional: when true, SIGKILL instead of SIGTERM | - | No |
|
|
1238
|
+
| `--no-force` | Set force to false | - | No |
|
|
1239
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1240
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1241
|
+
| `--json` | Output in JSON format | - | No |
|