name: agentuity-cli-cloud-stream-list description: 列出最近的流数据,支持可选过滤。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” metadata: command: “agentuity cloud stream list” tags: “read-only slow requires-auth”
云流数据列表
列出最近的流数据,支持可选过滤
前提条件
- 已通过
agentuity auth login完成身份验证 - 需要项目上下文(从项目目录运行或使用
--project-id)
使用方法
agentuity cloud stream list [options]
选项
| 选项 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
--size |
数字 | 是 | - | 返回的最大流数量(默认:100) |
--offset |
数字 | 是 | - | 分页时跳过的流数量 |
--name |
字符串 | 是 | - | 按流名称过滤 |
--metadata |
字符串 | 是 | - | 按元数据过滤(格式:key=value 或 key1=value1,key2=value2) |
示例
列出所有流:
bunx @agentuity/cli cloud stream list
列出最近的50个流:
bunx @agentuity/cli cloud stream ls --size 50
按名称过滤:
bunx @agentuity/cli cloud stream list --name agent-logs
按元数据过滤:
bunx @agentuity/cli cloud stream list --metadata type=export
以JSON格式输出:
bunx @agentuity/cli cloud stream ls --json
输出
返回JSON对象:
{
"streams": "array",
"total": "number"
}
| 字段 | 类型 | 描述 |
|---|---|---|
streams |
数组 | 流列表 |
total |
数字 | 匹配流的总数 |