name: agentuity-cli-cloud-storage-get description: 显示特定存储桶的详细信息。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<名称>” metadata: command: “agentuity cloud storage get” tags: “只读 快速 需要认证”
云存储获取
显示特定存储桶的详细信息
先决条件
- 已通过
agentuity auth login认证 - 需要组织上下文(
--org-id或默认组织)
用法
agentuity cloud storage get <名称> [选项]
参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
<名称> |
字符串 | 是 | - |
选项
| 选项 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
--showCredentials |
布尔值 | 是 | - | 以明文显示凭据(默认:终端中隐藏,JSON中显示) |
示例
获取存储桶详情:
bunx @agentuity/cli cloud storage get my-bucket
显示存储桶信息:
bunx @agentuity/cli cloud storage show my-bucket
获取存储桶及凭据:
bunx @agentuity/cli cloud storage get my-bucket --show-credentials
输出
返回JSON对象:
{
"bucket_name": "string",
"access_key": "string",
"secret_key": "string",
"region": "string",
"endpoint": "string"
}
| 字段 | 类型 | 描述 |
|---|---|---|
bucket_name |
字符串 | 存储桶名称 |
access_key |
字符串 | S3访问密钥 |
secret_key |
字符串 | S3秘密密钥 |
region |
字符串 | S3区域 |
endpoint |
字符串 | S3端点URL |