Skip to main content

Temporal CLI cloud async-operation command reference

SUPPORT, STABILITY, and DEPENDENCY INFO

The temporal cloud CLI extension is in Pre-release. Commands and options may change before the stable release.

This page provides a reference for the temporal cloud async-operation commands. 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.

await

Wait for a Temporal Cloud async operation to reach a terminal state. Polls the operation status until it completes, fails, or is cancelled.

Example:

temporal cloud async-operation await --async-operation-id my-op-id

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.

FlagRequiredDescription
--api-keyNostring API key for authenticating with Temporal Cloud. Can be used instead of interactive login for automation and CI/CD pipelines.
--async-operation-idYesstring The ID of the async operation to wait for.
--poll-intervalNoduration Time to wait between status checks when waiting for operation completion. Cannot be greater than 10 minutes. Supports minutes (m) and seconds (s). Default is 1s.
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.

get

Retrieve the status and details of a Temporal Cloud async operation.

Example:

temporal cloud async-operation get --async-operation-id my-op-id

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.

FlagRequiredDescription
--api-keyNostring API key for authenticating with Temporal Cloud. Can be used instead of interactive login for automation and CI/CD pipelines.
--async-operation-idYesstring The ID of the async operation to retrieve.
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.

Global Flags

The following options can be used with any command.

FlagRequiredDescriptionDefault
--api-keyNostring API key for authenticating with Temporal Cloud. Can be used instead of interactive login for automation and CI/CD pipelines.
--auto-confirmNobool Automatically confirm prompts and actions that require user confirmation. Useful for scripting and automation.
--config-dirNostring Directory path where CLI configuration files are stored, including authentication tokens and settings.
--disable-pop-upNobool Prevent the CLI from opening a browser window during authentication. Useful for headless environments or when using alternative auth methods.
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.saas-api.tmprl.cloud:443