Workflows
Compile, run, and inspect multi-step agent workflows from the Dreadnode CLI.
$ dn workflow <command>Authored multi-step agent pipelines: definitions, runs, and approvals.
definitions
Section titled “definitions”Aliases: defs
$ dn workflow definitionsList compiled workflow definitions in your organization.
Options
--capability— Only workflows from this capability.--name— Only workflows with this name.--agent— Only workflows whose steps call this agent.--limit(default50) — Maximum results to show.--json(defaultFalse) — Output as JSON.
$ dn workflow get <definition-id>Show a workflow definition.
Options
<definition-id>,--definition-id(Required) — The definition to show.--topology(defaultFalse) — Print the full compiled topology document.--json(defaultFalse) — Output as JSON.
$ dn workflow run --project-id <str> <definition-id>Start a workflow run.
Options
<definition-id>,--definition-id(Required) — The compiled definition to run.--project-id(Required) — Project the run belongs to.--input— Workflow input as key=value; repeatable. Values are JSON-decoded when possible, somax_steps=200is an int.--local(defaultFalse) — Execute here, in this process, shipping facts to the platform as it goes. Without it the selected runtime executes the workflow.--runtime-id— Runtime that owns remote execution. Required unless--local.--runtime-url— Runtime to run agents against when using--local.--json(defaultFalse) — Output as JSON.
Aliases: ls
$ dn workflow list --project-id <str>Show workflow runs in a project.
Options
--project-id(Required) — Project to list runs for.--definition-id— Only runs of this definition.--status— Filter by run status.--limit(default50) — Maximum results to show.--json(defaultFalse) — Output as JSON.
status
Section titled “status”$ dn workflow status <run-id>Show a run with its node statuses.
Options
<run-id>,--run-id(Required) — The run to show.--json(defaultFalse) — Output as JSON.
cancel
Section titled “cancel”$ dn workflow cancel --project-id <str> <run-id>Cancel a workflow before a runtime claims it.
Options
<run-id>,--run-id(Required) — The run to cancel.--project-id(Required) — Project containing the run.--force(defaultFalse) — Skip the confirmation prompt.
approvals
Section titled “approvals”$ dn workflow approvals --project-id <str>List approvals waiting on a decision.
V1 uses this queue for in-agent tool calls. Authored workflow gates are rejected when the run is created.
Options
--project-id(Required) — Project to list approvals for.--limit(default50) — Maximum results to show.--json(defaultFalse) — Output as JSON.
approve
Section titled “approve”$ dn workflow approve <approval-id>Allow a pending approval.
Options
<approval-id>,--approval-id(Required) — The approval to allow.--session(defaultFalse) — Allow for the rest of the session rather than once.--note— Optional note recorded with the decision.
$ dn workflow deny <approval-id>Deny a pending approval.
Options
<approval-id>,--approval-id(Required) — The approval to deny.--note— Optional note recorded with the decision.