A cli tool for managing Temporal Cloud namespaces.
This cli tool is currently in
beta
and access to Temporal Cloud via the cli is restricted. Please reach out to temporal-cloud support for more information.
brew install temporalio/brew/tcld
- Verify that you have Go 1.18+ installed. If
go
is not installed, follow instructions on the Go website.
go version
- Clone the
tcld
repository and runmake
.
git clone https://github.com/temporalio/tcld.git
cd tcld
make
- Copy the tcld executable to any directory that appears in the PATH environment variable; for example,
/usr/local/bin/
.
cp tcld /usr/local/bin/tcld
- Run
tcld version
to check if it worked.
tcld version
In order to use the cli you must first login by running the following command:
tcld login
You will be sent a link to confirm your device code and login. After logging in, you are now authenticated and can make requests with this cli.
tcld namespace list
tcld namespace get -n <namespace>
tcld namespace accepted-client-ca set -n <namespace> --ca-certificate-file <ca-pem-filepath>
⚠️ If the update removes a certificate, any clients (tctl/workers) still using the removed certificate will fail to connect to the namespace after the update completes.
It is important to do a rollover process when updating your CA certificates. This allows your namespace to serve both CA certificates for a period of time until traffic to your old certificate is gone. To do this follow these steps:
- Generate the new certificates.
- Run the
accepted-client-ca add
command with the new CA certificates.
tcld namespace accepted-client-ca add -n <namespace> --ca-certificate-file <new-ca-pem-filepath>
- Update temporal clients to use the new certificates and monitor deployements to make sure all old certificate usage is phased out.
- Run the
accepted-client-ca remove
command to remove the old certificates.
tcld namespace accepted-client-ca remove -n <namespace> --ca-certificate-file <old-ca-pem-filepath>
Or use the fingerprint of the old ca certificate with the remove command.
tcld namespace accepted-client-ca remove -n <namespace> --ca-certificate-fingerprint <old-ca-fingerprint>
tcld namespace search-attributes add -n <namespace> --sa "<attribute-name>=<search-attribute-type>" --sa "<attribute-name>=<search-attribute-type>"
Supported search attribute types: Keyword Text Int Double Datetime Bool
tcld namespace search-attributes rename -n <namespace> --existing-name <existing-attribute-name> --new-name <new-attribute-name>
⚠️ Any workflows that are using the old search attribute name will fail after the update.
Any update operations making changes to the namespaces hosted on Temporal Cloud are asynchronous. Such operations are tracked using a request-id
that can be passed in when invoking the update operation or will be auto-generated by the server if one is not specified. Once an asynchronous request is initiated, a request-id
is returned. Use the request get
command to query the status of an asynchronous request.
tcld request get -r <request-id> -n <namespace>
MIT License, please see LICENSE for details.