tcld namespace command reference
The tcld namespace
commands enable Namespace operations in Temporal Cloud.
Alias: n
- tcld namespace add-region
- tcld namespace create
- tcld namespace delete
- tcld namespace failover
- tcld namespace get
- tcld namespace list
- tcld namespace export
- tcld namespace accepted-client-ca
- tcld namespace certificate-filters
- tcld namespace search-attributes
- tcld namespace retention
- tcld namespace update-codec-server
add-region
Use tcld namespace add-region
to add a standby region to an existing Temporal Cloud Namespace.
Enrolling a second region upgrades the Namespace to multi-region.
Once provisioned, the multi-region Namespace enables Temporal Cloud to start replicating Workflow Execution data from the active to the standby region and trigger failover during adverse conditions.
tcld namespace add-region
Alias: none
To end multi-region service and discontinue replication charges, contact Temporal Support directly.
You can't use tcld
to remove a region from a Namespace.
The following modifiers control the behavior of the command.
--ca-certificate
Required modifier unless --ca-certificate-file
is specified
A base64-encoded CA certificate.
If both --ca-certificate
and --ca-certificate-file
are specified, only --ca-certificate
is used.
Alias: -c
--namespace
Specify a Namespace hosted on Temporal Cloud.
If not specified, the value of the environment variable $TEMPORAL_CLOUD_NAMESPACE
is used.
Alias: -n
Required modifier
--region
The region to add to the existing Namespace.
Valid options: ap-northeast-1
| ap-northeast-2
| ap-south-1
| ap-south-2
| ap-southeast-1
| ap-southeast-2
| eu-central-1
| eu-west-1
| eu-west-2
| ca-central-1
| us-east-1
| us-east-2
| us-west-2
See Service Availability.
The sa-east-1
region is not supported at this time.
Alias: --re
Required modifier
create
The tcld namespace create
command creates a Temporal Namespace in Temporal Cloud.
Alias: c
tcld namespace create
The following modifiers control the behavior of the command.
--request-id
The request identifier to use for the asynchronous operation. If not set, the server assigns an identifier.
Alias: -r
--ca-certificate
Required modifier unless --ca-certificate-file
is specified
A base64-encoded CA certificate.
If both --ca-certificate
and --ca-certificate-file
are specified, only --ca-certificate
is used.
Alias: -c
--namespace
Specify a Namespace hosted on Temporal Cloud. If not specified, the value of the environment variable $TEMPORAL_CLOUD_NAMESPACE is used.
Alias: -n
Required modifier
--region
The region to create the Namespace in.
When one --region
flag is used, tcld
provisions a single-region namespace.
In single-region use, Temporal clients connect to a single Namespace in one deployment region.
When two --region
flags are provided, your Namespace is provisioned to use Temporal Cloud multi-region Namespace (MRN) service.
Once provisioned, MRN enables Temporal Cloud to start replicating Workflow Execution data from the active to the standby region and trigger failover during adverse conditions.
Valid options: ap-northeast-1
| ap-southeast-1
| ap-southeast-2
| ca-central-1
| eu-central-1
| eu-west-1
| eu-west-2
| us-east-1
| us-west-2
Alias: --re
Required modifier
To end multi-region service and end charges, contact Temporal Support directly.
You can't use tcld
to remove a region from a namespace.
--retention-days
The number of days that data about closed Workflow Executions will be retained (default: 30).
Alias: --rd
--ca-certificate-file
Required modifier unless --ca-certificate
is specified
A path to a CA certificate PEM file.
If both --ca-certificate
and --ca-certificate-file
are specified, only --ca-certificate
is used.
Alias: --cf
--certificate-filter-file
Required modifier unless --certificate-filter-input
is specified
Path to a JSON file that defines the certificate filters to be applied to the Namespace. The specified filters replace any existing filters.
Sample JSON: { "filters": [ { "commonName": "test1" } ] }
If both --certificate-filter-file
and --certificate-filter-input
are specified, the command returns an error.
Alias: --cff
--certificate-filter-input
Required modifier unless --certificate-filter-file
is specified
A JSON string that defines the certificate filters to be applied to the Namespace. The specified filters replace any existing filters.
Sample JSON: { "filters": [ { "commonName": "test1" } ] }
If both --certificate-filter-input
and --certificate-filter-file
are specified, the command returns an error.
Alias: --cfi
--search-attribute
Required modifier; can be specified more than once
A custom Search Attribute in the form _name_=_type_
.
Valid values for type: Bool
| Datetime
| Double
| Int
| Keyword
| Text
Alias: --sa
--user-namespace-permission
Can be specified more than once
A Namespace-level permission for a user in the form _email_=_permission_
.
Valid values for permission: Admin
| Write
| Read
Alias: -p
--endpoint
The codec server endpoint to decode payloads for all users interacting with this Namespace. Must be HTTPS.
Alias: -e
--pass-access-token
Pass the user access token to the remote endpoint (default: false).
Alias: --pat
--include-credentials
Include cross-origin credentials (default: false).
Alias: --ic
Example
tcld namespace create --namespace <namespace_id> --region us-west-2 --retention-days 60 --certificate-filter-input '{"filters": [{"commonName": "test1"}]}' --user-namespace-permission "user@example.com=Admin" --search-attribute "customer_id=Int" --search-attribute "customer_name=Text" --endpoint "https://test-codec-server.com" --pass-access-token --include-credentials
delete
The tcld namespace delete
command deletes the specified Namespace in Temporal Cloud.
Alias: d
tcld namespace delete
The following modifiers control the behavior of the command.
--namespace
Specify the Namespace hosted on Temporal Cloud to be deleted.
Alias: -n
Required modifier
--request-id
The request identifier to use for the asynchronous operation. If not set, the server assigns an identifier.
Alias: -r
--resource-version
A resource version (ETag) to update from. If not set, the CLI uses the latest.
Alias: -v
Example
tcld namespace delete --namespace <namespace_id>
failover
Failover a Temporal Namespace. A failover switches a Namespace region from the active region to the standby region.
--request-id
Specify a request identifier to use for the asynchronous operation. If not specified, the server assigns a request identifier.
Alias: -r