name: agentuity-cli-cloud-secret-get description: 获取密钥值。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<key>” metadata: command: “agentuity cloud secret get” tags: “read-only fast requires-auth requires-project”
云密钥获取
获取密钥值
前提条件
- 已通过
agentuity auth login进行身份验证 - 需要项目上下文(从项目目录运行或使用
--project-id)
使用方法
agentuity cloud secret get <key> [options]
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<key> |
字符串 | 是 | - |
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--mask |
布尔值 | 否 | true |
在输出中屏蔽值(默认:在TTY中为true,否则为false) |
示例
获取项目详情:
bunx @agentuity/cli secret get DATABASE_URL
使用无屏蔽选项:
bunx @agentuity/cli secret get STRIPE_SECRET_KEY --no-mask
输出
返回JSON对象:
{
"key": "string",
"value": "string"
}
| 字段 | 类型 | 描述 |
|---|---|---|
key |
字符串 | 密钥名称 |
value |
字符串 | 密钥值 |