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]
.
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.
- --addresstemporal address
The host and port for the Temporal Frontend Service.
Learn more - --codec-authtemporal codec-auth
Sets the authorization header on requests to the Codec Server.
Learn more - --codec-endpointtemporal codec-endpoint
Endpoint for a remote Codec Server.
Learn more - --colortemporal color
When to use color
Learn more - --context-timeouttemporal context-timeout
An optional timeout for the context of an RPC call.
Learn more - --end-timetemporal end-time
Backfill end time.
Learn more - --envtemporal env
Name of the environment to read environmental variables from.
Learn more - --grpc-metatemporal grpc-meta
Contains gRPC metadata to send with requests.
Learn more - --namespacetemporal namespace
Identifies a Namespace in the Temporal Workflow.
Learn more - --overlap-policytemporal overlap-policy
Overlap policy.
Learn more - --schedule-idtemporal schedule-id
Schedule Id
Learn more - --start-timetemporal start-time
Backfill start time.
Learn more - --tls-ca-pathtemporal tls-ca-path
Path to server CA certificate.
Learn more - --tls-cert-pathtemporal tls-cert-path
Path to x509 certificate.
Learn more - --tls-disable-host-verificationtemporal tls-disable-host-verification
Disables TLS host name verification if already enabled.
Learn more - --tls-key-pathtemporal tls-key-path
Path to private certificate key.
Learn more - --tls-server-nametemporal tls-server-name
Provides an override for the target TLS server name.
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.
- --addresstemporal address
The host and port for the Temporal Frontend Service.
Learn more - --calendartemporal calendar
Calendar specification in JSON.
Learn more - --catchup-windowtemporal catchup-window
Maximum allowed catch-up time if server is down.
Learn more - --codec-authtemporal codec-auth
Sets the authorization header on requests to the Codec Server.
Learn more - --codec-endpointtemporal codec-endpoint
Endpoint for a remote Codec Server.
Learn more - --colortemporal color
When to use color
Learn more - --context-timeouttemporal context-timeout
An optional timeout for the context of an RPC call.
Learn more - --crontemporal cron
Optional Cron Schedule for the Workflow.
Learn more - --end-timetemporal end-time
Backfill end time.
Learn more - --envtemporal env
Name of the environment to read environmental variables from.
Learn more - --execution-timeouttemporal execution-timeout
Timeout (in seconds) for a WorkflowExecution, including retries and continue-as-new tasks.
Learn more - --grpc-metatemporal grpc-meta
Contains gRPC metadata to send with requests.
Learn more - --inputtemporal input
Optional JSON input to provide to the Workflow.
Learn more - --input-filetemporal input-file
Passes optional input for the Workflow from a JSON file.
Learn more - --intervaltemporal interval
Interval duration to include phase offset.
Learn more - --jittertemporal jitter
Jitter duration.
Learn more - --max-field-lengthtemporal max-field-length
Maximum length for each attribute field.
Learn more - --memotemporal memo
Set a memo on a schedule (in key=value format).
Learn more - --memo-filetemporal memo-file
Set a memo from a file.
Learn more - --namespacetemporal namespace
Identifies a Namespace in the Temporal Workflow.
Learn more - --notestemporal notes
Initial value of notes field.
Learn more - --overlap-policytemporal overlap-policy
Overlap policy.
Learn more - --pausetemporal pause
Pauses the Schedule.
Learn more - --pause-on-failuretemporal pause-on-failure
Pause schedule after any workflow failure.
Learn more - --remaining-actionstemporal remaining-actions
Total number of actions allowed.
Learn more - --run-timeouttemporal run-timeout
Timeout (in seconds) of a single Workflow run.
Learn more - --schedule-idtemporal schedule-id
Schedule Id
Learn more - --search-attributetemporal search-attribute
Set Search Attribute on a schedule.
Learn more - --start-timetemporal start-time
Backfill start time.
Learn more - --task-queuetemporal task-queue
Task Queue
Learn more - --task-timeouttemporal task-timeout
Start-to-close timeout for a Workflow Task (in seconds).
Learn more - --time-zonetemporal time-zone
Time zone (IANA name).
Learn more - --tls-ca-pathtemporal tls-ca-path
Path to server CA certificate.
Learn more - --tls-cert-pathtemporal tls-cert-path
Path to x509 certificate.
Learn more - --tls-disable-host-verificationtemporal tls-disable-host-verification
Disables TLS host name verification if already enabled.
Learn more - --tls-key-pathtemporal tls-key-path
Path to private certificate key.
Learn more - --tls-server-nametemporal tls-server-name
Provides an override for the target TLS server name.
Learn more - --workflow-idtemporal workflow-id
Workflow Id
Learn more - --workflow-typetemporal workflow-type
Workflow type name.
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 AttributesWhat is a Search Attribute?
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]
Use the options below to change the behavior of this command.
- --addresstemporal address
The host and port for the Temporal Frontend Service.
Learn more - --codec-authtemporal codec-auth
Sets the authorization header on requests to the Codec Server.
Learn more - --codec-endpointtemporal codec-endpoint
Endpoint for a remote Codec Server.
Learn more - --colortemporal color
When to use color
Learn more - --context-timeouttemporal context-timeout
An optional timeout for the context of an RPC call.
Learn more - --envtemporal env
Name of the environment to read environmental variables from.
Learn more - --grpc-metatemporal grpc-meta
Contains gRPC metadata to send with requests.
Learn more - --namespacetemporal namespace
Identifies a Namespace in the Temporal Workflow.
Learn more - --schedule-idtemporal schedule-id
Schedule Id
Learn more - --tls-ca-pathtemporal tls-ca-path
Path to server CA certificate.
Learn more - --tls-cert-pathtemporal tls-cert-path
Path to x509 certificate.
Learn more - --tls-disable-host-verificationtemporal tls-disable-host-verification
Disables TLS host name verification if already enabled.
Learn more - --tls-key-pathtemporal tls-key-path
Path to private certificate key.
Learn more - --tls-server-nametemporal tls-server-name
Provides an override for the target TLS server name.
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]
Use the options below to change this command's output.
- --addresstemporal address
The host and port for the Temporal Frontend Service.
Learn more - --codec-authtemporal codec-auth
Sets the authorization header on requests to the Codec Server.
Learn more - --codec-endpointtemporal codec-endpoint
Endpoint for a remote Codec Server.
Learn more - --colortemporal color
When to use color
Learn more - --context-timeouttemporal context-timeout
An optional timeout for the context of an RPC call.
Learn more - --envtemporal env
Name of the environment to read environmental variables from.
Learn more - --fieldstemporal fields
Customize fields to print.
Learn more - --grpc-metatemporal grpc-meta
Contains gRPC metadata to send with requests.
Learn more - --namespacetemporal namespace
Identifies a Namespace in the Temporal Workflow.
Learn more - --outputtemporal output
format output as either table, json, card.
Learn more - --rawtemporal raw
Print raw data as json (prefer this over -o json for scripting).
Learn more - --schedule-idtemporal schedule-id
Schedule Id
Learn more - --time-formattemporal time-format
Format time as either relative, iso, raw.
Learn more - --tls-ca-pathtemporal tls-ca-path
Path to server CA certificate.
Learn more - --tls-cert-pathtemporal tls-cert-path
Path to x509 certificate.
Learn more - --tls-disable-host-verificationtemporal tls-disable-host-verification
Disables TLS host name verification if already enabled.
Learn more - --tls-key-pathtemporal tls-key-path
Path to private certificate key.
Learn more - --tls-server-nametemporal tls-server-name
Provides an override for the target TLS server name.
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]
Use the options below to change the behavior of this command.
- --addresstemporal address
The host and port for the Temporal Frontend Service.
Learn more - --codec-authtemporal codec-auth
Sets the authorization header on requests to the Codec Server.
Learn more - --codec-endpointtemporal codec-endpoint
Endpoint for a remote Codec Server.
Learn more - --colortemporal color
When to use color
Learn more - --context-timeouttemporal context-timeout
An optional timeout for the context of an RPC call.
Learn more - --envtemporal env
Name of the environment to read environmental variables from.
Learn more - --fieldstemporal fields
Customize fields to print.
Learn more - --grpc-metatemporal grpc-meta
Contains gRPC metadata to send with requests.
Learn more - --limittemporal limit
Number of items to print.
Learn more - --namespacetemporal namespace
Identifies a Namespace in the Temporal Workflow.
Learn more - --no-pagertemporal no-pager
Disables the interactive pager.
Learn more - --outputtemporal output
format output as either table, json, card.
Learn more - --pagertemporal pager
Sets the pager for Temporal CLI to use.
Learn more - --time-formattemporal time-format
Format time as either relative, iso, raw.
Learn more - --tls-ca-pathtemporal tls-ca-path
Path to server CA certificate.
Learn more - --tls-cert-pathtemporal tls-cert-path
Path to x509 certificate.
Learn more - --tls-disable-host-verificationtemporal tls-disable-host-verification
Disables TLS host name verification if already enabled.
Learn more - --tls-key-pathtemporal tls-key-path
Path to private certificate key.
Learn more - --tls-server-nametemporal tls-server-name
Provides an override for the target TLS server name.
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.
- --addresstemporal address
The host and port for the Temporal Frontend Service.
Learn more - --codec-authtemporal codec-auth
Sets the authorization header on requests to the Codec Server.
Learn more - --codec-endpointtemporal codec-endpoint
Endpoint for a remote Codec Server.
Learn more - --colortemporal color
When to use color
Learn more - --context-timeouttemporal context-timeout
An optional timeout for the context of an RPC call.
Learn more - --envtemporal env
Name of the environment to read environmental variables from.
Learn more - --grpc-metatemporal grpc-meta
Contains gRPC metadata to send with requests.
Learn more - --namespacetemporal namespace
Identifies a Namespace in the Temporal Workflow.
Learn more - --pausetemporal pause
Pauses the Schedule.
Learn more - --reasontemporal reason
Reason for the operation
Learn more - --schedule-idtemporal schedule-id
Schedule Id
Learn more - --tls-ca-pathtemporal tls-ca-path
Path to server CA certificate.
Learn more - --tls-cert-pathtemporal tls-cert-path
Path to x509 certificate.
Learn more - --tls-disable-host-verificationtemporal tls-disable-host-verification
Disables TLS host name verification if already enabled.
Learn more - --tls-key-pathtemporal tls-key-path
Path to private certificate key.
Learn more - --tls-server-nametemporal tls-server-name
Provides an override for the target TLS server name.
Learn more - --unpausetemporal unpause
Unpauses the Schedule.
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.
- --addresstemporal address
The host and port for the Temporal Frontend Service.
Learn more - --codec-authtemporal codec-auth
Sets the authorization header on requests to the Codec Server.
Learn more - --codec-endpointtemporal codec-endpoint
Endpoint for a remote Codec Server.
Learn more - --colortemporal color
When to use color
Learn more - --context-timeouttemporal context-timeout
An optional timeout for the context of an RPC call.
Learn more - --envtemporal env
Name of the environment to read environmental variables from.
Learn more - --grpc-metatemporal grpc-meta
Contains gRPC metadata to send with requests.
Learn more - --namespacetemporal namespace
Identifies a Namespace in the Temporal Workflow.
Learn more - --overlap-policytemporal overlap-policy
Overlap policy.
Learn more - --schedule-idtemporal schedule-id
Schedule Id
Learn more - --tls-ca-pathtemporal tls-ca-path
Path to server CA certificate.
Learn more - --tls-cert-pathtemporal tls-cert-path
Path to x509 certificate.
Learn more - --tls-disable-host-verificationtemporal tls-disable-host-verification
Disables TLS host name verification if already enabled.
Learn more - --tls-key-pathtemporal tls-key-path
Path to private certificate key.
Learn more - --tls-server-nametemporal tls-server-name
Provides an override for the target TLS server name.
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.
- --addresstemporal address
The host and port for the Temporal Frontend Service.
Learn more - --calendartemporal calendar
Calendar specification in JSON.
Learn more - --catchup-windowtemporal catchup-window
Maximum allowed catch-up time if server is down.
Learn more - --codec-authtemporal codec-auth
Sets the authorization header on requests to the Codec Server.
Learn more - --codec-endpointtemporal codec-endpoint
Endpoint for a remote Codec Server.
Learn more - --colortemporal color
When to use color
Learn more - --context-timeouttemporal context-timeout
An optional timeout for the context of an RPC call.
Learn more - --crontemporal cron
Optional Cron Schedule for the Workflow.
Learn more - --end-timetemporal end-time
Backfill end time.
Learn more - --envtemporal env
Name of the environment to read environmental variables from.
Learn more - --execution-timeouttemporal execution-timeout
Timeout (in seconds) for a WorkflowExecution, including retries and continue-as-new tasks.
Learn more - --grpc-metatemporal grpc-meta
Contains gRPC metadata to send with requests.
Learn more - --inputtemporal input
Optional JSON input to provide to the Workflow.
Learn more - --input-filetemporal input-file
Passes optional input for the Workflow from a JSON file.
Learn more - --intervaltemporal interval
Interval duration to include phase offset.
Learn more - --jittertemporal jitter
Jitter duration.
Learn more - --max-field-lengthtemporal max-field-length
Maximum length for each attribute field.
Learn more - --memotemporal memo
Set a memo on a schedule (in key=value format).
Learn more - --memo-filetemporal memo-file
Set a memo from a file.
Learn more - --namespacetemporal namespace
Identifies a Namespace in the Temporal Workflow.
Learn more - --notestemporal notes
Initial value of notes field.
Learn more - --overlap-policytemporal overlap-policy
Overlap policy.
Learn more - --pausetemporal pause
Pauses the Schedule.
Learn more - --pause-on-failuretemporal pause-on-failure
Pause schedule after any workflow failure.
Learn more - --remaining-actionstemporal remaining-actions
Total number of actions allowed.
Learn more - --run-timeouttemporal run-timeout
Timeout (in seconds) of a single Workflow run.
Learn more - --schedule-idtemporal schedule-id
Schedule Id
Learn more - --search-attributetemporal search-attribute
Set Search Attribute on a schedule.
Learn more - --start-timetemporal start-time
Backfill start time.
Learn more - --task-queuetemporal task-queue
Task Queue
Learn more - --task-timeouttemporal task-timeout
Start-to-close timeout for a Workflow Task (in seconds).
Learn more - --time-zonetemporal time-zone
Time zone (IANA name).
Learn more - --tls-ca-pathtemporal tls-ca-path
Path to server CA certificate.
Learn more - --tls-cert-pathtemporal tls-cert-path
Path to x509 certificate.
Learn more - --tls-disable-host-verificationtemporal tls-disable-host-verification
Disables TLS host name verification if already enabled.
Learn more - --tls-key-pathtemporal tls-key-path
Path to private certificate key.
Learn more - --tls-server-nametemporal tls-server-name
Provides an override for the target TLS server name.
Learn more - --workflow-idtemporal workflow-id
Workflow Id
Learn more - --workflow-typetemporal workflow-type
Workflow type name.
Learn more