-
Notifications
You must be signed in to change notification settings - Fork 1
Updates #331
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
Open
parteeksingh24
wants to merge
1
commit into
main
Choose a base branch
from
update-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Updates #331
Changes from all commits
Commits
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
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 |
|---|---|---|
|
|
@@ -20,8 +20,16 @@ All sandbox commands require the `cloud` prefix. For example: `agentuity cloud s | |
| | `sandbox delete <id>` | Destroy sandbox | | ||
| | `sandbox exec <id> -- <cmd>` | Execute in existing sandbox | | ||
| | `sandbox cp` | Copy files to/from sandbox | | ||
| | `sandbox files <id>` | List files in sandbox | | ||
| | `sandbox mkdir <id> <path>` | Create directory | | ||
| | `sandbox rmdir <id> <path>` | Remove directory | | ||
| | `sandbox rm <id> <path>` | Remove file | | ||
| | `sandbox download <id> <output>` | Download as archive | | ||
| | `sandbox upload <id> <archive>` | Upload and extract archive | | ||
| | `sandbox snapshot` | Manage snapshots | | ||
| | `sandbox execution` | View execution history | | ||
| | `sandbox runtime list` | List available runtimes | | ||
| | `sandbox env <id>` | Manage environment variables | | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have build and generate commands that will come out in tonights release |
||
| **Alias:** `sb` (e.g., `agentuity cloud sb list`) | ||
|
|
||
|
|
@@ -143,7 +151,9 @@ agentuity cloud sandbox delete sbx_abc123 --confirm # Skip prompt | |
|
|
||
| ## File Operations | ||
|
|
||
| Copy files to and from sandboxes. | ||
| ### Copy Files | ||
|
|
||
| Copy individual files or directories to and from sandboxes. | ||
|
|
||
| ```bash | ||
| agentuity cloud sandbox cp <source> <destination> | ||
|
|
@@ -160,6 +170,124 @@ agentuity cloud sandbox cp sbx_abc123:/workspace/output.json ./output.json | |
| agentuity cloud sandbox cp ./src sbx_abc123:/workspace/src | ||
| ``` | ||
|
|
||
| ### List Files | ||
|
|
||
| List files and directories in a sandbox. | ||
|
|
||
| ```bash | ||
| agentuity cloud sandbox files <sandbox-id> [path] [options] | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |--------|-------------| | ||
| | `-l, --long` | Show permissions and timestamps | | ||
| | `--json` | JSON output | | ||
|
|
||
| **Alias:** `lsf` | ||
|
|
||
| ```bash | ||
| # List root directory | ||
| agentuity cloud sandbox files sbx_abc123 | ||
|
|
||
| # List specific directory | ||
| agentuity cloud sandbox files sbx_abc123 /workspace/src | ||
|
|
||
| # Long format with details | ||
| agentuity cloud sandbox files sbx_abc123 -l | ||
| ``` | ||
|
|
||
| ### Create Directory | ||
|
|
||
| ```bash | ||
| agentuity cloud sandbox mkdir <sandbox-id> <path> [options] | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |--------|-------------| | ||
| | `-p, --parents` | Create parent directories as needed | | ||
|
|
||
| ```bash | ||
| # Create a directory | ||
| agentuity cloud sandbox mkdir sbx_abc123 /workspace/output | ||
|
|
||
| # Create nested directories | ||
| agentuity cloud sandbox mkdir sbx_abc123 /workspace/data/processed -p | ||
| ``` | ||
|
|
||
| ### Remove Files and Directories | ||
|
|
||
| ```bash | ||
| # Remove a file | ||
| agentuity cloud sandbox rm <sandbox-id> <path> | ||
|
|
||
| # Remove a directory | ||
| agentuity cloud sandbox rmdir <sandbox-id> <path> [options] | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |--------|-------------| | ||
| | `-r, --recursive` | Remove directory and all contents | | ||
|
|
||
| ```bash | ||
| # Remove a file | ||
| agentuity cloud sandbox rm sbx_abc123 /workspace/temp.txt | ||
|
|
||
| # Remove empty directory | ||
| agentuity cloud sandbox rmdir sbx_abc123 /workspace/old | ||
|
|
||
| # Remove directory with contents | ||
| agentuity cloud sandbox rmdir sbx_abc123 /workspace/cache -r | ||
| ``` | ||
|
|
||
| ### Download Archive | ||
|
|
||
| Download sandbox files as a compressed archive. | ||
|
|
||
| ```bash | ||
| agentuity cloud sandbox download <sandbox-id> <output-file> [options] | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |--------|-------------| | ||
| | `--path <path>` | Download specific directory (defaults to root) | | ||
| | `--format <format>` | Archive format: `tar.gz` (default) or `zip` | | ||
|
|
||
| **Alias:** `dl` | ||
|
|
||
| ```bash | ||
| # Download entire sandbox | ||
| agentuity cloud sandbox download sbx_abc123 ./backup.tar.gz | ||
|
|
||
| # Download as zip | ||
| agentuity cloud sandbox download sbx_abc123 ./backup.zip --format zip | ||
|
|
||
| # Download specific directory | ||
| agentuity cloud sandbox download sbx_abc123 ./src.tar.gz --path /workspace/src | ||
| ``` | ||
|
|
||
| ### Upload Archive | ||
|
|
||
| Upload and extract an archive into a sandbox. | ||
|
|
||
| ```bash | ||
| agentuity cloud sandbox upload <sandbox-id> <archive-file> [options] | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |--------|-------------| | ||
| | `--path <path>` | Destination path (defaults to root) | | ||
| | `--format <format>` | Archive format (auto-detected if not specified) | | ||
|
|
||
| **Alias:** `ul` | ||
|
|
||
| ```bash | ||
| # Upload and extract to root | ||
| agentuity cloud sandbox upload sbx_abc123 ./project.tar.gz | ||
|
|
||
| # Upload to specific directory | ||
| agentuity cloud sandbox upload sbx_abc123 ./deps.zip --path /workspace/node_modules | ||
| ``` | ||
|
|
||
| ## Snapshot Commands | ||
|
|
||
| Manage sandbox snapshots for creating pre-configured environments. | ||
|
|
@@ -317,6 +445,59 @@ agentuity cloud sandbox get sbx_abc123 --json | |
| agentuity cloud sandbox snapshot list --json | ||
| ``` | ||
|
|
||
| ## Runtime Commands | ||
|
|
||
| List available sandbox runtimes. | ||
|
|
||
| ### List Runtimes | ||
|
|
||
| ```bash | ||
| agentuity cloud sandbox runtime list [options] | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |--------|-------------| | ||
| | `--limit <n>` | Max results (default: 50, max: 100) | | ||
| | `--offset <n>` | Pagination offset | | ||
| | `--json` | JSON output | | ||
|
|
||
| ```bash | ||
| # List available runtimes | ||
| agentuity cloud sandbox runtime list | ||
|
|
||
| # With pagination | ||
| agentuity cloud sandbox runtime list --limit 10 --offset 20 | ||
| ``` | ||
|
|
||
| **Alias:** `rt` (e.g., `agentuity cloud sandbox rt list`) | ||
|
|
||
| ## Environment Variables | ||
|
|
||
| Manage environment variables on a running sandbox. | ||
|
|
||
| ```bash | ||
| agentuity cloud sandbox env <sandbox-id> [KEY=VALUE...] [options] | ||
| ``` | ||
|
|
||
| | Option | Description | | ||
| |--------|-------------| | ||
| | `--delete <key>` | Delete variable (repeatable, alias: `-d`) | | ||
| | `--json` | JSON output | | ||
|
|
||
| ```bash | ||
| # Set an environment variable | ||
| agentuity cloud sandbox env sbx_abc123 MY_VAR=value | ||
|
|
||
| # Set multiple variables | ||
| agentuity cloud sandbox env sbx_abc123 VAR1=value1 VAR2=value2 | ||
|
|
||
| # Delete a variable | ||
| agentuity cloud sandbox env sbx_abc123 --delete MY_VAR | ||
|
|
||
| # Delete multiple variables | ||
| agentuity cloud sandbox env sbx_abc123 -d VAR1 -d VAR2 | ||
| ``` | ||
|
|
||
| ## Next Steps | ||
|
|
||
| - [Sandbox Overview](/Sandbox): Understand sandbox concepts, security defaults, and when to use each execution mode | ||
|
|
||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to put
"domains": []to show that you can configure domains? i believe that is now the default when i create a new project