云平台密钥设置Skill agentuity-cli-cloud-secret-set

Agentuity云平台密钥管理工具,用于安全设置和存储环境变量、API密钥等敏感信息。关键词:云平台、密钥管理、环境变量、安全存储、DevOps、CI/CD、配置管理、敏感数据保护

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

name: agentuity-cli-cloud-secret-set description: 设置密钥。需要身份验证。用于Agentuity云平台操作 version: “0.0.104” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<key> <value>” metadata: command: “agentuity cloud secret set” tags: “mutating updates-resource slow requires-auth requires-project”

云平台密钥设置

设置一个密钥

前提条件

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

使用方法

agentuity cloud secret set <key> <value>

参数

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

示例

设置 DATABASE_URL 环境密钥:

bunx @agentuity/cli secret set DATABASE_URL "postgres://user:pass@host:5432/db"

设置 STRIPE_SECRET_KEY 环境密钥:

bunx @agentuity/cli secret set STRIPE_SECRET_KEY "sk_live_..."

输出

返回JSON对象:

{
  "success": "boolean",
  "key": "string",
  "path": "string"
}
字段 类型 描述
success 布尔值 操作是否成功
key 字符串 密钥名称
path 字符串 密钥保存的本地文件路径