@temps-sdk/cli 0.2.0-beta.1 → 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 (68) hide show
  1. package/dist/index.js +68378 -53718
  2. package/dist/skills/temps/SKILL.md +1 -0
  3. package/dist/skills/temps/howtos/agent-handoff.md +106 -0
  4. package/dist/skills/temps/references/commands/INDEX.md +6 -0
  5. package/dist/skills/temps/references/commands/agents.md +731 -0
  6. package/dist/skills/temps/references/commands/ai.md +2636 -11
  7. package/dist/skills/temps/references/commands/alarms.md +125 -0
  8. package/dist/skills/temps/references/commands/analytics.md +1001 -3
  9. package/dist/skills/temps/references/commands/apikeys.md +48 -1
  10. package/dist/skills/temps/references/commands/audit.md +1 -0
  11. package/dist/skills/temps/references/commands/backups.md +306 -0
  12. package/dist/skills/temps/references/commands/blob.md +169 -0
  13. package/dist/skills/temps/references/commands/cloud.md +59 -0
  14. package/dist/skills/temps/references/commands/cluster.md +223 -0
  15. package/dist/skills/temps/references/commands/containers.md +45 -0
  16. package/dist/skills/temps/references/commands/custom-domains.md +32 -0
  17. package/dist/skills/temps/references/commands/data.md +1 -0
  18. package/dist/skills/temps/references/commands/deploy-image.md +3 -1
  19. package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
  20. package/dist/skills/temps/references/commands/deployments.md +559 -0
  21. package/dist/skills/temps/references/commands/dns-provider.md +63 -0
  22. package/dist/skills/temps/references/commands/domains.md +104 -0
  23. package/dist/skills/temps/references/commands/email-domains.md +1 -0
  24. package/dist/skills/temps/references/commands/email-providers.md +59 -1
  25. package/dist/skills/temps/references/commands/emails.md +91 -0
  26. package/dist/skills/temps/references/commands/environments.md +447 -2
  27. package/dist/skills/temps/references/commands/errors.md +563 -3
  28. package/dist/skills/temps/references/commands/flags.md +76 -0
  29. package/dist/skills/temps/references/commands/funnels.md +22 -2
  30. package/dist/skills/temps/references/commands/incidents.md +18 -0
  31. package/dist/skills/temps/references/commands/ip-access.md +96 -1
  32. package/dist/skills/temps/references/commands/kv.md +184 -0
  33. package/dist/skills/temps/references/commands/load-balancer.md +2 -0
  34. package/dist/skills/temps/references/commands/login.md +4 -1
  35. package/dist/skills/temps/references/commands/logs.md +272 -0
  36. package/dist/skills/temps/references/commands/migrate.md +17 -0
  37. package/dist/skills/temps/references/commands/monitors.md +386 -0
  38. package/dist/skills/temps/references/commands/network-policy.md +27 -0
  39. package/dist/skills/temps/references/commands/nodes.md +155 -2
  40. package/dist/skills/temps/references/commands/notifications.md +149 -0
  41. package/dist/skills/temps/references/commands/otel.md +436 -0
  42. package/dist/skills/temps/references/commands/platform.md +53 -0
  43. package/dist/skills/temps/references/commands/plugin.md +76 -0
  44. package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
  45. package/dist/skills/temps/references/commands/project-groups.md +31 -0
  46. package/dist/skills/temps/references/commands/projects.md +452 -6
  47. package/dist/skills/temps/references/commands/providers.md +519 -0
  48. package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
  49. package/dist/skills/temps/references/commands/revenue.md +219 -0
  50. package/dist/skills/temps/references/commands/sandbox.md +699 -9
  51. package/dist/skills/temps/references/commands/secrets.md +3 -0
  52. package/dist/skills/temps/references/commands/server.md +107 -0
  53. package/dist/skills/temps/references/commands/services.md +830 -5
  54. package/dist/skills/temps/references/commands/settings.md +346 -0
  55. package/dist/skills/temps/references/commands/shield.md +354 -0
  56. package/dist/skills/temps/references/commands/status-pages.md +103 -3
  57. package/dist/skills/temps/references/commands/teams.md +14 -0
  58. package/dist/skills/temps/references/commands/templates.md +14 -0
  59. package/dist/skills/temps/references/commands/tokens.md +106 -0
  60. package/dist/skills/temps/references/commands/traces.md +149 -0
  61. package/dist/skills/temps/references/commands/tunnels.md +2 -0
  62. package/dist/skills/temps/references/commands/users.md +111 -0
  63. package/dist/skills/temps/references/commands/vault.md +662 -0
  64. package/dist/skills/temps/references/commands/webhooks.md +4 -0
  65. package/dist/skills/temps/references/commands/workflows.md +347 -0
  66. package/dist/skills/temps/scripts/generate_command_references.py +5 -3
  67. package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
  68. 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)
