名称: 代理云-命令行-云流获取 描述: 获取特定流的详细信息。需要身份验证。用于Agentuity云平台操作 版本: “0.0.103” 许可证: Apache-2.0 允许的工具: “Bash(agentuity:*)” 参数提示: “<id>” 元数据: 命令: “agentuity cloud stream get” 标签: “只读 慢 需要认证”
云流获取
获取特定流的详细信息
前提条件
- 已通过
agentuity auth login认证 - 需要项目上下文(从项目目录运行或使用
--project-id)
用法
agentuity cloud stream get <id> [选项]
参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
<id> |
字符串 | 是 | - |
选项
| 选项 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
--output |
字符串 | 是 | - | 将流内容下载到文件 |
示例
获取流详情:
bunx @agentuity/cli stream get stream-id-123
以JSON格式获取流:
bunx @agentuity/cli stream get stream-id-123 --json
下载流到文件:
bunx @agentuity/cli stream get stream-id-123 --output stream.dat
下载流(短标志):
bunx @agentuity/cli stream get stream-id-123 -o stream.dat
输出
返回JSON对象:
{
"id": "字符串",
"name": "字符串",
"metadata": "对象",
"url": "字符串",
"sizeBytes": "数字"
}
| 字段 | 类型 | 描述 |
|---|---|---|
id |
字符串 | 流ID |
name |
字符串 | 流名称 |
metadata |
对象 | 流元数据 |
url |
字符串 | 公共URL |
sizeBytes |
数字 | 字节大小 |