-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat(sandboxes): add application operations, v2 API, and CLI commands #7442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+5,956
−889
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
59fc989
feat(sandboxes): add application operations, v2 API, and CLI commands
icecrasher321 397bafb
fix(docs): pin the combined OpenAPI document with the sandbox paths a…
icecrasher321 2578e83
fix(sandboxes): spend the build budget after validation, conceal work…
icecrasher321 641848b
fix(sandboxes): exempt delete from the write budget and stop describi…
icecrasher321 f920909
fix(sandboxes): describe comment entries accurately and give the reso…
icecrasher321 7183547
fix(sandboxes): scope comment handling to manifest input and keep the…
icecrasher321 9033345
fix(cli): state inline list semantics beside the manifest-file rule i…
icecrasher321 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ | |
| "logs", | ||
| "mcp-servers", | ||
| "meta", | ||
| "sandboxes", | ||
| "secrets", | ||
| "skills", | ||
| "tables", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,127 @@ | ||
| --- | ||
| title: Sandboxes | ||
| description: Manage sandboxes — every subcommand, argument, and flag | ||
| --- | ||
|
|
||
| import { CommandTable } from '@/components/ui/command-table' | ||
|
|
||
| `sim sandboxes` is also spelled `sim sandbox`. | ||
|
|
||
| Every command below also accepts the [global options](/cli/commands#global-options). | ||
|
|
||
| ## Create sandbox | ||
|
|
||
| ```bash | ||
| sim sandboxes create [options] | ||
| ``` | ||
|
|
||
| Create Sandbox (personal API key required) | ||
|
|
||
| **Options** | ||
|
|
||
| <CommandTable> | ||
|
|
||
| | Option | Required | Description | | ||
| | --- | --- | --- | | ||
| | `--name <value>` | Yes | Display name, unique within the workspace; 1 to 64 characters. | | ||
| | `--language <value>` | Yes | Dependency ecosystem: `javascript` installs from npm, `python` from PyPI. Accepted values: `javascript`, `python`. | | ||
| | `--dependencies <value...>` | No | Package specifiers installed into the sandbox, one per entry. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). | | ||
| | `--cli-tools <value...>` | No | Pinned managed CLI ids installed into the sandbox, at most 10, no duplicates. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). | | ||
| | `--system-packages <value...>` | No | Debian packages installed into the sandbox, one per entry. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). | | ||
|
|
||
| </CommandTable> | ||
|
|
||
| ## Delete sandbox | ||
|
|
||
| ```bash | ||
| sim sandboxes delete <sandboxId> [options] | ||
| ``` | ||
|
|
||
| Delete Sandbox (personal API key required) | ||
|
|
||
| **Arguments** | ||
|
|
||
| <CommandTable> | ||
|
|
||
| | Argument | Required | Description | | ||
| | --- | --- | --- | | ||
| | `sandboxId` | Yes | Unique sandbox identifier. | | ||
|
|
||
| </CommandTable> | ||
|
|
||
| **Options** | ||
|
|
||
| <CommandTable> | ||
|
|
||
| | Option | Required | Description | | ||
| | --- | --- | --- | | ||
| | `-y, --yes` | Yes | Confirm this operation. | | ||
|
|
||
| </CommandTable> | ||
|
|
||
| ## Get sandbox | ||
|
|
||
| ```bash | ||
| sim sandboxes get <sandboxId> | ||
| ``` | ||
|
|
||
| **Arguments** | ||
|
|
||
| <CommandTable> | ||
|
|
||
| | Argument | Required | Description | | ||
| | --- | --- | --- | | ||
| | `sandboxId` | Yes | Unique sandbox identifier. | | ||
|
|
||
| </CommandTable> | ||
|
|
||
| ## List sandboxes | ||
|
|
||
| ```bash | ||
| sim sandboxes list [options] | ||
| ``` | ||
|
|
||
| **Options** | ||
|
|
||
| <CommandTable> | ||
|
|
||
| | Option | Required | Description | | ||
| | --- | --- | --- | | ||
| | `--search <value>` | No | Case-insensitive substring match against the sandbox name. | | ||
| | `--sort-by <value>` | No | Field used to sort the result. Sorting by `name` is case-sensitive and follows the storage collation, so do not rely on a case-insensitive order. Accepted values: `name`, `createdAt`, `updatedAt`. | | ||
| | `--sort-order <value>` | No | Sort direction. Accepted values: `asc`, `desc`. | | ||
| | `--limit <n>` | No | Maximum items to return (0 for everything). Defaults to `100`. | | ||
|
|
||
| </CommandTable> | ||
|
|
||
| ## Update sandbox | ||
|
|
||
| ```bash | ||
| sim sandboxes update <sandboxId> [options] | ||
| ``` | ||
|
|
||
| Update Sandbox (personal API key required) | ||
|
|
||
| **Arguments** | ||
|
|
||
| <CommandTable> | ||
|
|
||
| | Argument | Required | Description | | ||
| | --- | --- | --- | | ||
| | `sandboxId` | Yes | Unique sandbox identifier. | | ||
|
|
||
| </CommandTable> | ||
|
|
||
| **Options** | ||
|
|
||
| <CommandTable> | ||
|
|
||
| | Option | Required | Description | | ||
| | --- | --- | --- | | ||
| | `--name <value>` | No | New display name, unique within the workspace; 1 to 64 characters. | | ||
| | `--language <value>` | No | Replacement dependency ecosystem. The whole spec is revalidated against it, so a Python dependency list does not survive a switch to JavaScript. Accepted values: `javascript`, `python`. | | ||
| | `--dependencies <value...>` | No | Replacement package list; replaces the whole list. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). | | ||
| | `--cli-tools <value...>` | No | Replacement managed CLI list; replaces the whole list. (space-separated, or @path / @- with one value per line; @@value for a literal leading @). | | ||
| | `--system-packages <value...>` | No | Replacement Debian package list; replaces the whole list. (space-separated, or @path / @- with one value per line; in a file, blank lines and # comments are ignored, while inline values are sent as typed and may not be empty; @@value for a literal leading @). | | ||
|
|
||
| </CommandTable> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.