vm0-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVM0 CLI
VM0 CLI
Build and run AI agents in secure sandboxed environments using the VM0 command-line interface.
Official docs: https://docs.vm0.ai
When to Use
适用场景
Use this skill when you need to:
- Install and set up the VM0 CLI
- Create and configure AI agent projects
- Deploy agents to the VM0 platform
- Run agents with prompts and inputs
- Manage input files (volumes) and output files (artifacts)
- View logs and usage statistics
当你需要以下操作时,可使用该工具:
- 安装和配置VM0 CLI
- 创建和配置AI Agent项目
- 将Agent部署到VM0平台
- 通过提示词和输入运行Agent
- 管理输入文件(卷)和输出文件(制品)
- 查看日志和使用统计数据
Prerequisites
前置条件
Installation
安装步骤
Install the VM0 CLI globally via npm:
bash
npm install -g @vm0/cliVerify installation:
bash
vm0 --version通过npm全局安装VM0 CLI:
bash
npm install -g @vm0/cli验证安装:
bash
vm0 --versionAuthentication
身份验证
Log in to your VM0 account:
bash
vm0 auth loginThis opens a browser for authentication. After login, verify status:
bash
vm0 auth statusFor CI/CD environments, get your API token:
bash
vm0 auth setup-tokenThen set the environment variable:
bash
export VM0_TOKEN=vm0_live_your-api-key登录你的VM0账户:
bash
vm0 auth login这会打开浏览器进行身份验证。登录后,验证状态:
bash
vm0 auth status对于CI/CD环境,获取你的API令牌:
bash
vm0 auth setup-token然后设置环境变量:
bash
export VM0_TOKEN=vm0_live_your-api-keyQuick Start
快速开始
1. Initialize a Project
1. 初始化项目
Create a new VM0 project in the current directory:
bash
vm0 initThis creates a configuration file interactively. For non-interactive mode:
vm0.yamlbash
vm0 init --name my-agent在当前目录创建一个新的VM0项目:
bash
vm0 init这会以交互方式创建一个配置文件。非交互模式:
vm0.yamlbash
vm0 init --name my-agent2. Configure the Agent
2. 配置Agent
Edit to define your agent:
vm0.yamlyaml
version: "1.0"
agents:
my-agent:
framework: claude-code
instructions: AGENTS.md
skills:
- https://github.com/vm0-ai/vm0-skills/tree/main/github
environment:
DEBUG: "${{ vars.DEBUG }}"
API_KEY: "${{ secrets.API_KEY }}"编辑来定义你的Agent:
vm0.yamlyaml
version: "1.0"
agents:
my-agent:
framework: claude-code
instructions: AGENTS.md
skills:
- https://github.com/vm0-ai/vm0-skills/tree/main/github
environment:
DEBUG: "${{ vars.DEBUG }}"
API_KEY: "${{ secrets.API_KEY }}"3. Deploy the Agent
3. 部署Agent
Deploy your agent configuration:
bash
vm0 compose vm0.yamlSkip confirmation prompts with :
-ybash
vm0 compose vm0.yaml -y部署你的Agent配置:
bash
vm0 compose vm0.yaml使用跳过确认提示:
-ybash
vm0 compose vm0.yaml -y4. Run the Agent
4. 运行Agent
Execute the agent with a prompt:
bash
vm0 run my-agent "Please analyze the codebase and suggest improvements"Or use for one-click execution from :
cookvm0.yamlbash
vm0 cook "Analyze the code"通过提示词执行Agent:
bash
vm0 run my-agent "Please analyze the codebase and suggest improvements"或者使用命令从一键执行:
cookvm0.yamlbash
vm0 cook "Analyze the code"Core Operations
核心操作
Running Agents
运行Agent
Basic run:
bash
vm0 run my-agent "Your prompt here"Run with variables and secrets:
bash
vm0 run my-agent "Process data" --vars DEBUG=true --secrets API_KEY=xxxRun with environment file:
bash
vm0 run my-agent "Process data" --env-file=.env.localLoad environment variables from a file. The file should contain pairs (one per line). This is useful for local development when you don't want to use the syntax in .
KEY=value${{ secrets.* }}vm0.yamlExample file:
.env.localbash
GH_TOKEN=github_pat_xxx
API_KEY=sk-xxx
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxxRun with artifact storage:
bash
vm0 run my-agent "Generate report" --artifact-name my-outputRun with input volumes:
bash
vm0 run my-agent "Process files" --volume-version input-data=latestEnable verbose output:
bash
vm0 run my-agent "Hello" -vResume from checkpoint:
bash
vm0 run resume <checkpoint-id> "Continue the task"Continue from session:
bash
vm0 run continue <session-id> "Next step"基础运行:
bash
vm0 run my-agent "Your prompt here"带变量和密钥运行:
bash
vm0 run my-agent "Process data" --vars DEBUG=true --secrets API_KEY=xxx带环境文件运行:
bash
vm0 run my-agent "Process data" --env-file=.env.local从文件加载环境变量。文件应包含格式的键值对(每行一个)。这在本地开发中很有用,你无需在中使用语法。
KEY=valuevm0.yaml${{ secrets.* }}示例文件:
.env.localbash
GH_TOKEN=github_pat_xxx
API_KEY=sk-xxx
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxx带制品存储运行:
bash
vm0 run my-agent "Generate report" --artifact-name my-output带输入卷运行:
bash
vm0 run my-agent "Process files" --volume-version input-data=latest启用详细输出:
bash
vm0 run my-agent "Hello" -v从检查点恢复:
bash
vm0 run resume <checkpoint-id> "Continue the task"从会话继续:
bash
vm0 run continue <session-id> "Next step"One-Click Execution (cook)
一键执行(cook)
Run directly from in current directory:
vm0.yamlbash
vm0 cook "Your prompt"Skip confirmation:
bash
vm0 cook -y "Your prompt"Run with environment file:
bash
vm0 cook --env-file=.env.local "Your prompt"Load environment variables from a file for the agent run. Combine with to skip confirmation:
-ybash
vm0 cook -y --env-file=.env.local "Your prompt"Continue last session:
bash
vm0 cook continue "Follow up"Resume from last checkpoint:
bash
vm0 cook resume "Continue"View logs from last cook run:
bash
vm0 cook logs直接从当前目录的运行:
vm0.yamlbash
vm0 cook "Your prompt"跳过确认:
bash
vm0 cook -y "Your prompt"带环境文件运行:
bash
vm0 cook --env-file=.env.local "Your prompt"从文件加载环境变量用于Agent运行。结合跳过确认:
-ybash
vm0 cook -y --env-file=.env.local "Your prompt"继续上一个会话:
bash
vm0 cook continue "Follow up"从最后一个检查点恢复:
bash
vm0 cook resume "Continue"查看上一次cook运行的日志:
bash
vm0 cook logsViewing Logs
查看日志
View agent events (default):
bash
vm0 logs <run-id>View system logs:
bash
vm0 logs <run-id> --systemView metrics:
bash
vm0 logs <run-id> --metricsView network logs:
bash
vm0 logs <run-id> --networkFilter by time:
bash
vm0 logs <run-id> --since 5m
vm0 logs <run-id> --since 2h
vm0 logs <run-id> --since 2024-01-15T10:30:00ZShow last N entries:
bash
vm0 logs <run-id> --tail 20查看Agent事件(默认):
bash
vm0 logs <run-id>查看系统日志:
bash
vm0 logs <run-id> --system查看指标:
bash
vm0 logs <run-id> --metrics查看网络日志:
bash
vm0 logs <run-id> --network按时间过滤:
bash
vm0 logs <run-id> --since 5m
vm0 logs <run-id> --since 2h
vm0 logs <run-id> --since 2024-01-15T10:30:00Z显示最后N条记录:
bash
vm0 logs <run-id> --tail 20Storage Management
存储管理
Volumes (Input Files)
卷(输入文件)
Volumes store input files that agents can read.
Initialize a volume (interactive):
bash
cd my-data-directory
vm0 volume initInitialize a volume (non-interactive):
bash
cd my-data-directory
vm0 volume init --name my-dataPush local files to cloud:
bash
vm0 volume pushPull cloud files to local:
bash
vm0 volume pullPull specific version:
bash
vm0 volume pull abc123deCheck volume status:
bash
vm0 volume statusList all volumes:
bash
vm0 volume listClone a remote volume:
bash
vm0 volume clone my-volume ./local-dir卷用于存储Agent可以读取的输入文件。
初始化卷(交互模式):
bash
cd my-data-directory
vm0 volume init初始化卷(非交互模式):
bash
cd my-data-directory
vm0 volume init --name my-data将本地文件推送到云端:
bash
vm0 volume push将云端文件拉取到本地:
bash
vm0 volume pull拉取特定版本:
bash
vm0 volume pull abc123de检查卷状态:
bash
vm0 volume status列出所有卷:
bash
vm0 volume list克隆远程卷:
bash
vm0 volume clone my-volume ./local-dirArtifacts (Output Files)
制品(输出文件)
Artifacts store output files created by agents.
Initialize an artifact (interactive):
bash
cd my-output-directory
vm0 artifact initInitialize an artifact (non-interactive):
bash
cd my-output-directory
vm0 artifact init --name my-outputPush local files to cloud:
bash
vm0 artifact pushPull cloud files to local:
bash
vm0 artifact pullPull specific version:
bash
vm0 artifact pull abc123deCheck artifact status:
bash
vm0 artifact statusList all artifacts:
bash
vm0 artifact listClone a remote artifact:
bash
vm0 artifact clone my-artifact ./local-dir制品用于存储Agent生成的输出文件。
初始化制品(交互模式):
bash
cd my-output-directory
vm0 artifact init初始化制品(非交互模式):
bash
cd my-output-directory
vm0 artifact init --name my-output将本地文件推送到云端:
bash
vm0 artifact push将云端文件拉取到本地:
bash
vm0 artifact pull拉取特定版本:
bash
vm0 artifact pull abc123de检查制品状态:
bash
vm0 artifact status列出所有制品:
bash
vm0 artifact list克隆远程制品:
bash
vm0 artifact clone my-artifact ./local-dirAgent Management
Agent管理
List Agents
列出Agent
bash
vm0 agent listWith details:
bash
vm0 agent list --verbosebash
vm0 agent list查看详细信息:
bash
vm0 agent list --verboseInspect Agent
检查Agent
View agent configuration:
bash
vm0 agent inspect my-agentView specific version:
bash
vm0 agent inspect my-agent:abc123查看Agent配置:
bash
vm0 agent inspect my-agent查看特定版本:
bash
vm0 agent inspect my-agent:abc123Clone Agent
克隆Agent
Download an agent's compose configuration to local directory:
bash
vm0 agent clone my-agentClone to a specific directory:
bash
vm0 agent clone my-agent ./my-projectThis command:
- Downloads compose configuration and saves as
vm0.yaml - Downloads instructions file (e.g., ) if exists
AGENTS.md - Preserves environment variables with syntax
${{ secrets.X }} - Fails if destination directory already exists
将Agent的compose配置下载到本地目录:
bash
vm0 agent clone my-agent克隆到指定目录:
bash
vm0 agent clone my-agent ./my-project该命令会:
- 下载compose配置并保存为
vm0.yaml - 如果存在说明文件(如)则一并下载
AGENTS.md - 保留使用语法的环境变量
${{ secrets.X }} - 如果目标目录已存在则执行失败
Usage Statistics
使用统计
View your usage statistics:
bash
vm0 usageFilter by date range:
bash
vm0 usage --since 7d
vm0 usage --since 30d
vm0 usage --since 2024-01-01 --until 2024-01-31查看你的使用统计数据:
bash
vm0 usage按日期范围过滤:
bash
vm0 usage --since 7d
vm0 usage --since 30d
vm0 usage --since 2024-01-01 --until 2024-01-31Model Provider Configuration
模型提供商配置
Manage LLM model providers for agent runs.
管理用于Agent运行的LLM模型提供商。
Supported Provider Types
支持的提供商类型
| Type | Description |
|---|---|
| Anthropic API key (Claude models) |
| OpenRouter API with auto model routing |
| Moonshot AI (Kimi) API key |
| MiniMax API key |
List providers:
bash
vm0 model-provider listSetup a provider (interactive):
bash
vm0 model-provider setupSetup a provider (non-interactive):
bash
vm0 model-provider setup --type anthropic-api-key --credential "sk-ant-xxx"Set default provider:
bash
vm0 model-provider set-default anthropic-api-keyDelete a provider:
bash
vm0 model-provider delete anthropic-api-key| 类型 | 描述 |
|---|---|
| Anthropic API密钥(Claude模型) |
| OpenRouter API,支持自动模型路由 |
| 月之暗面AI(Kimi)API密钥 |
| MiniMax API密钥 |
列出提供商:
bash
vm0 model-provider list设置提供商(交互模式):
bash
vm0 model-provider setup设置提供商(非交互模式):
bash
vm0 model-provider setup --type anthropic-api-key --credential "sk-ant-xxx"设置默认提供商:
bash
vm0 model-provider set-default anthropic-api-key删除提供商:
bash
vm0 model-provider delete anthropic-api-keyOpenRouter Provider
OpenRouter提供商
OpenRouter supports multiple model providers through a single API. Two modes available:
Auto mode (default): OpenRouter automatically routes to the best available model.
bash
vm0 model-provider setup --type openrouter-api-key --credential "sk-or-xxx"Explicit model selection: Specify a model from supported list.
bash
vm0 model-provider setup --type openrouter-api-key --credential "sk-or-xxx" --model anthropic/claude-sonnet-4.5Supported models include Claude (anthropic/claude-), Kimi (moonshotai/kimi-), DeepSeek (deepseek/), GLM (z-ai/glm-), MiniMax (minimax/), and Qwen (qwen/) series.
OpenRouter通过单一API支持多个模型提供商,提供两种模式:
自动模式(默认): OpenRouter自动路由到最佳可用模型。
bash
vm0 model-provider setup --type openrouter-api-key --credential "sk-or-xxx"显式模型选择: 从支持的列表中指定模型。
bash
vm0 model-provider setup --type openrouter-api-key --credential "sk-or-xxx" --model anthropic/claude-sonnet-4.5支持的模型包括Claude(anthropic/claude-)、Kimi(moonshotai/kimi-)、DeepSeek(deepseek/)、GLM(z-ai/glm-)、MiniMax(minimax/)和Qwen(qwen/)系列。
Secret Management
密钥管理
Store secrets remotely for agent runs. Secrets are for sensitive values (API keys, tokens) and are referenced in vm0.yaml as .
${{ secrets.NAME }}List secrets:
bash
vm0 secret listSet a secret (interactive — prompts for value):
bash
vm0 secret set MY_API_KEYSet a secret (non-interactive):
bash
vm0 secret set MY_API_KEY --body "sk-xxx-secret-value"Set a secret with description:
bash
vm0 secret set MY_API_KEY --body "sk-xxx" --description "OpenAI API key for summarization"Delete a secret:
bash
vm0 secret delete MY_API_KEYDelete without confirmation:
bash
vm0 secret delete MY_API_KEY -y为Agent运行远程存储密钥。密钥用于存储敏感值(API密钥、令牌),在vm0.yaml中通过引用。
${{ secrets.NAME }}列出密钥:
bash
vm0 secret list设置密钥(交互模式 — 提示输入值):
bash
vm0 secret set MY_API_KEY设置密钥(非交互模式):
bash
vm0 secret set MY_API_KEY --body "sk-xxx-secret-value"设置带描述的密钥:
bash
vm0 secret set MY_API_KEY --body "sk-xxx" --description "OpenAI API key for summarization"删除密钥:
bash
vm0 secret delete MY_API_KEY无需确认直接删除:
bash
vm0 secret delete MY_API_KEY -yVariable Management
变量管理
Store variables remotely for agent runs. Variables are for non-sensitive configuration and are referenced in vm0.yaml as .
${{ vars.NAME }}List variables:
bash
vm0 variable listSet a variable:
bash
vm0 variable set DEBUG trueSet a variable with description:
bash
vm0 variable set ENV_NAME production --description "Target environment"Delete a variable:
bash
vm0 variable delete DEBUGDelete without confirmation:
bash
vm0 variable delete ENV_NAME -y为Agent运行远程存储变量。变量用于非敏感配置,在vm0.yaml中通过引用。
${{ vars.NAME }}列出变量:
bash
vm0 variable list设置变量:
bash
vm0 variable set DEBUG true设置带描述的变量:
bash
vm0 variable set ENV_NAME production --description "Target environment"删除变量:
bash
vm0 variable delete DEBUG无需确认直接删除:
bash
vm0 variable delete ENV_NAME -yvm0.yaml Reference
vm0.yaml 参考文档
Basic Structure
基本结构
yaml
version: "1.0"
agents:
agent-name:
framework: claude-code
instructions: AGENTS.md
skills:
- https://github.com/vm0-ai/vm0-skills/tree/main/github
- https://github.com/vm0-ai/vm0-skills/tree/main/slack
environment:
VAR_NAME: "value"
SECRET_VAR: "${{ secrets.SECRET_NAME }}"
CONFIG_VAR: "${{ vars.CONFIG_NAME }}"yaml
version: "1.0"
agents:
agent-name:
framework: claude-code
instructions: AGENTS.md
skills:
- https://github.com/vm0-ai/vm0-skills/tree/main/github
- https://github.com/vm0-ai/vm0-skills/tree/main/slack
environment:
VAR_NAME: "value"
SECRET_VAR: "${{ secrets.SECRET_NAME }}"
CONFIG_VAR: "${{ vars.CONFIG_NAME }}"Fields
字段说明
| Field | Description |
|---|---|
| Configuration version (currently "1.0") |
| Map of agent definitions |
| Agent framework (e.g., |
| Path to instructions file |
| List of skill URLs to include |
| Environment variables for the agent |
| 字段 | 描述 |
|---|---|
| 配置版本(当前为"1.0") |
| Agent定义的映射 |
| Agent框架(例如 |
| 说明文件的路径 |
| 要包含的技能URL列表 |
| Agent的环境变量 |
Variable Syntax
变量语法
- - Sensitive values stored securely
${{ secrets.NAME }} - - Non-sensitive configuration values
${{ vars.NAME }} - Direct values - Plain text values
- - 安全存储的敏感值
${{ secrets.NAME }} - - 非敏感配置值
${{ vars.NAME }} - 直接值 - 纯文本值
Environment Information
环境信息
View system and environment details:
bash
vm0 info查看系统和环境详情:
bash
vm0 infoNon-Interactive Mode (CI/CD)
非交互模式(CI/CD)
All commands support non-interactive mode for use in CI/CD pipelines, scripts, and automated environments. The CLI detects non-TTY environments () and requires explicit flags for all inputs.
process.stdout.isTTY === false所有命令都支持非交互模式,适用于CI/CD流水线、脚本和自动化环境。CLI会检测非TTY环境(),并要求所有输入使用显式标志。
process.stdout.isTTY === falseAuthentication
身份验证
Set the environment variable instead of interactive login:
VM0_TOKENbash
export VM0_TOKEN=vm0_live_your-api-key设置环境变量以替代交互式登录:
VM0_TOKENbash
export VM0_TOKEN=vm0_live_your-api-keyCommand Reference
命令参考
| Command | Non-Interactive Flags | Notes |
|---|---|---|
| | Required in non-TTY |
| | Skip new secrets confirmation |
| | Load environment variables from file |
| | Skip prompts; load env vars from file |
| | Required in non-TTY |
| | Required in non-TTY |
| | All required; |
| | Skip deletion confirmation |
| | Required in non-TTY |
| | Skip confirmation |
| | Skip confirmation |
| | Both required together |
| 命令 | 非交互标志 | 说明 |
|---|---|---|
| | 非TTY环境下必填 |
| | 跳过新密钥确认 |
| | 从文件加载环境变量 |
| | 跳过提示;从文件加载环境变量 |
| | 非TTY环境下必填 |
| | 非TTY环境下必填 |
| | 全部必填;每周/每月计划需加 |
| | 跳过删除确认 |
| | 非TTY环境下必填 |
| | 跳过确认 |
| | 跳过确认 |
| | 两者需同时提供 |
CI/CD Example
CI/CD示例
bash
undefinedbash
undefinedSet authentication
设置身份验证
export VM0_TOKEN=${{ secrets.VM0_TOKEN }}
export VM0_TOKEN=${{ secrets.VM0_TOKEN }}
Initialize project (non-interactive)
初始化项目(非交互模式)
vm0 init --name my-agent --force
vm0 init --name my-agent --force
Initialize storage (non-interactive)
初始化存储(非交互模式)
cd input-data && vm0 volume init --name input-data && cd ..
cd artifact && vm0 artifact init --name artifact && cd ..
cd input-data && vm0 volume init --name input-data && cd ..
cd artifact && vm0 artifact init --name artifact && cd ..
Deploy agent (skip confirmation)
部署Agent(跳过确认)
vm0 compose vm0.yaml -y
vm0 compose vm0.yaml -y
Run agent with environment file
带环境文件运行Agent
vm0 run my-agent --artifact-name artifact --env-file=.env.local "Execute the task"
undefinedvm0 run my-agent --artifact-name artifact --env-file=.env.local "Execute the task"
undefinedGitHub Actions Example
GitHub Actions示例
yaml
jobs:
run-agent:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install VM0 CLI
run: npm install -g @vm0/cli
- name: Run Agent
env:
VM0_TOKEN: ${{ secrets.VM0_TOKEN }}
run: |
vm0 compose vm0.yaml -y
vm0 run my-agent --artifact-name output --env-file=.env "Generate daily report"yaml
jobs:
run-agent:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install VM0 CLI
run: npm install -g @vm0/cli
- name: Run Agent
env:
VM0_TOKEN: ${{ secrets.VM0_TOKEN }}
run: |
vm0 compose vm0.yaml -y
vm0 run my-agent --artifact-name output --env-file=.env "Generate daily report"Model Provider Setup (Non-Interactive)
模型提供商设置(非交互模式)
bash
vm0 model-provider setup --type anthropic-api-key --credential "sk-ant-xxx"bash
vm0 model-provider setup --type anthropic-api-key --credential "sk-ant-xxx"Guidelines
使用指南
- Always authenticate first - Run before using other commands
vm0 auth login - Use for new projects - Creates proper project structure
vm0 init - Deploy before running - Run after modifying
vm0 composevm0.yaml - Use volumes for input data - Push data files as volumes before running agents
- Check logs for debugging - Use to troubleshoot failed runs
vm0 logs - Use scopes for organization - Set appropriate scope for team collaboration
- 始终先进行身份验证 - 使用其他命令前先运行
vm0 auth login - 使用创建新项目 - 生成正确的项目结构
vm0 init - 运行前先部署 - 修改后运行
vm0.yamlvm0 compose - 使用卷存储输入数据 - 运行Agent前将数据文件推送到卷中
- 查看日志进行调试 - 使用排查运行失败问题
vm0 logs - 使用作用域进行组织 - 为团队协作设置合适的作用域
Common Workflows
常见工作流
Deploy and Run Agent
部署并运行Agent
bash
undefinedbash
undefined1. Initialize project
1. 初始化项目
vm0 init --name my-agent
vm0 init --name my-agent
2. Edit vm0.yaml and AGENTS.md
2. 编辑vm0.yaml和AGENTS.md
3. Deploy configuration
3. 部署配置
vm0 compose vm0.yaml
vm0 compose vm0.yaml
4. Run the agent
4. 运行Agent
vm0 run my-agent "Execute the task"
vm0 run my-agent "Execute the task"
5. Check logs if needed
5. 必要时查看日志
vm0 logs <run-id>
undefinedvm0 logs <run-id>
undefinedProvide Input Files to Agent
为Agent提供输入文件
bash
undefinedbash
undefined1. Create and navigate to data directory
1. 创建并进入数据目录
mkdir input-data && cd input-data
mkdir input-data && cd input-data
2. Add your files
2. 添加你的文件
cp ~/documents/*.pdf .
cp ~/documents/*.pdf .
3. Initialize and push volume (use --name for non-interactive)
3. 初始化并推送卷(非交互模式使用--name)
vm0 volume init --name input-data
vm0 volume push
vm0 volume init --name input-data
vm0 volume push
4. Run agent with volume
4. 带卷运行Agent
cd ..
vm0 run my-agent "Process the documents" --volume-version input-data=latest
undefinedcd ..
vm0 run my-agent "Process the documents" --volume-version input-data=latest
undefinedDownload Agent Output
下载Agent输出
bash
undefinedbash
undefined1. List artifacts
1. 列出制品
vm0 artifact list
vm0 artifact list
2. Clone the artifact locally
2. 将制品克隆到本地
vm0 artifact clone my-output ./results
vm0 artifact clone my-output ./results
3. Or pull to existing directory
3. 或者拉取到现有目录
cd my-output-dir
vm0 artifact pull
---cd my-output-dir
vm0 artifact pull
---Troubleshooting
故障排查
Authentication Issues
身份验证问题
bash
undefinedbash
undefinedCheck auth status
检查身份验证状态
vm0 auth status
vm0 auth status
Re-login if needed
必要时重新登录
vm0 auth logout
vm0 auth login
undefinedvm0 auth logout
vm0 auth login
undefinedAgent Not Found
Agent未找到
bash
undefinedbash
undefinedList available agents
列出可用Agent
vm0 agent list
vm0 agent list
Check if deployed
检查是否已部署
vm0 compose vm0.yaml
undefinedvm0 compose vm0.yaml
undefinedView Detailed Errors
查看详细错误
bash
undefinedbash
undefinedUse verbose mode
使用详细模式
vm0 run my-agent "prompt" -v
vm0 run my-agent "prompt" -v
Check system logs
检查系统日志
vm0 logs <run-id> --system
undefinedvm0 logs <run-id> --system
undefined