Skip to main content

list-cloudflow-flow-runs

dci list-cloudflow-flow-runs <flowId> [flags]

Returns a flow's runs, newest first. Use mode to separate test runs from production ones — test runs are included by default.

Per-node detail is not included here; fetch a single run to read what each node consumed and produced.

  • flowId — The ID of the flow whose runs to list.
Per-node detail

This listing carries run-level status only. Fetch one run with dci get-cloudflow-flow-run <flow-id> <run-id> to read what each node consumed and produced.

Examples

# The flow's runs, newest first (test runs included).
dci list-cloudflow-flow-runs <flow-id>
# Test runs only — for example to check whether a test run started before a failed response.
dci list-cloudflow-flow-runs <flow-id> --mode test
# Every production run as JSON, for scripts.
dci list-cloudflow-flow-runs <flow-id> --mode standard --all --output json

Flags

FlagTypeDefaultExampleDescription
--max-resultsinteger50Maximum runs to return.
--page-tokenstringContinuation token from a previous response.
--modestringRestrict the listing to one kind of run. Omit for both. One of: "test", "standard".

Every command also accepts the CLI-wide flags for output shaping — see Output formats and Table output options.

Output

A page of runs.

By default dci renders the result as a table. Use --output json to get the full structure described below — see Output formats.

FieldTypeDescription
itemsarray of object
items[].idstring
items[].flowIdstring
items[].flowNamestring
items[].statusstringOne of: "pending", "running", "complete", "completed-with-errors", "pending-approval", "failed", "sleeping", "stopped".
items[].isTestbooleanTrue when the run was started through actions/test-run.
items[].triggeredBystring
items[].triggerTimestring (date-time)
items[].startTimestring (date-time)
items[].endTimestring (date-time)
items[].errorstring
items[].stoppedBystring
pageTokenstringToken for the next page. Null on the last page.
rowCountintegerBest-effort total. May be null.
Raw JSON schema
{
"type": "object",
"description": "A cursor-paginated page of a flow's runs.",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"description": "A run without its per-node detail.",
"required": [
"id",
"flowId",
"status",
"isTest",
"triggeredBy",
"triggerTime"
],
"properties": {
"id": {
"type": "string"
},
"flowId": {
"type": "string"
},
"flowName": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"pending",
"running",
"complete",
"completed-with-errors",
"pending-approval",
"failed",
"sleeping",
"stopped"
]
},
"isTest": {
"type": "boolean",
"description": "True when the run was started through `actions/test-run`."
},
"triggeredBy": {
"type": "string"
},
"triggerTime": {
"type": "string",
"format": "date-time"
},
"startTime": {
"type": "string",
"format": "date-time"
},
"endTime": {
"type": "string",
"format": "date-time"
},
"error": {
"type": "string",
"nullable": true
},
"stoppedBy": {
"type": "string",
"nullable": true
}
}
}
},
"pageToken": {
"type": "string",
"nullable": true,
"description": "Token for the next page. Null on the last page."
},
"rowCount": {
"type": "integer",
"nullable": true,
"description": "Best-effort total. May be null."
}
}
}

Errors

On failure, dci prints a single error message — with a hint when one is available — and exits with a typed code your scripts can branch on. See Errors and exit codes for the full contract.

HTTP status to exit code mapping
HTTP statusExit codeError codeMeaning
40030VALIDATION_ERRORThe arguments or request body were rejected. Review the command's flags and payload.
40110AUTHENTICATION_FAILEDNot signed in, or the API token is invalid. Run dci login or check DCI_API_KEY.
40311PERMISSION_DENIEDThe DoiT user or the active customer context does not have access.
40420RESOURCE_NOT_FOUNDThe requested resource does not exist. Check the identifier argument.
42950RATE_LIMITEDToo many requests. Retryable — the CLI reports the server-provided delay.
50040API_SERVER_ERRORThe API failed to process the request. Retryable; contact DoiT support if it persists.

Aliases: listcloudflowflowruns