name: agentuity-cli-cloud-deploy description: 将项目部署到Agentuity云平台。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” metadata: command: “agentuity cloud deploy” tags: “mutating creates-resource slow api-intensive requires-auth requires-project”
云部署
将项目部署到Agentuity云平台
先决条件
- 已通过
agentuity auth login完成身份验证 - 需要项目上下文(从项目目录运行或使用
--project-id) - 身份验证登录
使用方法
agentuity cloud deploy [选项]
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--tag |
数组 | 否 | ["latest"] |
要添加到部署的一个或多个标签 |
--logsUrl |
字符串 | 是 | - | CI构建日志的URL |
--trigger |
字符串 | 否 | "cli" |
触发构建的原因 |
--commitUrl |
字符串 | 是 | - | CI提交的URL |
--message |
字符串 | 是 | - | 与此部署关联的消息 |
--provider |
字符串 | 是 | - | CI提供程序名称(尝试自动检测) |
--event |
字符串 | 否 | "manual" |
触发部署的事件 |
--pullRequestNumber |
数字 | 是 | - | 拉取请求编号 |
--pullRequestCommentId |
字符串 | 是 | - | 拉取请求评论ID |
--pullRequestURL |
字符串 | 是 | - | 拉取请求URL |
示例
部署当前项目:
bunx @agentuity/cli cloud deploy
使用详细输出进行部署:
bunx @agentuity/cli cloud deploy --log-level=debug
使用特定标签进行部署:
bunx @agentuity/cli cloud deploy --tag a --tag b
输出
返回JSON对象:
{
"success": "boolean",
"deploymentId": "string",
"projectId": "string",
"logs": "array",
"urls": "object"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
boolean | 部署是否成功 |
deploymentId |
string | 部署ID |
projectId |
string | 项目ID |
logs |
array | 部署启动日志 |
urls |
object | 部署URL |