Skip to main content

Integrate CLI 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

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 does not automatically provide the CLI with information about the Temporal Service you want to communicate with. If you need to communicate with a Temporal Service, you still need to provide the --address and --namespace flags to the command as well as credentials for the Temporal Service you want to communicate with.

Common operations

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

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

Temporal Nexus

Endpoint operations:

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