Skip to main content

Use with Temporal Cloud

If you install the Temporal Cloud extension for the Temporal CLI, you can use the extension to interact with Temporal Cloud.

Authentication

You can authenticate with Temporal Cloud interactively or programmatically. Both approaches use environment configuration files to store the authentication credentials.

Interactive authentication

Use the temporal cloud login command to authenticate with Temporal Cloud. Provide a environment configuration profile name to output the authentication credentials to. For more information about environment configuration profiles, see Environment Configuration.

temporal cloud login --profile <profile-name>

The command will open a browser window to authenticate with Temporal Cloud. Once authenticated, the command will output the authentication credentials to the specified profile. If you do not provide a profile name, the command will output the authentication credentials to the default profile.

A successful login will allow you to run temporal cloud command to perform operational and administrative tasks on Temporal Cloud. It will also allow you to use the base temporal CLI to interact with a Temporal Service on Temporal Cloud.

Programmatic authentication

You can authenticate with Temporal Cloud using environment configuration files or setting environment variables. For more information about environment configuration files, see Environment Configuration.

Common operations

The following cheat sheet groups common Temporal Cloud commands by object. Commands and subcommands are listed in alphabetical order.

This isn't a comprehensive list of all commands. For the full list of commands, see the command reference.

Namespace

OperationCommand
Apply Namespace spectemporal cloud namespace apply --namespace-id <id> --spec @spec-file.yaml
Create Namespacetemporal cloud namespace create
Create Namespace with spectemporal cloud namespace create --namespace-id <id> --spec @spec-file.yaml
Delete Namespacetemporal cloud namespace delete
Describe Namespacetemporal cloud namespace describe
Export Namespacetemporal cloud namespace export
List Namespacestemporal cloud namespace list

API key

OperationCommand
Create API keytemporal cloud apikey create
Delete API keytemporal cloud apikey delete <key-id>
Describe API keytemporal cloud apikey describe <key-id>
Turn off API keytemporal cloud apikey disable <key-id>
Turn on API keytemporal cloud apikey enable <key-id>
List API keystemporal cloud apikey list

Nexus endpoint

OperationCommand
Create endpointtemporal cloud nexus endpoint create
Delete endpointtemporal cloud nexus endpoint delete
Get endpointtemporal cloud nexus endpoint get
List endpointstemporal cloud nexus endpoint list
Update endpointtemporal cloud nexus endpoint update

Service account

OperationCommand
Create service accounttemporal cloud service-account create
Delete service accounttemporal cloud service-account delete
Get service accounttemporal cloud service-account get
List service accountstemporal cloud service-account list
Update service accounttemporal cloud service-account update

User

OperationCommand
Delete usertemporal cloud user delete
Describe usertemporal cloud user describe
Get usertemporal cloud user get
Invite usertemporal cloud user invite
List userstemporal cloud user list
Resend invite for usertemporal cloud user resend-invite
Set account role for usertemporal cloud user set-account-role
Set Namespace permissions for usertemporal cloud user set-namespace-permissions