CLI 参考
全局参数
| 参数 | 说明 | 示例 |
|---|---|---|
--profile | 指定配置环境 | aios --profile prod infra cluster status |
--output | 输出格式 | aios --output json agent run list |
--help | 查看帮助 | aios infra --help |
--version | 查看版本 | aios --version |
Infrastructure 子命令
| 命令 | 说明 | 示例 |
|---|---|---|
infra cluster up | 创建/接管集群 | aios infra cluster up |
infra app deploy | 发布应用 | aios infra app deploy my-api --namespace dev-ai --replicas 2 |
infra app logs | 查看应用日志 | aios infra app logs my-api --follow |
Agent 子命令
| 命令 | 说明 | 示例 |
|---|---|---|
agent tool add | 注册工具 | aios agent tool add codex --token $CODEX_TOKEN |
agent run | 提交任务 | aios agent run --tool codex --task "补齐接口测试" |
agent run list | 查看历史运行 | aios agent run list --limit 20 |
agent run logs | 查看运行日志 | aios agent run logs <run-id> |