TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/cadence-workflow/cadence/llms.txt
Use this file to discover all available pages before exploring further.
workflow command group provides operations for managing workflow executions throughout their lifecycle.
Command Overview
wf
Starting Workflows
start
Start a new workflow execution without waiting for completion.Name of the workflow type to execute
Task list name for workflow execution
Unique workflow ID. Auto-generated if not provided
Workflow input as JSON string
Workflow execution timeout in seconds (0 = no timeout)
Decision task timeout in seconds
Cron schedule for periodic workflow execution
Workflow ID reuse policy: AllowDuplicate, AllowDuplicateFailedOnly, RejectDuplicate
run
Start a workflow and wait for completion, showing progress.start, plus automatically shows workflow result.
Querying Workflows
list
List open or closed workflow executions.List open workflows (true) or closed workflows (false)
Number of results per page
Filter by workflow type
SQL-like query for advanced filtering
listall
List all workflows without pagination.scan
Fast scan of workflow executions (requires ElasticSearch).The
scan command is faster than listall but results are not sorted. Requires ElasticSearch to be enabled on the Cadence server.count
Count workflow executions matching a query.Inspecting Workflows
describe
Show detailed information about a workflow execution.Workflow ID to describe
Run ID for specific execution (defaults to current/latest)
describeid
Shortcut for describe using positional arguments.show
Display workflow execution history.Print timestamps for events
Print raw Unix timestamps
Save history to file
Print full event details
Show specific event by ID
showid
Shortcut for show using positional arguments.observe
Continuously watch workflow execution progress.Signaling Workflows
signal
Send a signal to a running workflow.Target workflow ID
Name of the signal
Signal payload as JSON
Specific run ID (defaults to current)
signalwithstart
Signal an existing workflow or start a new one if it doesn’t exist.start and signal commands.
Querying Workflow State
query
Query workflow state without affecting execution.Name of the query handler
Query arguments as JSON
query-types
List available query types for a workflow.stack
Get workflow stack trace using the built-in__stack_trace query.
Stopping Workflows
cancel
Gracefully stop a workflow, allowing cleanup.Reason for cancellation
Cancel allows the workflow to run cleanup code. Use terminate for immediate stop.
terminate
Force-stop a workflow without cleanup.Workflow Reset
reset
Reset a workflow to a specific event.Event ID to reset to (exclusive)
Reset type: FirstDecisionCompleted, LastDecisionCompleted, BadBinary, DecisionCompletedTime
Reason for reset (required for tracking)
Binary checksum for BadBinary reset type
Earliest time for DecisionCompletedTime reset. Formats: RFC3339, Unix nano, or time range (e.g., ‘15m’)
Skip reapplying signals after reset point
reset-batch
Reset multiple workflows from a file or query.File with workflow IDs (one per line, format: workflowID [runID])
Query to select workflows for reset
Number of parallel reset operations
Preview reset without executing
restart
Restart a completed workflow execution.refresh-tasks
Refresh workflow tasks to resume progress.Activity Operations
activity complete
Manually complete an activity.activity fail
Manually fail an activity.Batch Operations
See the Batch Commands page for batch operation details.Examples
Start a workflow with cron schedule
Query workflow status
Reset failed workflows
Watch workflow progress
Output Examples
Workflow List
Workflow Describe
Next Steps
Domain Commands
Configure workflow domains
Batch Commands
Bulk workflow operations
Task List Commands
Monitor task lists
Workflow Concepts
Learn about workflows