name: agentuity-cli-cloud-secret-push description: 将本地 .env.production 文件中的密钥推送到云端。需要身份验证。用于 Agentuity 云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” metadata: command: “agentuity cloud secret push” tags: “mutating updates-resource slow api-intensive requires-auth requires-project”
云端密钥推送
将本地 .env.production 文件中的密钥推送到云端
前置条件
- 已通过
agentuity auth login完成身份验证 - 需要项目上下文(从项目目录运行或使用
--project-id参数) - 已设置密钥
使用方法
agentuity cloud secret push
示例
运行推送命令:
bunx @agentuity/cli secret push
输出
返回 JSON 对象:
{
"success": "boolean",
"pushed": "number",
"source": "string"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
boolean | 推送是否成功 |
pushed |
number | 推送的项目数量 |
source |
string | 源文件路径 |