Agent Sandbox Registry

agent-sandbox

CLI Evidence: Create

无英文版

.agents/evidence/cli/create.md

CLI Evidence: Create

create --template base

$ abx create --template base
ID        sbx-ev-001
Status    running
Template  base
URL       https://sbx-ev-001.cn-hangzhou.e2b.fc.aliyuncs.com
Sandbox sbx-ev-001 created successfully.
Exit code: 0

--json create --template base

$ abx --json create --template base
{
  "ID": "sbx-ev-001",
  "Status": "running",
  "Template": "base",
  "URL": "https://sbx-ev-001.cn-hangzhou.e2b.fc.aliyuncs.com"
}
Exit code: 0

create NL "运行 python"(AI 生成模板)

$ abx create -y "运行 python"
ID        sbx-ev-001
Status    running
Template  abx-nl-python-ev001
URL       https://sbx-ev-001.cn-hangzhou.e2b.fc.aliyuncs.com
Sandbox sbx-ev-001 created successfully.
Exit code: 0

stderr:

... Generating template

✓ AI generated template: abx-nl-python-ev001
    Dockerfile:    /home/user/.abx/generated/abx-nl-python-ev001/Dockerfile
    template.yaml: /home/user/.abx/generated/abx-nl-python-ev001/template.yaml
... Creating...

create NL "启动 Node.js 服务"(AI 生成模板)

$ abx create -y "启动 Node.js 服务"
ID        sbx-ev-001
Status    running
Template  abx-nl-nodejs-ev001
URL       https://sbx-ev-001.cn-hangzhou.e2b.fc.aliyuncs.com
Sandbox sbx-ev-001 created successfully.
Exit code: 0

stderr:

... Generating template

✓ AI generated template: abx-nl-nodejs-ev001
    Dockerfile:    /home/user/.abx/generated/abx-nl-nodejs-ev001/Dockerfile
    template.yaml: /home/user/.abx/generated/abx-nl-nodejs-ev001/template.yaml
... Creating...

create NL 非交互描述完整(需确认)

$ abx create "用 Python 3.12,预装 pandas 和 jupyter,入口命令 jupyter notebook,端口 8888,2 核 4GB 内存,上传 data.csv 数据"
Exit code: 1

stderr:

Natural-language create generates a template, then builds and pushes the image, deploys it, and creates a sandbox. Template only: abx template init "用 Python 3.12,预装 pandas 和 jupyter,入口命令 jupyter notebook,端口 8888,2 核 4GB 内存,上传 data.csv 数据"
... Researching public facts
... Assessing description
... Generating template

✓ AI generated template: abx-nl-python-ev001
    Dockerfile:    /home/user/.abx/generated/abx-nl-python-ev001/Dockerfile
    template.yaml: /home/user/.abx/generated/abx-nl-python-ev001/template.yaml
Confirmation required to build and deploy the AI-generated template. Use --yes/-y to skip in non-interactive mode.

create NL 非交互描述不完整(E2008 + 缺失项 + 示例)

$ abx create "运行 python"
Exit code: 1

stderr:

Natural-language create generates a template, then builds and pushes the image, deploys it, and creates a sandbox. Template only: abx template init "运行 python"
... Researching public facts
... Assessing description
[E2008] The description is about 30% complete (minimum 80%) and this session cannot ask clarifying questions.
  Suggestion: Missing details: dependencies, entry command, ports, resources, data. Example description: "Python 3.12 runtime with pandas and jupyter installed, entry command 'jupyter notebook --ip 0.0.0.0', port 8888, 2 CPU 4 GB memory, upload a data.csv dataset". Add them to DESCRIPTION, pass --yes/-y to generate from the current description anyway, or use 'abx create --template <name>'.

create NL 未安装 Qwen Code(Quick Setup)

$ abx create "运行 python"
Exit code: 1

stderr:

Natural-language create generates a template, then builds and pushes the image, deploys it, and creates a sandbox. Template only: abx template init "运行 python"
Warning: Qwen Code CLI was not found on PATH or in ~/.abx/bin.

Quick Setup - AI template generation (Qwen Code):
  1. Install the Qwen Code CLI (official standalone build):
       curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash
     or re-run 'abx create "<description>"' and accept the install prompt
     or bypass AI generation with:  abx create --template base
  2. Docs: https://github.com/QwenLM/qwen-code
[E2005] Qwen Code CLI is required for AI template generation but is not installed.
  Suggestion: Install it with the official command from Quick Setup above, then retry — or use 'abx create --template <name>' to skip AI generation.

create -e FOO=bar

$ abx create -e FOO=bar --template base
ID        sbx-ev-001
Status    running
Template  base
URL       https://sbx-ev-001.cn-hangzhou.e2b.fc.aliyuncs.com
Sandbox sbx-ev-001 created successfully.
Exit code: 0

create -m project=demo

$ abx create -m project=demo --template base
ID        sbx-ev-001
Status    running
Template  base
URL       https://sbx-ev-001.cn-hangzhou.e2b.fc.aliyuncs.com
Sandbox sbx-ev-001 created successfully.
Exit code: 0

create -e INVALID(格式错误)

$ abx create -e INVALID --template base
Exit code: 2

stderr:

Invalid environment variable format: 'INVALID' (expected KEY=VALUE)

create 同时提供描述与 --template(拒绝)

$ abx create "运行 python" --template base
Exit code: 1

stderr:

DESCRIPTION and --template cannot be combined. Drop --template to generate a template from the description, or drop DESCRIPTION to launch an existing template directly.