Skip to main content

Temporal CLI cloud project command reference

View Markdown

Commands for managing Temporal Cloud projects.

Projects provide an account-level grouping for Temporal Cloud resources.

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

apply

Apply a project configuration to Temporal Cloud. If --project-id is provided, the existing project is updated. Otherwise, a new project is created because project IDs are generated by the server.

The specification can be provided as inline JSON or loaded from a file by prefixing the path with '@'.

Example:

temporal cloud project apply --spec '{"display_name": "Engineering", "description": "Engineering workloads"}'

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.
--asyncNobool Return immediately after initiating the operation instead of waiting for completion. Use the returned operation ID to check status later.
--async-operation-idNostring Custom identifier for tracking this async operation. If not provided, a unique ID is generated automatically.
--idempotentNobool Succeed silently if the resource already exists or matches the specification. Without this flag, the command errors when no changes are needed.
--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).
--project-idNostring The ID of the project to update. Omit to create a new project.
--resource-version, -vNostring Resource version for optimistic concurrency control. If not provided, the current version is fetched automatically.
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.
--specYesstring Project configuration in JSON format. Provide inline JSON directly, or use '@path/to/file.json' to load from a file.
--verbose-diffNobool Show detailed differences between the current and desired namespace configurations when changes are detected.

create

Create a new Temporal Cloud project.

Example:

temporal cloud project create --display-name "Engineering" --description "Engineering workloads"

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.
--asyncNobool Return immediately after initiating the operation instead of waiting for completion. Use the returned operation ID to check status later.
--async-operation-idNostring Custom identifier for tracking this async operation. If not provided, a unique ID is generated automatically.
--descriptionNostring A description of the project.
--display-nameYesstring The display name of the project.
--enable-delete-protectionNobool Prevent the project from being deleted while enabled.
--idempotentNobool Succeed silently if the resource already exists or matches the specification. Without this flag, the command errors when no changes are needed.
--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).
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.

delete

Delete a Temporal Cloud project.

Example:

temporal cloud project delete --project-id my-project-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.
--asyncNobool Return immediately after initiating the operation instead of waiting for completion. Use the returned operation ID to check status later.
--async-operation-idNostring Custom identifier for tracking this async operation. If not provided, a unique ID is generated automatically.
--idempotentNobool Succeed silently if the resource already exists or matches the specification. Without this flag, the command errors when no changes are needed.
--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).
--project-idYesstring The ID of the project.
--resource-version, -vNostring Resource version for optimistic concurrency control. If not provided, the current version is fetched automatically.
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.

edit

Open an existing project specification in your default editor and apply the edited configuration.

Example:

temporal cloud project edit --project-id my-project-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.
--asyncNobool Return immediately after initiating the operation instead of waiting for completion. Use the returned operation ID to check status later.
--async-operation-idNostring Custom identifier for tracking this async operation. If not provided, a unique ID is generated automatically.
--idempotentNobool Succeed silently if the resource already exists or matches the specification. Without this flag, the command errors when no changes are needed.
--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).
--project-idYesstring The ID of the project.
--resource-version, -vNostring Resource version for optimistic concurrency control. If not provided, the current version is fetched automatically.
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.
--verbose-diffNobool Show detailed differences between the current and desired namespace configurations when changes are detected.

get

Retrieve the configuration and status of a Temporal Cloud project.

Example:

temporal cloud project get --project-id my-project-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.
--project-idYesstring The ID of the project.
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.

list

List Temporal Cloud projects in the current account.

Example:

temporal cloud project list --page-size 50

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.
--page-sizeNoint Maximum number of projects to return.
--page-tokenNostring Token for retrieving the next page of results.
--project-idNostring[] Filter by project ID. Can be specified multiple times.
--serverNostring Override the Temporal Cloud API server address. Used for connecting to non-production environments.

update

Update an existing Temporal Cloud project. Only explicitly provided flags are changed.

Example:

temporal cloud project update --project-id my-project-id --display-name "Platform"

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.
--asyncNobool Return immediately after initiating the operation instead of waiting for completion. Use the returned operation ID to check status later.
--async-operation-idNostring Custom identifier for tracking this async operation. If not provided, a unique ID is generated automatically.
--descriptionNostring A description of the project.
--display-nameNostring The display name of the project.
--enable-delete-protectionNobool Prevent the project from being deleted while enabled.
--idempotentNobool Succeed silently if the resource already exists or matches the specification. Without this flag, the command errors when no changes are needed.
--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).
--project-idYesstring The ID of the project.
--resource-version, -vNostring Resource version for optimistic concurrency control. If not provided, the current version is fetched automatically.
--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