mirror of
https://github.com/getcargohq/cargo-skills.git
synced 2026-09-14 19:17:15 +08:00
0ca33f497f
Drop the redundant `-cli-` infix from the seven skill directory names and update all cross-references in the markdown docs to match.
3.2 KiB
3.2 KiB
Data export examples
Download all finished runs
cargo-ai orchestration run download \
--workflow-uuid <uuid> \
--is-finished
Download runs by status
# Only successful runs
cargo-ai orchestration run download \
--workflow-uuid <uuid> \
--statuses success
# Both success and error (for analysis)
cargo-ai orchestration run download \
--workflow-uuid <uuid> \
--statuses success,error
# Only error runs (for debugging)
cargo-ai orchestration run download \
--workflow-uuid <uuid> \
--statuses error
Download runs in a date range
cargo-ai orchestration run download \
--workflow-uuid <uuid> \
--created-after 2025-01-01 \
--created-before 2025-01-31
Download runs from a specific batch
cargo-ai orchestration run download \
--workflow-uuid <uuid> \
--batch-uuid <batch-uuid>
Download batch output by node
# 1. Get the batch and its release UUID
cargo-ai orchestration batch get <batch-uuid>
# → Extract releaseUuid
# 2. Find the output node slug
cargo-ai orchestration release get <release-uuid>
# → Read nodes[].slug — pick the output node's slug
# 3. Download
cargo-ai orchestration batch download \
--uuid <batch-uuid> \
--output-node-slug <node-slug>
Export all segment data
# 1. List segments to find the modelUuid
cargo-ai segmentation segment list
# → Extract modelUuid (NOT segment uuid)
# 2. Full export
cargo-ai segmentation segment download \
--model-uuid <model-uuid> \
--filter '{"conjonction":"and","groups":[]}'
Export segment data with sorting and limit
cargo-ai segmentation segment download \
--model-uuid <model-uuid> \
--filter '{"conjonction":"and","groups":[]}' \
--sort '[{"columnSlug":"created_at","kind":"desc"}]' \
--limit 5000
Export filtered segment data
# Export only churned accounts
cargo-ai segmentation segment download \
--model-uuid <model-uuid> \
--filter '{
"conjonction": "and",
"groups": [{
"conjonction": "and",
"conditions": [
{"kind": "string", "columnSlug": "status", "operator": "is", "values": ["churned"]}
]
}]
}'
# Export US companies with 100+ employees
cargo-ai segmentation segment download \
--model-uuid <model-uuid> \
--filter '{
"conjonction": "and",
"groups": [{
"conjonction": "and",
"conditions": [
{"kind": "string", "columnSlug": "country", "operator": "is", "values": ["US"]},
{"kind": "number", "columnSlug": "employee_count", "operator": "greaterThan", "value": 100}
]
}]
}'
# Export records created after a date
cargo-ai segmentation segment download \
--model-uuid <model-uuid> \
--filter '{
"conjonction": "and",
"groups": [{
"conjonction": "and",
"conditions": [
{"kind": "date", "columnSlug": "created_at", "operator": "greaterThan", "value": "2025-01-01"}
]
}]
}'
Export a segment with non-null email
cargo-ai segmentation segment download \
--model-uuid <model-uuid> \
--filter '{
"conjonction": "and",
"groups": [{
"conjonction": "and",
"conditions": [
{"kind": "string", "columnSlug": "email", "operator": "isNotNull"}
]
}]
}'