Why moving from tctl to the Temporal CLI should be planned now
Your scripts, CI jobs and runbooks that call tctl to manage namespaces, workflow executions and batch jobs need to move to the Temporal CLI. The tctl utility is deprecated and no longer actively supported, so fixes and new behavior will not come from it. The Temporal CLI is the tool to standardize on, and the move is worth scheduling before a server upgrade forces it on your team under pressure.
The Temporal CLI is available on macOS, Windows and Linux, so operators and automation runners on different platforms can use the same command set. It also ships a development distribution of the Temporal Server and Web UI, which lets engineers rehearse commands locally before they touch a shared cluster. Confirm in the current CLI documentation which command groups cover each tctl operation you use, since names and flags differ from tctl and some scripts will need rewriting rather than find-and-replace.
This work is separate from the server and schema upgrades, even though it often lands in the same change window. A CLI move changes how your team and pipelines talk to a cluster, and it does not change the server binaries, persistence schema or visibility store. Keeping it as its own work item means a failed command mapping can be rolled back without touching the cluster, and a failed schema step does not hide whether the scripts were correct. Inventory every tctl call site now, including cron jobs and incident runbooks that nobody has run recently, so the cutover has a clear finish line.
What changes when tctl is retired from operations
This table compares what changes for operators when tctl is no longer the supported command line tool, and what each change means for scripts, runbooks and automation. Read each row as a checklist: the impact column explains the risk, and the action column names the work to schedule. The main takeaway is that the move is mostly an inventory and verification task, so confirm every command and flag against the CLI reference for your server version before you cut over.
| Change | Impact | Action needed |
|---|---|---|
| tctl is deprecated | The tctl utility is no longer actively supported, so fixes and new behavior will not arrive through it. | Record every team and environment that still runs tctl and set a date to stop new use. |
| No active support for tctl | A problem found in tctl may have no supported fix, which leaves operators without an official path when a command misbehaves. | Agree with your platform owner which tool is the supported path for operations and document the exception process. |
| Temporal CLI on macOS, Windows and Linux | Operators on all three desktop and server platforms can install one tool, which simplifies workstations and jump hosts. | Confirm the CLI version installed on each operator workstation and CI image matches the version in your runbooks. |
| Development distribution of the server and Web UI | The CLI bundles a development server and Web UI, which is useful for testing but is not a production cluster. | Keep the bundled development server out of production procedures and use it only in local or test pipelines. |
| Scripts and runbooks that still call tctl | Shell scripts and runbook steps will fail or behave differently once the tool is removed from images or fixed versions are frozen. | Search repositories, wiki pages and job schedulers for tctl, then map each call to a CLI equivalent and test it in staging. |
| Automation that parses tctl output | Parsers written for tctl output formats may break when the CLI prints fields, headers or JSON differently. | Capture sample outputs from both tools, update parsers, and add tests that fail on format changes. |
| Command and flag differences | Names, flags and defaults can differ between tctl and the CLI, so a direct copy of a command may run against the wrong namespace or address. | Confirm each command and flag against the current CLI reference for your server version before you change automation. |
| Environment configuration | Addresses, namespaces, TLS settings and credentials used by tctl may not carry over unchanged to the CLI. | Document the environment variables and profile settings each environment needs and review them with the security team. |
How tctl commands map to the Temporal CLI by area
Namespace tasks are usually the first scripts a team inherits from tctl. Runbooks often cover registering a namespace, setting its retention period, describing its configuration and listing what exists in a cluster. These steps set the boundaries that workflows, workers and access rules depend on, so a wrong mapping here affects everything downstream.
- Inventory the calls: List every tctl namespace command in scripts, CI jobs and runbooks, including retention and archival settings that were changed by hand.
- Map to the CLI reference: Find the matching
temporal operator namespacesubcommands in the CLI reference for your exact server and CLI version, and confirm each flag name. - Check defaults: Compare retention and other defaults between the old and new commands, since a missing flag can silently change behavior.
- Compare describe output: Run describe on a test namespace with both tools and compare the fields your automation reads.
- Confirm error codes: Check the exit codes your scripts test for, such as already-exists or not-found, against what the new CLI returns.
Before retiring a namespace script, confirm in a non-production cluster that create, describe and update produce the same state and that your automation parses the new output and exit codes correctly.
Workflow and batch tasks are where most tctl scripts live. Teams list executions, describe a workflow, signal or cancel it, terminate it, reset it and run batch operations against filtered sets. Batch work is high risk because a filter that matches more executions than intended can affect many workflows at once.
- List and describe: Map list and describe scripts to the CLI workflow commands, then confirm which query syntax and output format your parsing depends on.
- Signal, cancel and terminate: Confirm the exact flags for workflow ID, run ID and reason, since these are used in incident runbooks.
- Batch operations: Identify every batch job and its visibility query. Check how the CLI batch subcommands report progress, pausing and failures compared with the old tool.
- Output parsing: Test JSON or table output with the parsers in your scripts, because field names and ordering can differ between tools and versions.
- Dry runs: Run filters in read-only list mode first and compare counts with the old script before any mutating batch runs.
Rehearse every batch job against a staging namespace with representative visibility data, and confirm the reported counts match before running it in production.
Every tctl script assumes a set of connection details: the frontend address, the namespace, TLS certificates, and sometimes authentication tokens. Teams often store these in shell profiles or hard-coded script variables. The CLI uses its own configuration, so connection setup must be moved deliberately, especially where mTLS or token-based access is in use.
- Address and namespace: Identify where the frontend address and default namespace are set in old scripts and confirm how the CLI reads them from flags, environment variables or its configuration profiles.
- TLS settings: Map the certificate, key and CA file paths for mTLS and confirm the exact CLI options for each.
- Authentication: If the cluster uses an Authorizer or JWT validation, confirm how the CLI passes credentials and which options your security team approved.
- Profiles per environment: Separate development, staging and production profiles so a script cannot reach production by accident.
- Secrets handling: Keep tokens and certificate paths out of committed scripts and check that the CLI does not write secrets to logs.
Finally, test connection setup from the exact host and service account that runs automation, since network reachability and certificate trust often differ from a developer workstation.
How to move environment configuration and automation to the Temporal CLI
Consolidate connection settings before you touch any script. Most tctl estates hold the frontend address, namespace, TLS certificate paths, key files and authentication tokens in a mix of shell profiles, wrapper scripts and CI variables, often duplicated across pipelines with slightly different values. Inventory every place those values live, then decide which of them move into a single named profile or environment file that the Temporal CLI reads, and which secrets stay in your existing secret store and are injected at run time. Confirm the exact flag and environment variable names for your CLI version against the current Temporal CLI documentation rather than copying them from old tctl wrappers, because the two tools do not share a configuration model. Make the profile names explicit about environment (for example, development, staging and production), so a command cannot quietly pick up the wrong cluster.
Update scheduled jobs, pipelines and runbook links as one tracked change. List every cron job, CI stage, scheduled container and runbook entry that calls tctl, and record its owner, its trigger and whether it reads or writes workflow state. Replace each call with the equivalent Temporal CLI command in a staging environment first, then run both versions side by side against a non-production namespace where the output can be compared. Update runbook links and on-call documentation in the same change set, so an operator is not sent to a page that still prescribes the deprecated tool. Keep the old tctl wrappers available for a defined rollback window and record which jobs have already switched, so the state of the migration is visible to the whole team.
Guard against batch operations hitting the wrong namespace during a partial move. A partial migration is the riskiest period, because some operators will be using tctl with one set of defaults while others use the Temporal CLI with another. Batch jobs that terminate, cancel or reset many executions are the highest-impact case, so require the target namespace and environment to be printed and confirmed before a bulk action runs, and avoid relying on a default namespace in any automation. Ask your platform team whether batch operations can be restricted to a reviewed dry run first, and whether the CLI profile used by a job is pinned in source control. Test the wrong-target case on purpose in staging, because a script that works in one environment can silently act on another when a variable is missing.
What to prepare before replacing tctl scripts
The tctl utility is deprecated and no longer actively supported, so every script and runbook that calls it needs a replacement plan. The six preparation steps below build a complete picture of current usage, protect a working fallback, and confirm the security posture the commands depend on before any command is switched.
Inventory every tctl call
Search scripts, runbooks, CI pipelines, cron jobs, container entrypoints and wiki pages for tctl and for the wrapper aliases your team uses. For each hit, record the command, the namespace and cluster it targets, the caller, and how often it runs. Hidden callers, such as a nightly cron on a jump host, are the ones teams most often miss. Treat the inventory as the scope document for the migration.
Back up scripts and runbooks
Copy every script, runbook and pipeline definition that calls tctl into version control before editing anything. Tag the commit that represents the current working state so a reviewer can compare old and new behavior line by line. Export any runbook pages from your wiki as well, since documentation tends to drift away from the scripts it describes.
Stand up a staging environment
Run the temporal CLI against a staging Temporal environment that matches production's namespaces, task queues and visibility setup as closely as you can. Execute each replacement command beside the original tctl command and compare the output, exit codes and resulting state. A staging cluster also gives you a place to test batch jobs without touching live executions.
Record the security settings scripts rely on
Document how each tctl call authenticates today, including any TLS certificates, mTLS client identities and JWT tokens. A self-hosted cluster with no configured Authorizer runs the default noopAuthorizer, which allows every API request with no authentication or access control. If your scripts work without credentials, confirm whether that reflects an intentional gap that the new CLI setup should close rather than copy.
Self-hosted security docsAgree who gets the CLI
Decide which operator workstations, CI runners and service accounts will hold temporal CLI access, and which namespaces each identity may reach. Map each current script owner to a role so that automation no longer runs under a shared personal credential. Write the agreement down before rollout, because it determines how credentials are issued, rotated and revoked.
Keep a rollback copy of each script
Until a replacement is verified in staging and in production, keep the original tctl script available and runnable, with its own pinned tctl binary and configuration. Note the cutover owner and the criteria for rolling back, such as a failed batch count or an authentication error. Remove the old copy only after the replacement has run through a full operational cycle.
The sequence for replacing tctl without breaking operations
This sequence moves every tctl script and runbook onto the Temporal CLI in a controlled order, so each change is checked in staging and can be reversed before production depends on it.
Inventory every tctl use
The operator team lists every place tctl runs: shell scripts, cron jobs, CI pipelines, incident runbooks, and any admin's personal shell history. Each entry is classified by risk, meaning read-only query, namespace or configuration change, or bulk workflow action against live executions. The output is a single inventory file with an owner and a classification for each item. The step is done when the owning team has signed off on the list and no tctl use is left unclassified.
Map each command to a Temporal CLI equivalent
For each inventoried command, the platform engineer finds the matching subcommand in the Temporal CLI reference and writes the new form next to the old one. Flags, output formats, and default namespaces often differ, so each mapping records those differences and any option that has no direct match. Items with no clean equivalent are flagged for redesign rather than forced into a workaround. The step is done when every mapping has a reviewer and every gap has a named decision owner.
Install the Temporal CLI on test and operator machines
The platform team installs the Temporal CLI on the staging jump host, the CI runner used for automation tests, and each operator workstation, using the version that matches the cluster's server line. Installed versions are recorded and pinned in the team's configuration so that everyone runs the same build. The step is done when each machine reports its CLI version and can reach the staging frontend with the new environment settings.
Run mapped commands in staging and compare results
Operators run each mapped command against the staging cluster and capture the output from the old tctl call and the new CLI call side by side. They compare namespace settings, workflow listings, counts, and error text, and record every difference with a decision on whether it is acceptable. Batch job commands are not run here until they pass the dry review in the next step. The step is done when every mapped read-only and configuration command matches or has an approved difference. If a mismatch affects a script's logic, the old tctl version stays in place for that job.
Dry review batch job commands before production
Batch commands that signal, terminate, cancel, or reset many workflows are reviewed before any run against production. The reviewer checks the exact query filter, the expected match count from a read-only listing, the reason code, and the rollback option for each command, and runs the batch against a staging namespace with seeded workflows. Any command whose effect cannot be reversed is held for a second approver. The step is done when the reviewer has written the approved command, its expected scope, and its stop condition into the runbook.
Update automation one job at a time
Each scheduled job, pipeline, or script is switched to the Temporal CLI in its own change, starting with the lowest-risk read-only jobs and ending with batch jobs. Each change keeps the previous tctl version in version control so it can be restored in one revert. Owners confirm the job's output, exit codes, and alerting after the first scheduled run. The step is done when each job has a merged change, a verified first run, and a recorded rollback path.
Run old and new paths in parallel for a defined period
For a period agreed in advance by the operations lead, tctl and the Temporal CLI both run the same jobs, and the outputs are compared on each run. Any divergence opens an incident ticket and stops the switch for that job until the cause is found. The parallel period length is set by the team and written into the change record, since no fixed duration applies to every cluster. The step is done when the agreed period ends with no unexplained differences in the comparison log.
Retire tctl once every runbook is updated
After the inventory shows no remaining tctl use, the team removes the binary from operator images, automation runners, and the shared tooling repository, and marks the old runbooks as superseded. The retirement is recorded with the date, the owner, and a link to the final inventory. Old tctl references are searched across repositories and wikis to confirm nothing still points to it. The step is done when a search returns no active tctl references and the operations lead has closed the migration record.
How the tctl inventory moves through replacement and retirement
The path starts with a complete inventory of existing tctl uses, which are sorted into namespace, workflow, batch and automation items. Each item is mapped to its temporal CLI equivalent and verified in staging. A failed check sends the item back to its tctl script, so production only switches after a pass. Retirement of tctl comes last, once every runbook and job has been updated and checked.
Decision path from tctl inventory to retirement, with rollback to the existing script on failure.
What makes a tctl to Temporal CLI move take longer
This table lists the factors that expand a tctl to Temporal CLI migration and explains why each one adds work. Read each row as a question to answer about your own estate before estimating effort. The main takeaway is that the size of the script inventory and the number of environments usually matter more than the commands themselves.
| Driver | Why it adds effort | How to reduce it |
|---|---|---|
| Number of scripts and runbooks | Every script and runbook that calls tctl must be found, rewritten and retested, including ones nobody has run in a long time. | Inventory all call sites with a search of repositories, wikis and job schedulers, then retire unused items before converting the rest. |
| Custom wrapper tools that parse tctl output | Wrappers that scrape text output break when the output format differs, so they need logic rewritten rather than a simple command swap. | Identify which wrappers parse output, then decide whether to switch to structured output options in the CLI or rebuild the parser against tested samples. |
| Batch jobs that need careful review | Bulk operations on many workflows can cause large unintended effects if flags or filters are translated incorrectly. | Review each batch command against a non-production namespace, confirm the filter and dry-run behavior, and require a second reviewer before the first production run. |
| Number of environments and namespaces | Each environment has its own endpoints, namespaces and credentials, so the same script may need several validated configurations. | Move environment values into a single profile or configuration file, then test each namespace with read-only commands before any write commands. |
| CI and scheduler integrations | Pipelines and cron-style schedulers call tctl with embedded flags, images and exit-code assumptions that must be updated together. | List every pipeline that references tctl, update them in one change set per environment, and confirm exit-code handling in a staging run. |
| Authentication and TLS settings in use | Certificates, API keys or mTLS settings configured for tctl may not carry over unchanged, and failures can look like connectivity problems. | Document the current TLS and credential setup for each environment, then confirm the CLI connects with the same identities before changing scripts. |
| Team familiarity with the CLI | Engineers who know tctl flags well must learn new syntax and defaults, and reviews slow down while they do. | Pair each converted script with a short review checklist, and run a walkthrough of common command equivalents before the cutover window. |
Questions teams ask before replacing tctl
What does it cost to move from tctl to the Temporal CLI?
The direct cost is the labor to inventory scripts, rewrite them, test them and retire the old runbooks, so the main cost driver is how many scripts and runbooks exist and how much each depends on tctl-specific behavior. The Temporal CLI itself is free to download and is available on macOS, Windows and Linux, so licensing is not the cost. Ask any partner for a quote built from a written scope: the number of scripts, the number of environments (development, staging, production), whether batch jobs are involved, and whether automation runs in CI or on a schedule. Confirm whether the quote includes a retest against a staging cluster, since that step usually takes the most care.
How long does replacing tctl usually take?
The timeline depends on the size of the script inventory, how many teams own automation, and how much staging access is available to test against. Teams with a short list of scripts and clear owners can finish in a sprint, while large estates with batch jobs, scheduled tasks and undocumented runbooks take longer because each item needs a mapping, a test and a sign-off. Ask for a timeline that lists the inventory phase, the mapping phase, the staging test phase and the cutover, and confirm which of those phases depend on people outside your platform team.
What must our team provide before the work starts?
Three inputs make the work predictable. The first is a complete inventory of every script, cron job, CI step and runbook that calls tctl, including the server address and namespace each one targets. The second is access to a staging Temporal environment that matches production closely enough to test destructive commands such as batch operations. The third is a named owner for each runbook who can confirm expected behavior and approve the replacement. Without owners, mapped commands often pass tests but fail in the situations operators actually face, such as incident response.
Can our own team replace tctl without a partner?
Yes, if the team has engineers who know the Temporal server version in use, can read the existing scripts, and have staging access to test changes. The work is mostly mechanical for simple scripts, but batch jobs and anything that resets or terminates workflows deserves careful review because mistakes affect live executions. A partner adds value when the inventory is large, when the team has no one who can validate destructive commands, or when the replacement must be documented for an audit. Either way, the written plan should name who approves each change.
Do we have to remove tctl immediately?
No. The tctl utility is deprecated and no longer actively supported, so it should be retired, but the cutover can be staged. A common approach is to replace scripts in priority order, run old and new commands side by side in staging, and remove tctl from runbooks and automation only after each owner has confirmed the new version works. Keep the old binary available until the last dependency is replaced, and record the date each script moved so that support questions can be traced.
How do we confirm each command mapping is correct for our server version?
Check every mapping against the Temporal CLI reference for the version you run, not against memory or older tctl examples. Then run each command in a staging environment on the same server version as production, and compare the result with the output of the original tctl command, including exit codes and the state of workflows afterward. Pay special attention to flags that changed meaning, default values and commands that act on batches. Record the CLI version and server version used for each test so that a later upgrade can be checked against the same list.
Does the move change how we secure access to Temporal?
It can, because the CLI connects with the same frontend endpoint and authentication settings your server exposes. If the self-hosted server has no Authorizer configured, it uses the default noopAuthorizer, which allows every API request with no authentication or access control. Before moving automation, confirm how credentials, TLS settings and namespace roles will be passed to the CLI, and make sure secrets are not stored in plain script files. Review this with your security team as part of the cutover, not after it.
How DeployOpen scopes and delivers a tctl replacement
DeployOpen starts by inventorying every tctl script, runbook and scheduled job against the Temporal CLI, then agrees the scope in writing before any change is made. The work is delivered inside your own infrastructure, with each replacement tested against a non-production namespace before it touches production.
How we scope
- Inventory every tctl script, cron job and runbook that calls the deprecated utility, including CI pipelines and operator shell aliases.
- Map each tctl command used by your team to its Temporal CLI equivalent and record any command with no direct match.
- Agree the written scope, deliverables and timeline with your platform and security owners before work starts.
- Confirm which environments, namespaces and automation owners are in scope, and which are excluded.
How we build
- Replace tctl calls in scripts with Temporal CLI commands, with environment configuration kept separate from script logic.
- Test each converted script against a development server or staging cluster, comparing outputs with the original tctl results.
- Validate batch job and workflow operations on non-production namespaces, including the access identities each script uses.
- Update automation such as CI jobs and scheduled tasks to call the new CLI, then remove the legacy tctl dependency.
How we hand over
- Deliver a command mapping document listing each original tctl use, its replacement, and the owner who approved the change.
- Provide updated runbooks with prerequisites, environment variables and rollback steps for every converted operation.
- Walk your operators through the new commands and the test evidence collected during staging rehearsal.
- Leave the repository changes reviewed and merged under your own change control process.
How we support
- Confirm after go-live which scripts and jobs still run, and track any command that behaves differently from the legacy utility.
- Offer ongoing support, upgrades and continuous testing as a retainer if your team wants DeployOpen to keep automation current.
- Agree support boundaries in the written scope, including who responds to failed automation and within what working arrangement.
- Review the Temporal CLI and server versions you run as part of routine maintenance so command compatibility is rechecked.

