Temporal CLI
$ temporal Official Med RiskTemporal CLI (temporal) is a single Go binary for running a local Temporal dev server (temporal server start-dev), inspecting workflow execution histories, querying namespaces, and managing schedules. Its --output json / jsonl flags and zero-dependency local dev mode make it standout for agent debugging and testing.
brew install temporal Temporal CLI provides deterministic --output json/jsonl event histories and an embedded start-dev server that agents can run locally in tests.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class --output json and --output jsonl across workflow/schedule/namespace commands plus zero-config --headless local dev server.
--output json|jsonl|text|nonesupported globally- No interactive prompts during
workflow,activity, orscheduleinspection
Defaults safely to localhost:7233 with explicit --address/--namespace flags and mTLS/API-key isolation for Cloud.
- Localhost default prevents accidental Temporal Cloud mutations
- Explicit
--workflow-idrequired for terminate/cancel/signal
Single static Go binary available via Homebrew, direct curl script, and GitHub releases across macOS, Linux, and Windows.
brew install temporaland prebuilt releases
Bundles both the full production client CLI and an embedded SQLite/in-memory Temporal server for integration testing.
temporal server start-devreplaces multi-container Docker Compose setups
Official Temporal Technologies repository (temporalio/cli) actively maintained under MIT.
- Official Temporal GitHub organization
Detailed official Temporal CLI reference docs and clean built-in --help.
- Official docs at docs.temporal.io/cli
Security, Auth & Guardrails
Zero auth needed for local start-dev; Temporal Cloud profiles and mTLS/API keys use ~/.config/temporalio/ or TEMPORAL_API_KEY / TEMPORAL_ADDRESS.
CLI and local server are free (MIT); Temporal Cloud is billed by actions and storage.
# Temporal CLI Agent Rules - Default to local `start-dev` (`localhost:7233`); verify `--address` and `--namespace` before touching Temporal Cloud. - Always pass `--output json` (or `jsonl`) when inspecting workflow lists or histories. - Require human approval before running `temporal workflow terminate`, `cancel`, or `operator namespace delete` on production.
Agent-Ready Command Recipes
Safe Read-Only Queries
temporal workflow list --output json
Lists running and completed workflows in the targeted namespace as structured JSON.
temporal workflow show --workflow-id order-123 --output json
Dumps deterministic workflow history events for debugging failures or retries.
Controlled Writes & Previews
temporal server start-dev --headless
Runs an ephemeral in-memory Temporal server locally without launching the Web UI or touching Temporal Cloud.
Strengths for Agents
- + Global
--output jsonand--output jsonlmake workflow histories trivially parseable by coding agents. - + Embedded
temporal server start-dev --headlessenables fast, self-contained local integration tests. - + Safe
localhost:7233default with explicit--address,--namespace, andTEMPORAL_API_KEYtargeting.
Caveats & Pitfalls
- !
temporal server start-devis a long-lived daemon process that must be backgrounded. - ! Production workflow
terminateorresetcommands are destructive if pointed at a Cloud namespace.