Temporal CLI batch command reference
This page provides a reference for the temporal CLI batch command. The flags applicable to each subcommand are presented in a table within the heading for the subcommand. Refer to Global Flags for flags that you can use with every subcommand.
describe
Show the progress of an ongoing batch job. Pass a valid job ID to display its information:
temporal batch describe \
--job-id YourJobId
Use the following options to change the behavior of this command. You can also use any of the global flags that apply to all subcommands.
list
Return a list of batch jobs on the Service or within a single Namespace. For example, list the batch jobs for "YourNamespace":
temporal batch list \
--namespace YourNamespace
Use the following options to change the behavior of this command. You can also use any of the global flags that apply to all subcommands.
| Flag | Required | Description |
|---|---|---|
--limit | No | int Maximum number of batch jobs to display. |
terminate
Terminate a batch job with the provided job ID. You must provide a reason for the termination. The Service stores this explanation as metadata for the termination event for later reference:
temporal batch terminate \
--job-id YourJobId \
--reason YourTerminationReason
Use the following options to change the behavior of this command. You can also use any of the global flags that apply to all subcommands.
| Flag | Required | Description |
|---|---|---|
--job-id | Yes | string Job ID to terminate. |
--reason | Yes | string Reason for terminating the batch job. |
Global Flags
The following options can be used with any command.
