名称: agentuity-cli-cloud-stream-list 描述: 列出最近的流,支持可选过滤。需要身份验证。用于Agentuity云平台操作 版本: “0.0.104” 许可证: Apache-2.0 允许的工具: “Bash(agentuity:*)” 元数据: 命令: “agentuity cloud stream list” 标签: “只读 慢 需要认证”
云流列表
列出最近的流,支持可选过滤
前提条件
- 已通过
agentuity auth login认证 - 需要项目上下文(从项目目录运行或使用
--project-id)
用法
agentuity cloud stream list [选项]
选项
| 选项 | 类型 | 必需 | 默认值 | 描述 |
|---|---|---|---|---|
--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": "数组",
"total": "数字"
}
| 字段 | 类型 | 描述 |
|---|---|---|
streams |
数组 | 流列表 |
total |
数字 | 匹配流的总数 |