Skip to main content

Temporal CLI activity command reference

Activity commands operate on Activity ExecutionsLink preview iconWhat is an Activity Execution?

An Activity Execution is the full chain of Activity Task Executions.

Learn more.

To run an Activity command, type temporal activity [command] [command options]

complete

The temporal activity complete command completes an Activity ExecutionLink preview iconWhat is an Activity Execution?

An Activity Execution is the full chain of Activity Task Executions.

Learn more. Along with completing the Activity, the result given upon return can be set as well.

temporal activity complete --activity-id=MyActivity --result=ActivityComplete

Use the options listed below to change the behavior of this command.

fail

The temporal activity fail command fails an Activity ExecutionLink preview iconWhat is an Activity Execution?

An Activity Execution is the full chain of Activity Task Executions.

Learn more. The Activity must already be running on a valid WorkflowLink preview iconWhat is a Workflow?

In day-to-day conversations, the term "Workflow" frequently denotes either a Workflow Type, a Workflow Definition, or a Workflow Execution.

Learn more. temporal fail --workflow-id=meaningful-business-id --activity-id=MyActivity

Use the options listed below to change the behavior of this command.