@@ -26,6 +26,29 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
26
26
  - [`sandbox fs`](#sandbox-fs)
27
27
  - [`sandbox snapshots`](#sandbox-snapshots)
28
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)
29
52
 
30
53
  ## `sandbox`
31
54
 
@@ -36,7 +59,7 @@ Manage standalone sandboxes (/v1/sandbox API)
36
59
  - `create` - Create a new sandbox
37
60
  - `list` (`ls`) - List your sandboxes
38
61
  - `nodes` - List nodes that can run sandboxes and control which ones take new sandboxes
39
- - `show` - Show details for a sandbox
62
+ - `show` - Show a sandbox: status, image, node, expiry, preview access and outbound policy
40
63
  - `rm` (`stop`, `destroy`) - Remove a sandbox permanently (aliases: stop, destroy)
41
64
  - `pause` - Pause a running sandbox (non-destructive — resume later with `sandbox resume`)
42
65
  - `resume` - Resume a paused sandbox
@@ -44,8 +67,8 @@ Manage standalone sandboxes (/v1/sandbox API)
44
67
  - `clone` - Clone a git repo or extract a tarball into a running sandbox
45
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
46
69
  - `extend` - Extend a sandbox's idle timeout
47
- - `exec` - Run a command inside a sandbox. Use `--` to pass flags: `exec ID -- ls -la`
48
- - `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
49
72
  - `domain` - Resolve the preview URL for a port inside a sandbox
50
73
  - `password` - Generate, rotate, or clear the preview-URL password for a sandbox
51
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
@@ -53,6 +76,29 @@ Manage standalone sandboxes (/v1/sandbox API)
53
76
  - `fs` - Filesystem operations inside a sandbox
54
77
  - `snapshots` - Manage sandbox snapshots (ADR-037)
55
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)
56
102
 
57
103
  ### `sandbox create`
58
104
 
@@ -68,6 +114,8 @@ Create a new sandbox
68
114
  | `-e, --env <KEY=VAL>` | Env var baked into the container (repeatable) | - | No |
69
115
  | `--cpu-limit <cpu>` | CPU limit (e.g., 0.5 for half a core) | - | No |
70
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 |
71
119
  | `--git-url <url>` | Git repo URL to clone into the work dir | - | No |
72
120
  | `--git-rev <revision>` | Git revision to check out (requires --git-url) | - | No |
73
121
  | `--git-depth <n>` | Shallow clone depth (requires --git-url) | - | No |
@@ -218,7 +266,7 @@ Destroy every sandbox on a worker node, from all users, so the node can be remov
218
266
 
219
267
  ### `sandbox show`
220
268
 
221
- Show details for a sandbox
269
+ Show a sandbox: status, image, node, expiry, preview access and outbound policy
222
270
 
223
271
  **Usage:** `sandbox show <id> [options]`
224
272
 
@@ -275,6 +323,7 @@ Clone a git repo or extract a tarball into a running sandbox
275
323
  | `--git-username <user>` | HTTP Basic username (pairs with --git-password) | - | No |
276
324
  | `--git-password <token>` | HTTP Basic password/token (injected via GIT_ASKPASS) | - | No |
277
325
  | `--tarball-url <url>` | Tarball URL to download and extract | - | No |
326
+ | `--strip-git-metadata` | Remove the .git directory after cloning | - | No |
278
327
  | `--git-password-file <path>` | Read the Git HTTP password or token from a file (- reads stdin) instead of --git-password | - | No |
279
328
  | `--git-password-stdin` | Read the Git HTTP password or token from stdin instead of --git-password | - | No |
280
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 |
@@ -306,7 +355,7 @@ Extend a sandbox's idle timeout
306
355
 
307
356
  ### `sandbox exec`
308
357
 
309
- 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`
310
359
 
311
360
  **Usage:** `sandbox exec <id> [args...] [options]`
312
361
 
@@ -320,7 +369,7 @@ Run a command inside a sandbox. Use `--` to pass flags: `exec ID -- ls -la`
320
369
 
321
370
  ### `sandbox logs`
322
371
 
323
- Stream logs from a detached job (SSE)
372
+ Print the output of a job started with `exec --detach`, following it until the job ends
324
373
 
325
374
  **Usage:** `sandbox logs <id> <jobId>`
326
375
 
@@ -516,3 +565,644 @@ Take a snapshot of a sandbox
516
565
  | `--label <label>` | Human-readable label for the snapshot | - | No |
517
566
  | `--wait` | Wait until the snapshot reaches ready or failed status | - | No |
518
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 |