Temporal CLI schedule command reference
Schedule commands allow the user to create, use, and update SchedulesWhat is a Schedule
A Schedule enables the scheduling of Workflow Executions.
Learn more.
Schedules control when certain Actions for a Workflow Execution are performed, making it a useful tool for automation.
To run a Schedule command, run temporal schedule [command] [command options] [arguments]
.
backfill
The temporal schedule backfill
command executes Actions ahead of their specified time range.
Backfilling can be used to fill in Workflow RunsWhat is a Run Id?
A Run Id is a globally unique, platform-level identifier for a Workflow Execution.
Learn more from a time period when the Schedule was paused, or from before the Schedule was created.
temporal schedule backfill --sid 'your-schedule-id' \
--overlap-policy 'BufferAll' \
--start-time '2022-05-0101T00:00:00Z' \
--end-time '2022-05-31T23:59:59Z'
Use the options provided below to change this command's behavior.
- --address
temporal address
Definition for the address command option.
Learn more - --codec-auth
temporal codec-auth
Definition for the codec-auth command option.
Learn more - --codec-endpoint
temporal codec-endpoint
Definition for the codec-endpoint command option.
Learn more - --color
temporal color
Definition for the color command option.
Learn more - --context-timeout
temporal context-timeout
Definition for the context-timeout command option.
Learn more - --end-time
temporal end-time
Definition for the end-time command option.
Learn more - --env
temporal env
Definition for the env command option.
Learn more - --grpc-meta
temporal grpc-meta
Definition for the grpc-meta command option.
Learn more - --namespace
temporal namespace
Definition for the namespace command option.
Learn more - --overlap-policy
temporal overlap-policy
Definition for the overlap-policy command option.
Learn more - --schedule-id
temporal schedule-id
Definition for the schedule-id command option.
Learn more - --start-time
temporal start-time
Definition for the start-time command option.
Learn more - --tls-ca-path
temporal tls-ca-path
Definition for the tls-ca-path command option.
Learn more - --tls-cert-path
temporal tls-cert-path
Definition for the tls-cert-path command option.
Learn more - --tls-disable-host-verification
temporal tls-disable-host-verification
Definition for the tls-disable-host-verification command option.
Learn more - --tls-key-path
temporal tls-key-path
Definition for the tls-key-path command option.
Learn more - --tls-server-name
temporal tls-server-name
Definition for the tls-server-name command option.
Learn more
create
The temporal schedule create
command creates a new ScheduleWhat is a Schedule
A Schedule enables the scheduling of Workflow Executions.
Learn more.
Newly created Schedules return a Schedule ID to be used in other Schedule commands.
Schedules need to follow a format like the example shown here:
temporal schedule create \
--sid 'your-schedule-id' \
--wid 'your-workflow-id' \
--tq 'your-task-queue' \
--type 'YourWorkflowType'
Any combination of --cal
, --interval
, and --cron
is supported.
Actions will be executed at any time specified in the Schedule.
Use the options provided below to change the command's behavior.
- --address
temporal address
Definition for the address command option.
Learn more - --calendar
temporal calendar
Definition for the calendar command option.
Learn more - --catchup-window
temporal catchup-window
Definition for the catchup-window command option.
Learn more - --codec-auth
temporal codec-auth
Definition for the codec-auth command option.
Learn more - --codec-endpoint
temporal codec-endpoint
Definition for the codec-endpoint command option.
Learn more - --color
temporal color
Definition for the color command option.
Learn more - --context-timeout
temporal context-timeout
Definition for the context-timeout command option.
Learn more - --cron
temporal cron
Definition for the cron command option.
Learn more - --end-time
temporal end-time
Definition for the end-time command option.
Learn more - --env
temporal env
Definition for the env command option.
Learn more - --execution-timeout
temporal execution-timeout
Definition for the execution-timeout command option.
Learn more - --grpc-meta
temporal grpc-meta
Definition for the grpc-meta command option.
Learn more - --input
temporal input
Definition for the input command option.
Learn more - --input-file
temporal input-file
Definition for the input-file command option.
Learn more - --interval
temporal interval
Definition for the interval command option.
Learn more - --jitter
temporal jitter
Definition for the jitter command option.
Learn more - --max-field-length
temporal max-field-length
Definition for the max-field-length command option.
Learn more - --memo
temporal memo
Definition for the memo command option.
Learn more - --memo-file
temporal memo-file
Definition for the memo-file command option.
Learn more - --namespace
temporal namespace
Definition for the namespace command option.
Learn more - --notes
temporal notes
Definition for the notes command option.
Learn more - --overlap-policy
temporal overlap-policy
Definition for the overlap-policy command option.
Learn more - --pause
temporal pause
Definition for the pause command option.
Learn more - --pause-on-failure
temporal pause-on-failure
Definition for the pause-on-failure command option.
Learn more - --remaining-actions
temporal remaining-actions
Definition for the remaining-actions command option.
Learn more - --run-timeout
temporal run-timeout
Definition for the run-timeout command option.
Learn more - --schedule-id
temporal schedule-id
Definition for the schedule-id command option.
Learn more - --search-attribute
temporal search-attribute
Definition for the search-attribute command option.
Learn more - --start-time
temporal start-time
Definition for the start-time command option.
Learn more - --task-queue
temporal task-queue
Definition for the task-queue command option.
Learn more - --task-timeout
temporal task-timeout
Definition for the task-timeout command option.
Learn more - --time-zone
temporal time-zone
Definition for the time-zone command option.
Learn more - --tls-ca-path
temporal tls-ca-path
Definition for the tls-ca-path command option.
Learn more - --tls-cert-path
temporal tls-cert-path
Definition for the tls-cert-path command option.
Learn more - --tls-disable-host-verification
temporal tls-disable-host-verification
Definition for the tls-disable-host-verification command option.
Learn more - --tls-key-path
temporal tls-key-path
Definition for the tls-key-path command option.
Learn more - --tls-server-name
temporal tls-server-name
Definition for the tls-server-name command option.
Learn more - --workflow-id
temporal workflow-id
Definition for the workflow-id command option.
Learn more - --workflow-type
temporal workflow-type
Definition for the workflow-type command option.
Learn more
delete
The temporal schedule delete
command deletes a ScheduleWhat is a Schedule
A Schedule enables the scheduling of Workflow Executions.
Learn more.
Deleting a Schedule does not affect any WorkflowsWhat 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 started by the Schedule.
A Temporal Workflow Execution is a durable, scalable, reliable, and reactive function execution. It is the main unit of execution of a Temporal Application.
Learn more started by Schedules can be cancelled or terminated like other Workflow Executions. However, Workflow Executions started by a Schedule can be identified by their Search Attributes
A Search Attribute is an indexed name used in List Filters to filter a list of Workflow Executions that have the Search Attribute in their metadata.
Learn more, making them targetable by batch command for termination.
temporal schedule delete --sid 'your-schedule-id' [command options] [arguments]
Use the options below to change the behavior of this command.
- --address
temporal address
Definition for the address command option.
Learn more - --codec-auth
temporal codec-auth
Definition for the codec-auth command option.
Learn more - --codec-endpoint
temporal codec-endpoint
Definition for the codec-endpoint command option.
Learn more - --color
temporal color
Definition for the color command option.
Learn more - --context-timeout
temporal context-timeout
Definition for the context-timeout command option.
Learn more - --env
temporal env
Definition for the env command option.
Learn more - --grpc-meta
temporal grpc-meta
Definition for the grpc-meta command option.
Learn more - --namespace
temporal namespace
Definition for the namespace command option.
Learn more - --schedule-id
temporal schedule-id
Definition for the schedule-id command option.
Learn more - --tls-ca-path
temporal tls-ca-path
Definition for the tls-ca-path command option.
Learn more - --tls-cert-path
temporal tls-cert-path
Definition for the tls-cert-path command option.
Learn more - --tls-disable-host-verification
temporal tls-disable-host-verification
Definition for the tls-disable-host-verification command option.
Learn more - --tls-key-path
temporal tls-key-path
Definition for the tls-key-path command option.
Learn more - --tls-server-name
temporal tls-server-name
Definition for the tls-server-name command option.
Learn more
describe
The temporal schedule describe
command shows the current ScheduleWhat is a Schedule
A Schedule enables the scheduling of Workflow Executions.
Learn more configuration.
This command also provides information about past, current, and future Workflow RunsWhat is a Run Id?
A Run Id is a globally unique, platform-level identifier for a Workflow Execution.
Learn more.
temporal schedule describe --sid 'your-schedule-id' [command options] [arguments]
Use the options below to change this command's output.
- --address
temporal address
Definition for the address command option.
Learn more - --codec-auth
temporal codec-auth
Definition for the codec-auth command option.
Learn more - --codec-endpoint
temporal codec-endpoint
Definition for the codec-endpoint command option.
Learn more - --color
temporal color
Definition for the color command option.
Learn more - --context-timeout
temporal context-timeout
Definition for the context-timeout command option.
Learn more - --env
temporal env
Definition for the env command option.
Learn more - --fields
temporal fields
Definition for the fields command option.
Learn more - --grpc-meta
temporal grpc-meta
Definition for the grpc-meta command option.
Learn more - --namespace
temporal namespace
Definition for the namespace command option.
Learn more - --output
temporal output
Definition for the output command option.
Learn more - --raw
temporal raw
Definition for the raw command option.
Learn more - --schedule-id
temporal schedule-id
Definition for the schedule-id command option.
Learn more - --time-format
temporal time-format
Definition for the time-format command option.
Learn more - --tls-ca-path
temporal tls-ca-path
Definition for the tls-ca-path command option.
Learn more - --tls-cert-path
temporal tls-cert-path
Definition for the tls-cert-path command option.
Learn more - --tls-disable-host-verification
temporal tls-disable-host-verification
Definition for the tls-disable-host-verification command option.
Learn more - --tls-key-path
temporal tls-key-path
Definition for the tls-key-path command option.
Learn more - --tls-server-name
temporal tls-server-name
Definition for the tls-server-name command option.
Learn more
list
The temporal schedule list
command lists all ScheduleWhat is a Schedule
A Schedule enables the scheduling of Workflow Executions.
Learn more configurations.
Listing Schedules in Standard VisibilityWhat is Standard Visibility?
Standard Visibility, within the Temporal Platform, is the subsystem and APIs that list Workflow Executions by a predefined set of filters.
Learn more will only provide Schedule IDs.
temporal schedule list [command options] [arguments]
Use the options below to change the behavior of this command.
- --address
temporal address
Definition for the address command option.
Learn more - --codec-auth
temporal codec-auth
Definition for the codec-auth command option.
Learn more - --codec-endpoint
temporal codec-endpoint
Definition for the codec-endpoint command option.
Learn more - --color
temporal color
Definition for the color command option.
Learn more - --context-timeout
temporal context-timeout
Definition for the context-timeout command option.
Learn more - --env
temporal env
Definition for the env command option.
Learn more - --fields
temporal fields
Definition for the fields command option.
Learn more - --grpc-meta
temporal grpc-meta
Definition for the grpc-meta command option.
Learn more - --limit
temporal limit
Definition for the limit command option.
Learn more - --namespace
temporal namespace
Definition for the namespace command option.
Learn more - --no-pager
temporal no-pager
Definition for the no-pager command option.
Learn more - --output
temporal output
Definition for the output command option.
Learn more - --pager
temporal pager
Definition for the pager command option.
Learn more - --time-format
temporal time-format
Definition for the time-format command option.
Learn more - --tls-ca-path
temporal tls-ca-path
Definition for the tls-ca-path command option.
Learn more - --tls-cert-path
temporal tls-cert-path
Definition for the tls-cert-path command option.
Learn more - --tls-disable-host-verification
temporal tls-disable-host-verification
Definition for the tls-disable-host-verification command option.
Learn more - --tls-key-path
temporal tls-key-path
Definition for the tls-key-path command option.
Learn more - --tls-server-name
temporal tls-server-name
Definition for the tls-server-name command option.
Learn more
toggle
The temporal schedule toggle
command can pause and unpause a ScheduleWhat is a Schedule
A Schedule enables the scheduling of Workflow Executions.
Learn more.
Toggling a Schedule requires a reason to be entered on the command line.
Use --reason
to note the issue leading to the pause or unpause.
Schedule toggles are passed in this format:
temporal schedule toggle --sid 'your-schedule-id' --pause --reason "paused because the database is down"
temporal schedule toggle --sid 'your-schedule-id' --unpause --reason "the database is back up"
Use the options provided below to change this command's behavior.
- --address
temporal address
Definition for the address command option.
Learn more - --codec-auth
temporal codec-auth
Definition for the codec-auth command option.
Learn more - --codec-endpoint
temporal codec-endpoint
Definition for the codec-endpoint command option.
Learn more - --color
temporal color
Definition for the color command option.
Learn more - --context-timeout
temporal context-timeout
Definition for the context-timeout command option.
Learn more - --env
temporal env
Definition for the env command option.
Learn more - --grpc-meta
temporal grpc-meta
Definition for the grpc-meta command option.
Learn more - --namespace
temporal namespace
Definition for the namespace command option.
Learn more - --pause
temporal pause
Definition for the pause command option.
Learn more - --reason
temporal reason
Definition for the reason command option.
Learn more - --schedule-id
temporal schedule-id
Definition for the schedule-id command option.
Learn more - --tls-ca-path
temporal tls-ca-path
Definition for the tls-ca-path command option.
Learn more - --tls-cert-path
temporal tls-cert-path
Definition for the tls-cert-path command option.
Learn more - --tls-disable-host-verification
temporal tls-disable-host-verification
Definition for the tls-disable-host-verification command option.
Learn more - --tls-key-path
temporal tls-key-path
Definition for the tls-key-path command option.
Learn more - --tls-server-name
temporal tls-server-name
Definition for the tls-server-name command option.
Learn more - --unpause
temporal unpause
Definition for the unpause command option.
Learn more
trigger
The temporal schedule trigger
command triggers an immediate action with a given ScheduleWhat is a Schedule
A Schedule enables the scheduling of Workflow Executions.
Learn more.
By default, this action is subject to the Overlap Policy of the Schedule.
temporal schedule trigger
can be used to start a Workflow Run immediately.
temporal schedule trigger --sid 'your-schedule-id'
The Overlap Policy of the Schedule can be overridden as well.
temporal schedule trigger --sid 'your-schedule-id' --overlap-policy 'AllowAll'
Use the options provided below to change this command's behavior.
- --address
temporal address
Definition for the address command option.
Learn more - --codec-auth
temporal codec-auth
Definition for the codec-auth command option.
Learn more - --codec-endpoint
temporal codec-endpoint
Definition for the codec-endpoint command option.
Learn more - --color
temporal color
Definition for the color command option.
Learn more - --context-timeout
temporal context-timeout
Definition for the context-timeout command option.
Learn more - --env
temporal env
Definition for the env command option.
Learn more - --grpc-meta
temporal grpc-meta
Definition for the grpc-meta command option.
Learn more - --namespace
temporal namespace
Definition for the namespace command option.
Learn more - --overlap-policy
temporal overlap-policy
Definition for the overlap-policy command option.
Learn more - --schedule-id
temporal schedule-id
Definition for the schedule-id command option.
Learn more - --tls-ca-path
temporal tls-ca-path
Definition for the tls-ca-path command option.
Learn more - --tls-cert-path
temporal tls-cert-path
Definition for the tls-cert-path command option.
Learn more - --tls-disable-host-verification
temporal tls-disable-host-verification
Definition for the tls-disable-host-verification command option.
Learn more - --tls-key-path
temporal tls-key-path
Definition for the tls-key-path command option.
Learn more - --tls-server-name
temporal tls-server-name
Definition for the tls-server-name command option.
Learn more
update
The temporal schedule update
command updates an existing ScheduleWhat is a Schedule
A Schedule enables the scheduling of Workflow Executions.
Learn more.
Like temporal schedule create
, updated Schedules need to follow a certain format:
temporal schedule update \
--sid 'your-schedule-id' \
--wid 'your-workflow-id' \
--tq 'your-task-queue' \
--type 'YourWorkflowType'
Updating a Schedule takes the given options and replaces the entire configuration of the Schedule with what's provided. If you only change one value of the Schedule, be sure to provide the other unchanged fields to prevent them from being overwritten.
Use the options provided below to change the command's behavior.
- --address
temporal address
Definition for the address command option.
Learn more - --calendar
temporal calendar
Definition for the calendar command option.
Learn more - --catchup-window
temporal catchup-window
Definition for the catchup-window command option.
Learn more - --codec-auth
temporal codec-auth
Definition for the codec-auth command option.
Learn more - --codec-endpoint
temporal codec-endpoint
Definition for the codec-endpoint command option.
Learn more - --color
temporal color
Definition for the color command option.
Learn more - --context-timeout
temporal context-timeout
Definition for the context-timeout command option.
Learn more - --cron
temporal cron
Definition for the cron command option.
Learn more - --end-time
temporal end-time
Definition for the end-time command option.
Learn more - --env
temporal env
Definition for the env command option.
Learn more - --execution-timeout
temporal execution-timeout
Definition for the execution-timeout command option.
Learn more - --grpc-meta
temporal grpc-meta
Definition for the grpc-meta command option.
Learn more - --input
temporal input
Definition for the input command option.
Learn more - --input-file
temporal input-file
Definition for the input-file command option.
Learn more - --interval
temporal interval
Definition for the interval command option.
Learn more - --jitter
temporal jitter
Definition for the jitter command option.
Learn more - --max-field-length
temporal max-field-length
Definition for the max-field-length command option.
Learn more - --memo
temporal memo
Definition for the memo command option.
Learn more - --memo-file
temporal memo-file
Definition for the memo-file command option.
Learn more - --namespace
temporal namespace
Definition for the namespace command option.
Learn more - --notes
temporal notes
Definition for the notes command option.
Learn more - --overlap-policy
temporal overlap-policy
Definition for the overlap-policy command option.
Learn more - --pause
temporal pause
Definition for the pause command option.
Learn more - --pause-on-failure
temporal pause-on-failure
Definition for the pause-on-failure command option.
Learn more - --remaining-actions
temporal remaining-actions
Definition for the remaining-actions command option.
Learn more - --run-timeout
temporal run-timeout
Definition for the run-timeout command option.
Learn more - --schedule-id
temporal schedule-id
Definition for the schedule-id command option.
Learn more - --search-attribute
temporal search-attribute
Definition for the search-attribute command option.
Learn more - --start-time
temporal start-time
Definition for the start-time command option.
Learn more - --task-queue
temporal task-queue
Definition for the task-queue command option.
Learn more - --task-timeout
temporal task-timeout
Definition for the task-timeout command option.
Learn more - --time-zone
temporal time-zone
Definition for the time-zone command option.
Learn more - --tls-ca-path
temporal tls-ca-path
Definition for the tls-ca-path command option.
Learn more - --tls-cert-path
temporal tls-cert-path
Definition for the tls-cert-path command option.
Learn more - --tls-disable-host-verification
temporal tls-disable-host-verification
Definition for the tls-disable-host-verification command option.
Learn more - --tls-key-path
temporal tls-key-path
Definition for the tls-key-path command option.
Learn more - --tls-server-name
temporal tls-server-name
Definition for the tls-server-name command option.
Learn more - --workflow-id
temporal workflow-id
Definition for the workflow-id command option.
Learn more - --workflow-type
temporal workflow-type
Definition for the workflow-type command option.
Learn more