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

这是一个用于Agentuity云平台的命令行工具技能,专门用于从本地文件批量导入环境变量到云端环境和本地生产配置文件。该技能支持环境变量管理、云平台配置同步、开发运维自动化等功能,适用于DevOps工程师、云平台管理员和开发人员进行环境配置管理。关键词:环境变量导入、云平台配置、DevOps工具、Agentuity CLI、配置文件同步、开发环境管理

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": "boolean",
  "imported": "number",
  "skipped": "number",
  "path": "string",
  "file": "string"
}
字段 类型 描述
success boolean 导入是否成功
imported number 导入的项目数量
skipped number 跳过的项目数量
path string 变量保存的本地文件路径
file string 源文件路径