agentuity-cli-cloud-env-importSkill agentuity-cli-cloud-env-import

该技能用于将环境变量配置文件导入到Agentuity云平台和本地生产环境文件中,实现云端与本地环境变量的同步管理。关键词:环境变量导入、云平台配置、DevOps工具、CI/CD集成、项目部署、配置文件管理。

CI/CD 0 次安装 0 次浏览 更新于 2/28/2026

name: agentuity-cli-cloud-env-import description: 将环境变量从文件导入到云端和本地的 .env.production 文件。需要身份验证。用于 Agentuity 云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<文件>” metadata: command: “agentuity cloud env import” tags: “mutating creates-resource slow api-intensive requires-auth requires-project”

云端环境变量导入

将环境变量从文件导入到云端和本地的 .env.production 文件

前提条件

  • 已通过 agentuity auth login 完成身份验证
  • 需要项目上下文(在项目目录中运行或使用 --project-id

使用方法

agentuity cloud env import <文件>

参数

参数 类型 是否必需 描述
<文件> 字符串 -

示例

从 .env 文件导入环境变量:

bunx @agentuity/cli cloud env import .env

从 .env.local 文件导入:

bunx @agentuity/cli cloud env import .env.local

输出

返回 JSON 对象:

{
  "success": "布尔值",
  "imported": "数字",
  "skipped": "数字",
  "path": "字符串",
  "file": "字符串"
}
字段 类型 描述
success 布尔值 导入是否成功
imported 数字 导入的项目数量
skipped 数字 跳过的项目数量
path 字符串 变量保存的本地文件路径
file 字符串 源文件路径