Temporal CLI activity command reference
Activity commands operate on Activity ExecutionsWhat 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 ExecutionWhat 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.
- --activity-id
temporal activity-id
Identifies the Activity Execution.
Learn more - --fields
temporal fields
Customize fields to print.
Learn more - --identity
temporal identity
Specify operator's identity.
Learn more - --limit
temporal limit
Number of items to print.
Learn more - --no-pager
temporal no-pager
Disables the interactive pager.
Learn more - --output
temporal output
Output format.
Learn more - --pager
temporal pager
Sets the pager for Temporal CLI to use.
Learn more - --result
temporal result
Set the result value of Activity completion.
Learn more - --run-id
temporal run-id
Identifies the current Workflow Run.
Learn more - --time-format
temporal time-format
Format time as either relative, iso, raw.
Learn more - --workflow-id
temporal workflow-id
Workflow Id
Learn more
fail
The temporal activity fail
command fails an Activity ExecutionWhat 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 WorkflowWhat 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.
- --activity-id
temporal activity-id
Identifies the Activity Execution.
Learn more - --detail
temporal detail
Detail to fail the Activity.
Learn more - --fields
temporal fields
Customize fields to print.
Learn more - --identity
temporal identity
Specify operator's identity.
Learn more - --limit
temporal limit
Number of items to print.
Learn more - --no-pager
temporal no-pager
Disables the interactive pager.
Learn more - --output
temporal output
Output format.
Learn more - --pager
temporal pager
Sets the pager for Temporal CLI to use.
Learn more - --reason
temporal reason
Reason for the operation
Learn more - --run-id
temporal run-id
Identifies the current Workflow Run.
Learn more - --time-format
temporal time-format
Format time as either relative, iso, raw.
Learn more - --workflow-id
temporal workflow-id
Workflow Id
Learn more