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