name: agentuity-cli-cloud-env-pull description: 从云端拉取环境变量到本地的.env.production文件。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” metadata: command: “agentuity cloud env pull” tags: “slow requires-auth requires-project”
云环境变量拉取
从云端拉取环境变量到本地的.env.production文件
前提条件
- 已通过
agentuity auth login完成身份验证 - 需要项目上下文(在项目目录中运行或使用
--project-id) - 云部署
使用方法
agentuity cloud env pull [选项]
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--force |
布尔值 | 否 | false |
使用云端值覆盖本地值 |
示例
运行拉取命令:
bunx @agentuity/cli env pull
使用强制选项:
bunx @agentuity/cli env pull --force
输出
返回JSON对象:
{
"success": "boolean",
"pulled": "number",
"path": "string",
"force": "boolean"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
boolean | 拉取是否成功 |
pulled |
number | 拉取的项目数量 |
path |
string | 保存变量的本地文件路径 |
force |
boolean | 是否使用了强制模式 |