name: agentuity-cli-cloud-storage-list description: 列出存储资源或存储桶中的文件。需要身份验证。用于Agentuity云平台操作 version: “0.0.104” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “[名称] [前缀]” metadata: command: “agentuity cloud storage list” tags: “只读 快速 需要认证”
云存储列表
列出存储资源或存储桶中的文件
前提条件
- 已通过
agentuity auth login完成身份验证 - 需要组织上下文(
--org-id或默认组织)
使用方法
agentuity cloud storage list [名称] [前缀] [选项]
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<名称> |
字符串 | 否 | - |
<前缀> |
字符串 | 否 | - |
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--showCredentials |
布尔值 | 是 | - | 以明文显示凭据(默认:在终端中隐藏,在JSON中显示) |
--nameOnly |
布尔值 | 是 | - | 仅打印名称 |
示例
列出项目:
bunx @agentuity/cli cloud storage list
列出项目:
bunx @agentuity/cli cloud storage list 我的存储桶
列出项目:
bunx @agentuity/cli cloud storage list 我的存储桶 路径/前缀
以JSON格式显示输出:
bunx @agentuity/cli --json cloud storage list
列出项目:
bunx @agentuity/cli cloud storage ls
使用显示凭据选项:
bunx @agentuity/cli cloud storage list --show-credentials
输出
返回JSON对象:
{
"buckets": "数组",
"files": "数组"
}
| 字段 | 类型 | 描述 |
|---|---|---|
buckets |
数组 | 存储资源列表 |
files |
数组 | 存储桶中的文件列表 |