agentuity-cli-cloud-secret-importSkill agentuity-cli-cloud-secret-import

Agentuity云平台密钥导入工具,用于将配置文件中的密钥批量导入到云端环境和本地.env.production文件中。支持环境变量管理、密钥同步、DevOps自动化部署。关键词:密钥管理、环境变量、云平台、DevOps、自动化部署、配置文件导入、Agentuity CLI、安全密钥同步

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

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

云端密钥导入

从文件导入密钥到云端和本地.env.production

前提条件

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

使用方法

agentuity cloud secret import <文件>

参数

参数 类型 必填 描述
<文件> 字符串 -

示例

运行.env.local命令:

bunx @agentuity/cli secret import .env.local

运行.env.production.backup命令:

bunx @agentuity/cli secret import .env.production.backup

输出

返回JSON对象:

{
  "success": "boolean",
  "imported": "number",
  "skipped": "number",
  "path": "string",
  "file": "string"
}
字段 类型 描述
success boolean 导入是否成功
imported number 导入的项目数量
skipped number 跳过的项目数量
path string 密钥保存的本地文件路径
file string 源文件路径