Skip to main content

Sandbox

Bailian CLI command reference for sandbox instance and template lifecycle management.

Manage Bailian sandbox instances and templates from the terminal: create, list, get, connect, pause, resume, and delete instances, as well as create, update, list, get, and delete templates with build-status polling.
Sandbox capabilities are currently available only to China site (aliyun.com) accounts, requiring the cn-beijing region and prior Sandbox SLR authorization.
Append --help to any command for full parameter details, e.g. bl sandbox create --help. Connection credentials are redacted by default; use --show-credentials when needed.

Instance management

CapabilityCommandNotes
List instancesbl sandbox listList sandbox instances in the workspace
Instance detailsbl sandbox getShow configuration and connection info for a specific instance
Create instancebl sandbox createCreate a sandbox instance
Connect to instancebl sandbox connectGet instance connection info (WebShell, CDP, VNC)
Pause instancebl sandbox pausePause a running instance
Resume instancebl sandbox resumeResume a paused instance
Delete instancebl sandbox deleteRelease (delete) an instance (high-risk)

Template management

CapabilityCommandNotes
List templatesbl sandbox template listList sandbox templates in the workspace
Template detailsbl sandbox template getShow configuration for a specific template
Create templatebl sandbox template createCreate a sandbox template, with --image for built-in base image presets
Update templatebl sandbox template updateUpdate template configuration
Build statusbl sandbox template build-statusQuery template build status (poll after --async submission)
Delete templatebl sandbox template deleteDelete a template (high-risk)

Built-in images and file upload

CapabilityCommandNotes
Official imagesbl sandbox official-imagesList built-in base image presets (Code Interpreter, Browser, All-in-One); no auth required
Upload mount filebl sandbox file uploadUpload template mount files (source=sandbox_template); returns File ID for mntConfig

Examples

bl sandbox official-images
bl sandbox create --template-id <template-id> --instance-timeout 3600
bl sandbox get --sandbox-id <instance-id> --show-credentials --output json
bl sandbox template create --image code-interpreter --name my-sandbox-template
Capabilities
Changelog