跳转到主要内容
采集完成后,通过统一的 data 命令查看历史批次并导出结果。

octopus data history(查看采集历史)

octopus data history <taskId>
octopus data history <taskId> --local
octopus data history <taskId> --cloud
如果本地运行时使用了 --output ./runs,查看历史时保持相同路径:
octopus data history <taskId> --local --output ./runs

octopus data export(导出采集结果)

# 导出为 Excel
octopus data export <taskId> --format xlsx --file result.xlsx

# 导出本地结果为 CSV
octopus data export <taskId> --local --format csv --file result.csv

# 按批次导出 JSON
octopus data export <taskId> --lot-id <lotId> --format json
导出本地指定目录的结果:
octopus run <taskId> --output ./runs
octopus data export <taskId> --local --output ./runs --format xlsx --file result.xlsx

支持格式

octopus data export <taskId> --format xlsx
octopus data export <taskId> --format csv
octopus data export <taskId> --format json
octopus data export <taskId> --format html
octopus data export <taskId> --format xml
格式适合场景
xlsxExcel 查看、业务交付
csv数据分析、导入表格或数据库
json程序处理、API / Agent 流程
html浏览器快速预览
xml对接老系统或 XML 工作流

下一步

输出与退出码

在脚本与 CI 中处理 --json / --jsonl

运行采集任务

返回运行命令说明。