name: agentuity-cli-cloud-storage-get description: 显示特定存储桶的详细信息。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<name>” metadata: command: “agentuity cloud storage get” tags: “read-only fast requires-auth”
云存储获取
显示特定存储桶的详细信息
前提条件
- 已通过
agentuity auth login进行身份验证 - 需要组织上下文(
--org-id或默认组织)
使用方法
agentuity cloud storage get <name> [options]
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<name> |
字符串 | 是 | - |
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--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 |