Skip to main content

Install the tale CLI

Install the tale CLI on macOS, Linux, or Windows — and configure it against your self-hosted instance for deploys and upgrades.

65 min read

The tale CLI installs, deploys and operates Tale. Install it on the machine where you will run operator commands, then choose the local quickstart or the deployment workflow below.

The same CLI owns workspace container operations, managed deployments from exact source commits, and client configuration releases. Your deployment automation selects destination, pins and credential references, then calls the CLI. Release client configurations covers content from the client's own repository.

For your first instance, use the quickstart. The ordinary path is tale init followed by tale dev. You only need a managed deployment specification when your automation must pin exact runtime and client source commits.

Before you begin

You need:

  • A workstation running macOS, Linux, or Windows with PowerShell.
  • For local container operations on the Docker runtime, the default: Docker Engine 24.0 or later with Compose and a running Docker daemon. Tale’s images have zstd-compressed layers, which Docker pulls from Engine 23.0 on; tale doctor reports an older engine, and tale dev and tale deploy, a bundle deployment included, refuse it before downloading images.
  • For a workspace or a managed deployment on the experimental Incus runtime: a Linux host with Incus instead; neither the deployment nor a managed bundle's preparation needs Docker.
  • For a remote workspace: access to its Docker daemon, running Docker Engine 24.0 or later, usually through an SSH Docker context. The remote operator must be able to run Docker.

The bundled object store currently ships only a linux/amd64 image. On an ARM64 host, local development and workspace deployment need working amd64 emulation: Docker Desktop includes it; a standalone Linux Docker host needs QEMU registered on the host. Tale selects the amd64 image but does not install emulation. Managed bundles still require native images for their declared architecture, so an ARM64 managed deployment must wait for a native object-store image.

The installer downloads a release binary from GitHub. It needs access to raw.githubusercontent.com, api.github.com, github.com and the release download destinations that GitHub redirects to.

Run install-cli.sh or install-cli.ps1

On macOS or Linux:

bash
curl -fsSL https://raw.githubusercontent.com/tale-project/tale/main/scripts/install-cli.sh | bash

On Windows PowerShell:

powershell
irm https://raw.githubusercontent.com/tale-project/tale/main/scripts/install-cli.ps1 | iex

The Unix installer selects the binary for your OS and CPU. By default, it replaces an existing tale executable found on PATH, or installs into /usr/local/bin; it requests sudo only when needed to write there. The Windows installer uses %LOCALAPPDATA%\Programs\tale by default and updates your user PATH.

Release binaries cover macOS on Apple Silicon and Intel, Linux on x86_64 and arm64, and Windows x64. Windows ARM requires x64 emulation. On another Unix system or architecture, the installer prints the steps to build the CLI from source on that machine with Bun, and where to put it.

Set VERSION to a release version to pin the install, and INSTALL_DIR to choose another destination. In a Unix shell, export these variables before running the pipeline so the bash process receives them; setting them only before curl does not pass them to the installer. In PowerShell, use $env:VERSION and $env:INSTALL_DIR.

OSInstaller script
macOSscripts/install-cli.sh
Linuxscripts/install-cli.sh
Windowsscripts/install-cli.ps1

Verify

bash
tale --version

The CLI prints its installed version. If the command is not found, check the destination in the installer output and ensure that directory is on PATH. If an existing Windows terminal still cannot find tale, reopen it. If the download fails, check the network destinations above; an optional GITHUB_TOKEN environment variable authenticates the release lookup when anonymous GitHub API requests are rate limited.

Confirm configuration

For workspace container operations, use the project created by tale init in the quickstart. The CLI walks up the directory tree to find its tale.json; check the selected project before operating on it:

bash
tale config show

Configuration releases and managed deployments select their sources and destinations explicitly and do not align to a nearby workspace. config show keeps its existing local-project behavior.

For a workspace deployment, the host the proxy answers on, TLS settings, and every secret live in the project's .env. For production, set HOST and SITE_URL there, or run tale deploy in a terminal and enter the domain when it asks. tale deploy --host serves another host for one run and leaves .env unchanged. Local tale dev defaults to localhost; its --host and --port flags apply only to that run. To operate a remote workspace host, point your shell's Docker context (or DOCKER_HOST) at it. Managed bundle deployment instead runs on its declared destination with the local Docker daemon.

Run tale deploy

bash
tale deploy

Without --bundle, tale deploy ships the CLI's own version: it pulls that version's images, restarts affected containers in order and runs schema migrations. Use tale update first to choose another workspace version. For independently pinned runtime and client source commits, follow Managed deployments.

Command reference

The CLI groups its commands by what you are doing, the same way tale --help does. Each command and its arguments are listed below. How to read the notation:

  • A positional argument in [square brackets] is optional; one in <angle brackets> is required.
  • Required options are named explicitly for configuration releases; other flags are optional unless command help marks them as required.
  • A flag written --flag <value> requires a value when you use it (e.g. --port 8443); a bare flag like --detach is a boolean switch.
  • Defaults are shown in parentheses after the description. No default means the flag is off, or the command resolves the value from .env / context.

This reference includes commands in the current source code. The published v0.5.70 CLI does not include tale doctor or tale dev --stop. Run tale --help and tale <command> --help for the commands and options available in your installed version.

Global flags work on every command:

  • --verbose — verbose output: debug logs and the raw subprocess stream (long form only; there is no -v).
  • -q, --quiet — only warnings and errors.
  • -y, --yes — assume "yes" for all prompts (non-interactive).
  • --no-color — disable ANSI colour (also honours NO_COLOR / FORCE_COLOR).
  • --json—machine-readable JSON on stdout; supported by doctor, status, sandbox status, every config subcommand and managed deployment commands.
  • --ci — force non-interactive, append-only output (no cursor control).

Commands exit 0 on success, 2 on a usage error, 3 on an unmet precondition (no project, Docker not running, port in use), 4 on a user abort (Ctrl-C, or a required prompt with no terminal), and 5 on an external-dependency failure — so scripts can branch on the cause.

Setup

tale doctor — inspect local startup prerequisites without creating a project, installing software or changing configuration. It checks the Docker daemon, its Docker Engine version, Compose support and Linux-container mode, reports the daemon architecture and checks local ports. A remote Docker context skips local port checks. ARM64 and occupied-port warnings require review; an existing instance may already own a port.

  • -p, --port <port> — HTTPS port to check (default 443); the sandbox port 8003 is also checked.
  • --json — emit the checks as machine-readable JSON.
  • --offline — make no network call: on an Incus workspace, skip the Incus API probe and the instance report.

Docker, Compose, Docker Engine version or unsupported container-mode failures or selecting HTTPS port 8003 exit 3. Warnings alone exit 0; this does not verify image downloads, storage capacity or a model provider. Check a different port with tale doctor --port 8443, then use the same port with tale dev.

The first row names the runtime the workspace declares. In a workspace whose tale.json declares runtime.engine incus (experimental), tale doctor checks Incus instead of Docker: the credentials in .tale/incus/ (or TALE_INCUS_DIR), the Incus API with the stack's restricted certificate, and every instance of the stack that Incus left stopped after repeated crashes, shown with the last console lines Incus kept. It reads the console of a stopped instance only. tale incus check reads the whole node contract.

tale init [directory] — create a project: it scaffolds the example configs, AGENTS.md + a CLAUDE.md pointer, and a local-default .env (localhost, self-signed certificate, generated secrets). No Docker is needed, and the production domain and TLS are chosen later, at tale deploy. In a terminal it asks for a project name when directory is omitted, confirms before overwriting an existing project, and asks once whether agents may run docker inside sandboxes (default: no — enabling it runs a privileged inner Docker); non-interactive runs skip all prompts. directory is optional (default: the current directory).

  • -f, --force — overwrite an existing tale.json instead of aborting.
  • --no-env — scaffold the project but skip .env generation.
  • --runtime <engine> — declare the container runtime in tale.json: docker or incus. Without it, a new project declares nothing (Docker), and a re-initialized one keeps the runtime block it has.
  • --incus-project <name>, --incus-pool <name>, --incus-network <name>, --incus-subnet <cidr>, --incus-sessions-subnet <cidr> — required with --runtime incus: the Incus project, storage pool and bridge of the stack, the bridge's IPv4 subnet and the sessions' subnet.
  • --incus-endpoint <url>, --incus-gateway <address>, --incus-block <cidr>, --incus-ingress <mode>, --incus-listen <address> — optional with --runtime incus: the Incus API (default: the bridge gateway on port 8443), the bridge gateway (default: the subnet's first host), the /24 the CLI assigns addresses from (default: the subnet, when it is a /24), proxy-device (default) or routed, and the host address proxy devices listen on (default: every address).

tale dev — launch all services locally with a self-signed certificate. It runs on Docker only and refuses in a workspace that declares the Incus runtime. The selected host and port set the local application origin for this run, without rewriting the production settings in .env. Readiness waits for services with health probes to become healthy and the remaining services to be running. If startup times out, inspect the reported service logs before retrying.

  • -d, --detach — run in the background instead of streaming logs.
  • --stop — stop this project’s local development containers and preserve their data. Run tale dev again to resume.
  • -p, --port <port> — HTTPS port to expose (default 443).
  • --host <hostname> — host alias for the proxy (default localhost).
  • -y, --yes — non-interactive: auto-accept prompts (e.g. installing or starting Docker).

tale deploy — deploy the current CLI version with blue-green replacement of application roles. Shared execution services roll in place; database and proxy replacement needs --stop. On the first deployment from a terminal, while HOST in .env is still local, the CLI asks for the production domain and TLS email and saves them to .env. Read Upgrades before changing an existing installation.

  • --stop — also update the stop-gated tier (db, proxy) — recreates those containers, so accept a brief downtime; without it, running db/proxy are left untouched.
  • -s, --services <list> — update only these comma-separated services (default: all rotatable services).
  • --host <hostname> — serve this host for this run instead of HOST from .env, keeping the scheme and port of SITE_URL; .env is not changed. Containers this deploy does not recreate keep their host, so a running proxy needs --stop.
  • --override — overwrite container config from the host workspace (encrypted *.secrets.json and .history/ are always preserved).
  • --override-all — factory-reseed the builtin catalog into every org server-side; implies --stop. It asks for confirmation before the deploy changes anything, and needs --yes without a terminal.
  • -q, --quiet — suppress container logs during the deploy.
  • -y, --yes — auto-accept prompts (e.g. installing Docker or confirming --override-all).
  • --skip-backup — skip the automatic pre-deploy volume snapshot.
  • --configuration-only — with --bundle <directory> (required), apply only hot managed configuration (instructions, agent tools and models, review contexts, automations and project dispatch) to the exact healthy runtime of an already-ready deployment, skipping the pre-deploy snapshot and restart. Use it when only those resources change; runtime and identity inputs must stay unchanged, with no pending runtime rollout.
  • --dry-run — preview what would change without touching anything: .env and tale.json stay as they are, and the preview names what a real run would write there.
  • --plan-only — on the Incus runtime (a workspace, or --bundle <directory> of a managed deployment), print the plan of every Incus resource and change nothing; --json prints the plan itself. A workspace prints one plan per scope: volumes, infrastructure, stateful services and the colour it brings up.
  • --plan <file> — on the Incus runtime, apply the plan --plan-only --json printed, and only while the node still needs exactly it; a workspace checks every scope before it changes anything. With --bundle on Incus, --stop accepts the downtime the plan names; Docker Compose refuses both options.
  • --clear-sandbox-placement — on the Incus runtime, when the deployment no longer declares runtime.incus.sandboxHosts but the sandbox spawner kept its record of each session's host (the sandbox-state volume): delete that record once the spawner no longer mounts it. Without it such a deploy is refused; Docker Compose refuses the option.

Declare the container runtime

tale.json names the container runtime a workspace deploys on in runtime.engine: docker (Docker Compose) or incus. Without runtime, or with "engine": "docker", the workspace runs on Docker Compose, as every workspace did before the field existed. The runtime is a reviewed declaration, never a per-command flag: a deploy on the wrong runtime would build a second stack beside the first. A value this CLI does not know is refused rather than read as Docker, and so are an incus block without "engine": "incus" and that engine without its block. tale update keeps the block as it is.

Run a workspace on Incus. The CLI reaches the declared Incus API with the certificates in .tale/incus/ (client.crt, client.key and server.crt, mode 0600; TALE_INCUS_DIR moves them), and the sandbox spawner gets its own from .tale/sandbox-incus/; tale incus bootstrap writes both. A command that drives the stack refuses without them. Before it changes anything, tale deploy checks the node against the stack's contract, as tale incus check does without its forwarding probes, and refuses a project whose limits, profile, bridge or trust no longer fit (after a change of replica counts, run tale incus bootstrap again). It then converges the stack scope by scope: volumes, the resolvers and the traffic switch, the stateful services (a running db, object-store, proxy, resolver or switch keeps its image until --stop), then the idle colour. Each new replica takes traffic once the switch admits it; the old colour is then withdrawn, drained, stopped and deleted, and the switch is never reloaded. An interrupted flip resumes from where it stopped on the next tale deploy, and tale status says so. --services replaces the live colour's replicas one at a time. While a restore is pending, deploy, rollback, start and migrate refuse.

TALE_RUNTIME only guards the declaration: set to docker or incus, it makes a command refuse when the declaration names the other engine. It never selects an engine.

Move a Docker workspace to Incus. Declare the Incus runtime in runtime.next, run tale incus bootstrap (as root) and tale incus check, then tale runtime migrate --to incus (see below). The migration moves the deployment as it runs, at the same version and with the same .env, and then sets runtime.engine to incus; the Docker stack stays stopped until you remove it.

json
{
  "version": 1,
  "cliVersion": "0.5.95",
  "createdAt": "2026-11-12T00:00:00.000Z",
  "id": "acme-a3f1b2",
  "runtime": {
    "engine": "incus",
    "incus": {
      "endpoint": "https://10.30.0.1:8443",
      "project": "tale-acme",
      "pool": "tank",
      "network": {
        "name": "tale-acme",
        "subnet": "10.30.0.0/24",
        "gateway": "10.30.0.1",
        "block": "10.30.0.0/24"
      },
      "sessions": { "subnet": "10.31.0.0/24" },
      "ingress": { "mode": "proxy-device" },
      "volumes": { "db-data": { "size": "100GiB" } }
    }
  }
}
FieldWhat it declares
incus.endpointThe Incus API as https://<host>:<port>. Default: the bridge gateway on port 8443.
incus.project, incus.poolThe restricted Incus project the instances live in, and the storage pool of their volumes.
incus.networkThe bridge (name, at most 15 characters), its subnet and gateway, and the block: the /24 inside the subnet that the CLI assigns addresses from. The gateway is the block's first host or lies outside the block.
incus.sessions.subnetThe sandbox sessions' network, apart from the stack's subnet.
incus.ingressproxy-device (Incus publishes ports 80 and 443 on the host, on listen or on every address) or routed (your own forward reaches the proxy on port 80).
incus.registryMirror, incus.rootSizeThe registry host that stands in for Docker Hub, written as the remote URL carries it (mirror.gcr.io:443), and the root disk size of every instance (10GiB).
incus.registryMirrorsPer registry other than Docker Hub, the host that serves its repositories in its place, such as an air-gapped node's own registry ({"ghcr.io": "registry.internal:5000"}). Images stay pinned by the digest the mirror proved, and the project may pull only from the mirror.
incus.volumesPer data volume: its size, and its snapshots.* and zfs.* settings. No other setting may be declared.
incus.operatorReachDestinations outside the stack that its instances must reach (destination, protocol, ports), such as an inference router.
incus.sandboxHostsSeveral Incus hosts the sandbox spawner spreads its sessions over, in place of the one at endpoint: one to 64, each with a name, its endpoint, its own egressProxy and dns (on that host's sandbox network; a host without them is refused), and optionally its own project, profile, network, storagePool, maxSessions, poolSize and drained. Each host's restricted certificate, key and pinned server certificate are files in sandbox-incus/<name>/. Every host must give a session the same shape.
nextThe runtime tale runtime migrate moves the workspace to: engine (the one it does not run on yet) and that engine's block, such as "next": { "engine": "incus", "incus": { … } } on a Docker workspace. tale incus bootstrap, check and contract read it while the workspace still runs on Docker.

The certificates are files, never tale.json or .env: client.crt, client.key and server.crt in the workspace's .tale/incus/ (which .gitignore keeps out of Git), or in the absolute directory TALE_INCUS_DIR names. The directory must be closed to group and others (0700), and so must each file (0600); the CLI reads it on Linux and macOS. The server certificate must be one the connection can pin: its own trust anchor (CA:TRUE).

Managed deployments

Use a reviewed deployment specification when the runtime and client configurations must follow exact source commits. Deployment automation selects the destination, credentials and pins and calls the Tale CLI. The CLI acquires source, resolves and verifies image digests, prepares the transfer, preserves supported existing state, takes recovery snapshots when required, rolls the stack, provisions the native instance and verifies configuration content. Keep those deployment internals in Tale.

Prepare the runtime and source pins

Run preparation with a compiled CLI built from a clean, committed Tale checkout on Linux, matching the destination's linux/amd64 or linux/arm64 architecture. That same executable is included for backend-local provisioning. Preparation needs Git and Docker for source/image verification; applying runs on the destination with its local Docker daemon, retained state directory and environment. On the Incus runtime, preparation reads the images from their registries and applying drives the Incus API, so neither needs Docker. The full CLI commit, runtime source commit and client configuration source commit are separate pins. On the destination, the prepared runtime publishes only the proxy's ports 80 and 443 and the two databases on 127.0.0.1:5432 and 127.0.0.1:5433; the sandbox spawner (8003) and its device hub (8004) stay on the internal network, where the backend and the proxy reach them. A deployment that declares sandbox also publishes the backend API and the model gateway on one address.

A managed deployment records its recovery point before it changes anything: the pre-deployment snapshot and the bundle being applied, kept in the state directory until the ready receipt is written. An interrupted deployment therefore expects the same bundle on retry and refuses a different one, naming the pending bundle's sha256. When that bundle can no longer complete — a corrected CLI is now pinned, say — declare the named sha256 as supersedesPendingBundle in the deployment specification and prepare again: the reviewed bundle takes over the same snapshot, the ready receipt lists it under supersededBundles, and the declaration comes out afterwards. That takeover covers the deployment's recovery point, not a runtime rollout in progress. A rollout that stopped after verifying its images — at Compose startup or while waiting for health checks — resumes only with the same prepared runtime (runtime/runtime.json) and the same origin, TLS and environment settings; a bundle whose runtime or settings differ is refused, superseding or not, with A different runtime operation is pending; recover that exact operation first. Finish it with the bundle that started it before you move the CLI pin in either direction: a different CLI can prepare a different runtime from the same runtime commit. The backend-local phases (deploy provision, deploy export-client-native) run inside the backend as its own user, the owner of its data directory, and when one fails the deploy result repeats the inner CLI's own summary.

The pre-deployment snapshot also holds the model gateway's store, llm-gateway-data, which a newer gateway migrates forward-only the first time it starts on it. A pending deployment that changed nothing records no snapshot; a supersedesPendingBundle takeover of it, or a retry that would change the runtime, first takes the snapshot and records it with the pending deployment. A recovery point without the gateway store (a snapshot taken before the CLI captured it, or none after an older CLI's takeover) blocks any rollout that would start a gateway image the store has not run, as the runtime receipt and the gateway container record it: the apply is refused before anything changes, and the pending receipt stays as it was, because a snapshot taken now could already hold a migrated store. Do not remove the receipt. While no runtime rollout is pending, a reviewed bundle that still resolves the gateway image the deployment last ran can take it over with supersedesPendingBundle; the rollout after it takes a snapshot that holds the gateway store. Once a runtime rollout is pending, the CLI has no way forward for this state. A rollout on a gateway image the store has already run completes, and warns when its snapshot leaves the store out, or when it has no recovery point at all. A managed deployment never rolls back on its own and restores no volume; it keeps its pending state for recovery.

Managed bundle commands are unavailable on Windows, including deploy verify-bundle and backend-local deploy provision: their custody checks require POSIX executable modes. Run the complete managed deployment on a Linux host. Ordinary workspace commands and standalone config build, verify, stage, deploy and verify-native remain available on Windows.

This synthetic specification targets an existing organization and project. Replace its public identifiers and set the named environment values. revision accepts a full commit SHA directly or an environment reference; credentials remain references and are resolved privately at the destination. tlsMode: "external" means an existing edge handles public TLS; letsencrypt additionally requires tlsEmail.

For Linux or macOS ARM64 GitHub Actions jobs, use Tale's .github/actions/setup-cli composite action. Pin the action itself to a full Tale commit and pass that full commit as its revision input. It builds with Bun 1.4.2, verifies the final executable, returns executable and adds the binary to PATH. macOS builds support general configuration preparation; managed Linux stack preparation still requires a matching Linux executable. Set linux-baseline: 'true' on a Linux x64 runner when the destination CPU lacks AVX2 (Intel before Haswell, for example): the default executable aborts there with Illegal instruction; the baseline one runs. Other runners refuse the option.

origin and individual native redirectUris can also use environment references, so a deployment registry can own public addresses. Preparation resolves them to literal validated HTTPS URLs in the bundle.

The example sets runtime.containerPrefix to make its environment recognizable in container listings. This optional setting is explained below.

json
{
  "schemaVersion": 1,
  "name": "example-native",
  "stateDirectory": "/opt/tale-example",
  "composeProject": "tale-example",
  "runtime": {
    "revision": { "env": "TALE_RUNTIME_REF" },
    "platform": "linux/amd64",
    "containerPrefix": "north-desk-prod"
  },
  "origin": { "env": "TALE_PUBLIC_ORIGIN" },
  "tlsMode": "external",
  "identity": {
    "email": { "env": "EXAMPLE_OPERATOR_EMAIL" },
    "password": { "env": "EXAMPLE_OPERATOR_PASSWORD" },
    "slug": "example-team",
    "name": "Example team",
    "ssoEnabled": false,
    "nativeClients": [
      {
        "key": "example-portal",
        "name": "Example portal",
        "clientId": { "env": "EXAMPLE_NATIVE_CLIENT_ID" },
        "redirectUris": [{ "env": "EXAMPLE_PORTAL_CALLBACK" }]
      }
    ]
  },
  "configs": [
    {
      "repository": "https://github.com/example-team/client-app",
      "revision": { "env": "EXAMPLE_CONFIG_REF" },
      "client": "example-team",
      "descriptor": "tale/client.json",
      "automation": "document-review",
      "projectId": "existing-project-id",
      "skillOwner": "native-operator-id"
    }
  ]
}

Choose the error reporting environment

Managed runtime events default SENTRY_ENVIRONMENT to the retained deployment name. To use a canonical label such as example-pr, declare "environment": { "SENTRY_ENVIRONMENT": { "env": "TALE_REPORTING_ENVIRONMENT" } } and set that variable at the destination. The label starts with a lowercase letter or digit and contains 1–64 lowercase letters, digits or hyphens. Browser, backend and sandbox use this label without changing name, composeProject, stateDirectory or stored credentials.

Choose container names

Set runtime.containerPrefix when you want names such as north-desk-prod-db and north-desk-prod-backend-api in container listings. The prefix starts with a lowercase letter and uses lowercase letters, digits and single hyphens, up to 40 characters. Spaces, underscores, repeated hyphens and a trailing hyphen are refused.

SettingWhat it identifies
runtime.containerPrefixVisible container names: <prefix>-<service> for every managed service.
name and composeProjectThe retained deployment and its Compose project, including volume ownership.
stateDirectoryThe existing deployment state, credentials and recovery records.

Keep the last two rows unchanged when renaming an existing deployment's containers. The prefix leaves service DNS names unchanged, so internal service addresses continue to use their existing names. Omit it to use the source's container naming policy.

Adding, changing or removing a prefix recreates containers and can briefly interrupt service. Prepare a new bundle, review its dry run, then apply it through the normal snapshot and recovery flow. If application is interrupted, retry that exact bundle; a pending rollout refuses a different bundle. Once the rollout is ready, removing the prefix through another prepared bundle restores the source naming policy.

Run one complete managed runtime per Docker daemon. A name prefix does not allocate separate ports, sandbox networks or host workspaces.

Declare the Incus runtime

Run Tale on Incus walks through the node, the contract and the limits of this experimental runtime. A deployment specification names its container runtime with the same fields as a workspace's tale.json: runtime.engine (docker, the default, or incus) and, with incus, the runtime.incus block. Every text value in the block may be a literal or an environment reference (a port stays a number); preparation resolves the references and records the values in deployment.json, and an optional reference whose variable is unset leaves its field out. With "engine": "incus", runtime.containerPrefix is refused, because the runtime names its instances itself, and sandbox is required as { "backend": "incus" } without address, because the spawner is one of the stack's instances. sandbox.egressProxy may still name an operator's egress; without it, sessions use the stack's own. The certificates live in <stateDirectory>/incus/, beside <stateDirectory>/sandbox-incus/. A bundle for the Incus runtime records "runtime": "incus" in runtime/runtime.json and carries runtime/incus-stack.json, so a CLI that predates the field refuses it.

Preparing and applying on Incus. tale deploy prepare reads every image from its registry and needs no Docker daemon. The sandbox runs in its Incus shape on the stack's address plan and publishes no port. runtime/incus-stack.json holds the compiled stack: every instance, image, volume, file and address, with the environment's names but none of its values. tale deploy --bundle checks the node against the stack's contract (tale incus check also runs the forwarding probes). It compiles the stack again from the deployment's own .env and refuses one that differs from the prepared stack. Then it plans and applies, reads every instance back and records the same .tale/runtime.json receipt as on Docker. --plan-only prints the plan and changes nothing; --plan <file> applies a reviewed plan only while the node still needs exactly it, and --stop accepts the downtime the plan names. A replica that platform or backend-api runs alone is replaced in place: until the new one answers, the edge serves its maintenance page, as Docker Compose's recreate does, and the plan says so. The deploy refuses while a restore is pending. A changed existing deployment on Incus is refused for now, because the CLI cannot take its recovery snapshot on Incus yet.

Serve additional origins

Declare additionalOrigins when the same instance also answers on other HTTPS origins, such as a partner domain or the previous hostname during a move. Each entry is a bare HTTPS origin on the default port, or an environment reference that preparation resolves to one. List 1 to 16 distinct origins; none may repeat origin.

json
{
  "origin": "https://desk.example.org",
  "additionalOrigins": [
    "https://desk.partner.example",
    { "env": "TALE_EXTRA_ORIGIN" }
  ]
}

The CLI writes the list to the runtime's ADDITIONAL_SITE_URLS and manages that variable, so an environment entry cannot set it. Every origin is a full entry point with its own sessions, file links, sign-in doors and connector callbacks. With tlsMode: "letsencrypt", the proxy obtains a certificate for each origin, and local hostnames or IP addresses are refused. With tlsMode: "external", your TLS proxy must forward each origin's original Host and send X-Forwarded-Proto: https from an address the Tale proxy trusts. When that address range is narrower than the private ranges, set TRUSTED_PROXIES through an environment reference.

The native identity stays on origin: account and organization bindings, client journals, the OIDC issuer, passkeys and email links use it alone. An entry may equal identity.migrateOriginFrom to keep the previous hostname answering while a migration completes.

Preparation refuses a runtime revision whose proxy cannot trust an external TLS terminator and reports Runtime does not serve additional origins. Adding, changing or removing the list recreates the services that read it. After you remove the declaration, applying the next bundle removes the variable. Register each origin's callback URLs with your identity and connector providers, and plan DNS and certificates with TLS and domains.

Name who may create organizations

A managed deployment refuses organization creation at its proxy for everyone: the organization picker shows no Create organization entry, and POST /api/auth/organization/create answers 403. To let named people open further workspaces, declare organizations.creators — 1 to 64 distinct sign-in addresses, literal or as environment references that preparation resolves.

json
{
  "organizations": {
    "creators": ["ops@example.org", { "env": "TALE_WORKSPACE_LEAD" }]
  }
}

The CLI writes the list to the runtime's TALE_ORGANIZATION_CREATORS and manages that variable, so an environment entry cannot set it. With the declaration in place the proxy no longer refuses organization creation; the backend judges every caller against the list instead, answers anyone else with 403 ORGANIZATION_CREATION_FORBIDDEN, and the app shows Create organization only to the people named. Addresses are matched case-insensitively, so two spellings of one address are refused as a duplicate.

The managed organization itself is unaffected: the deployment creates it during bootstrap, and a deployment's first organization is always allowed. Remove the declaration and apply the next bundle to restore the proxy refusal and remove the variable. The same variable works on a deployment you run yourself; see the environment reference.

The sandbox under each runtime

Where sessions run follows the stack's runtime and the sandbox declaration:

Stack runtimesandboxWhere sessions run
Docker (runtime.engine absent or docker)absentDocker containers on the stack's host, through its Docker socket
Docker{ "backend": "incus", "address": … }Incus containers on a separate Incus node, described below
Incus (runtime.engine incus){ "backend": "incus" }, requiredIncus containers in the sessions' project beside the stack

When the whole stack runs on Incus, the spawner is one of the stack's instances and sandbox takes no address: sessions reach the backend API through the stack's switch and the model gateway at their addresses on the stack's bridge. The CLI sets SANDBOX_BACKEND=incus, the image variables, SANDBOX_INCUS_ENDPOINT (from runtime.incus.endpoint), SANDBOX_INCUS_DNS (the sessions' resolver) and SANDBOX_EGRESS_PROXY (sandbox.egressProxy, else the stack's own sandbox-egress). Declare SANDBOX_INCUS_PROJECT, SANDBOX_INCUS_PROFILE, SANDBOX_INCUS_NETWORK and SANDBOX_INCUS_STORAGE_POOL in environment, as Declare the runtime shows. The spawner's certificate lives in <stateDirectory>/sandbox-incus/, which tale incus bootstrap --spec fills. The rest of this section describes a stack on Docker whose sessions run on an Incus node.

With several sandbox hosts (runtime.incus.sandboxHosts), the CLI sets SANDBOX_INCUS_ENDPOINTS instead of SANDBOX_INCUS_ENDPOINT and the three certificate files: one entry per declared host, its certificate files at /run/secrets/incus/<name>/. Place each host's client.crt, client.key and server.crt in <stateDirectory>/sandbox-incus/<name>/ (in a workspace, .tale/sandbox-incus/<name>/), held to the same custody as the one host's. The spawner also gets a data volume, sandbox-state, at /var/lib/tale-sandbox/incus (SANDBOX_INCUS_STATE_DIR), where it records the host each session lives on, so a session is only ever resumed on its own host. A stack that ran without the list takes it on a later deploy: the volume starts empty, and the spawner rebuilds its record from every host's listing before it places a new session. Each host declares its own egressProxy and dns: the stack's own proxy and resolvers sit on the first host's network, which another host's sessions cannot reach. Without the list, nothing changes.

Take the list with the one host in it. A stack that ran with the one host keeps its sessions in the list only through an entry with that host's endpoint and project (an entry without project takes SANDBOX_INCUS_PROJECT): the spawner rebuilds its record from the hosts it lists, so sessions on a host the list leaves out would come back with an empty workspace. A deploy that takes the list without such an entry is refused before anything changes, --dry-run and --plan-only included, and the message names the old endpoint and project. The CLI reads them from the running spawner and keeps them in the stack's Incus journal (.tale/incus/runtime.json), so a deploy that finds no spawner, as a crash part-way leaves, is held to them too. No flag overrides this: declare the matching entry, or leave those sessions on purpose with tale reset --all.

Keep the list once you have it. The list takes a single host, so a stack that ran several keeps the list form, and its record, when it is down to one. Going back to the single form (no sandboxHosts) while the stack keeps a sandbox-state volume is refused: the sessions the one host makes would be missing from the record, and a later list could place one of them on another host, where it comes back with an empty workspace. tale deploy --clear-sandbox-placement clears the record explicitly: it deletes the volume after the deploy, once the spawner runs without the list and no longer mounts it (one a spawner still mounts is kept, with a warning).

The sandbox spawner normally drives the Docker socket of the host that runs the stack. Declare sandbox to run it against an Incus node instead: every session becomes an Incus container in one restricted project of the node, and the spawner container mounts neither the Docker socket nor the host's session directory. The Incus backend is experimental and first shipped in Tale v0.5.91; preparation refuses an older runtime revision with Runtime source predates the Incus sandbox backend. A deployment without sandbox is prepared and applied as before, with one exception: every apply removes SANDBOX_BACKEND=incus and the SANDBOX_INCUS_* variables from the managed .env file, unless the environment declares them, so that a deployment that returns to Docker keeps none of the Incus settings.

json
{
  "sandbox": {
    "backend": "incus",
    "address": "10.200.50.2",
    "egressProxy": { "env": "TALE_SANDBOX_EGRESS_PROXY" }
  }
}
KeyWhat it declares
backendAlways incus.
addressThe IPv4 address of the Docker host that sessions on the node dial to reach the backend API (port 3005) and the model gateway (port 8080). The runtime publishes those two ports on this address and on no other.
egressProxyThe proxy that sessions send their outbound traffic through, written http://<IPv4 address>:<port>, with a port from 1 to 65535 other than 80, the default port of http, which a URL leaves out. A session resolves no name before it reaches the proxy, so a host name is refused.

address and egressProxy may each be an environment reference that preparation resolves, like origin. Both are unicast IPv4 addresses in plain dotted form: 0.0.0.0, loopback, link-local, multicast and reserved addresses, host names, IPv6 and spellings with leading zeros are refused, and so is a proxy URL with an https scheme, without a port or with port 80, or with a path, a query or credentials. The resolved values are recorded in deployment.json and in the runtime bundle, and the apply refuses a runtime prepared with other values than the specification declares, or with none. A CLI that predates the field refuses the specification as an unknown key.

The spawner reaches the node with a client certificate restricted to its project and pins the node's server certificate. Place the three PEM files in <stateDirectory>/sandbox-incus/ as client.crt, client.key and server.crt: the deployment automation writes them, never the CLI. The CLI mounts that directory read-only at /run/secrets/incus and points SANDBOX_INCUS_CLIENT_CERT_FILE, SANDBOX_INCUS_CLIENT_KEY_FILE and SANDBOX_INCUS_SERVER_CERT_FILE at the files. Before it touches Docker, in a dry run too, the apply checks their metadata and never opens them. The directory must be a real directory owned by root or by the account that runs the CLI, closed to group and others (mode 0700), below ancestors that no other account can write or replace. Each file must be a regular file with a single link, owned the same way, closed to group and others (mode 0600), not empty and no larger than 2,000,000 bytes. A refusal names the path and never any content. The spawner reads the files once at start, so restart it after you replace one.

For the sandbox service the CLI sets SANDBOX_BACKEND=incus, SANDBOX_INCUS_IMAGE (the alias tale-sandbox-runtime- followed by the first 32 hexadecimal digits of the runtime image's digest), SANDBOX_INCUS_IMAGE_SOURCE (that image's digest reference, which the node pulls while the alias is missing), the three file paths and SANDBOX_EGRESS_PROXY. It removes SANDBOX_RUNTIME, SANDBOX_EGRESS_NETWORK and SANDBOX_HUB_PORT, which do not apply under Incus. The alias carries part of the digest because the spawner never pulls an alias that already exists: a new runtime image needs a new alias. These ten variables belong to the CLI, so a specification that declares sandbox is refused when its environment names any of them. Declare the rest in environment as usual: SANDBOX_INCUS_ENDPOINT, SANDBOX_INCUS_PROJECT, SANDBOX_INCUS_PROFILE, SANDBOX_INCUS_NETWORK, SANDBOX_INCUS_STORAGE_POOL, SANDBOX_MAX_SESSIONS and the others in the environment reference. The Incus contract lists what to create on the node.

With the declaration, backend-api is published on <address>:3005 and sandbox-llm-gateway on <address>:8080; no other service's ports change. The address must exist on the Docker host when its containers start, and the node's network ACL must let sessions reach those two ports on it. Sessions use the declared proxy, not the stack's sandbox-egress service, which keeps running. Connected devices and the shared build cache do not apply, and Docker inside a session stays off unless you set SANDBOX_DOCKER_IN_CONTAINER=true. The Incus shape needs a POSIX host, like every managed bundle command.

Change the declaration and apply a new bundle to move a running deployment from the Docker backend to Incus, or back. The apply recreates the sandbox container, and a session outlives its spawner while only the backend that created it can see it, so the apply first stops the outgoing spawner from taking new sessions and reads how many it still holds, for up to five minutes. If any remain, it refuses and names their number and the outgoing backend, never their identifiers. The runtime has pulled and written nothing at that point, but the first attempt has already taken the deployment's recovery snapshot and recorded the bundle as pending, as for any interrupted deployment. Only that same bundle applies again, and it takes no second snapshot; any other bundle is refused until it declares the pending bundle's sha256 as supersedesPendingBundle. While it drains, the spawner ends sessions that outlast its linger (SANDBOX_SESSION_MAX_LINGER_MS, 30 minutes by default): apply the same bundle again after that. To give up the switch, restart the spawner, which lifts the drain, and apply a bundle for the backend you keep that declares the pending bundle as supersedesPendingBundle; once that apply is ready, remove the declaration and prepare again. A spawner that is not running cannot say whether it holds sessions; start it, or remove its container to abandon them, and apply again. The drain stops and deletes nothing, and the CLI deletes no session, volume or directory; the credentials directory stays in place after a switch back to Docker for the deployment automation to remove. Compose replaces the sandbox, backend-api and sandbox-llm-gateway containers, because their mounts, environment or published ports change. A dry run says that the backend changes and that the apply drains first, and drains nothing. Every apply, a switch or not, removes the variables of the other backend from the .env file; a specification for the Docker backend keeps the ones it declares in environment.

Prepare, verify, and apply the bundle

Set TALE_DEPLOY_SPEC to that file, TALE_DEPLOY_BUNDLE to a new absolute output directory, and TALE_CLI_COMMIT to the compiled CLI's full commit. DEPLOYMENT_COMMIT is optional orchestration provenance; omit its flags when unused. The spec is JSON, or the same declaration as YAML in a file whose name ends in .yml or .yaml: YAML is read as version 1.2, refuses a key written twice and any alias, and means exactly what the JSON of the same declaration means; the same applies to a configurationSource file. Prepare and verify, transfer the whole directory to the destination, then preview and apply there with the same pinned CLI.

bash
tale --json deploy prepare \
  --spec "$TALE_DEPLOY_SPEC" \
  --deployment-ref "$DEPLOYMENT_COMMIT" \
  --output "$TALE_DEPLOY_BUNDLE"

tale --json deploy verify-bundle \
  --bundle "$TALE_DEPLOY_BUNDLE" \
  --cli-ref "$TALE_CLI_COMMIT" \
  --deployment-ref "$DEPLOYMENT_COMMIT"

tale --json deploy --bundle "$TALE_DEPLOY_BUNDLE" \
  --cli-ref "$TALE_CLI_COMMIT" \
  --deployment-ref "$DEPLOYMENT_COMMIT" --dry-run

tale --json --yes deploy --bundle "$TALE_DEPLOY_BUNDLE" \
  --cli-ref "$TALE_CLI_COMMIT" \
  --deployment-ref "$DEPLOYMENT_COMMIT"

deploy prepare accepts optional --sources-file <file> mapping repository@fullSHA to an existing exact checkout. Otherwise it fetches canonical GitHub repositories. Inject the read-only private-client SSH key contents through TALE_SOURCE_SSH_KEY only during preparation; the CLI verifies GitHub's SSH host keys over HTTPS and keeps the key out of the bundle and runtime. Registry access must already be available to Docker.

Preparation checks each configuration first, with this CLI's own schemas, and only then pulls and verifies the runtime images. It names each phase and image as it goes. A pack that declares fields this CLI does not know is refused within seconds with native manifest normalization changes release semantics at <fields>; prepare it with a CLI at least as new as the Tale the pack targets. A failure the CLI raises deliberately shows its own cause. Any other error keeps a fixed summary, so no credential or registry output reaches the log.

deploy verify-bundle checks the complete file inventory and hashes without a destination. deploy --bundle --dry-run checks configuration artifacts and destination preconditions without applying changes. Managed bundle deployment does not accept workspace-only overrides such as --services, --host or --override-all. It is a state-preserving stack rollout with health and provenance checks; the workspace blue-green behavior described above is a separate path.

Verify the current deployment

After the exact bundle has completed, collect a fresh acceptance receipt on the deployment host:

bash
tale --json deploy accept --bundle "$TALE_DEPLOY_BUNDLE" \
  --cli-ref "$TALE_CLI_COMMIT" --deployment-ref "$DEPLOYMENT_COMMIT" \
  --expected-version "$TALE_RELEASE_VERSION"

Both source commits are required for acceptance; the bundle must have been prepared with --deployment-ref. Set TALE_RELEASE_VERSION to the independently selected published version, without its v prefix. The CLI holds the existing deployment lock and reads the Ready receipt, current containers, pinned images, and all three migration ledgers. It compares the frontend’s /api/health and the API’s /api/health/ready at the canonical HTTPS origin with fresh process identities read directly from their captured local containers, then rereads those identities. Missing identities or a different server process are refused even when the version matches. Every Tale image’s OCI version and source must agree with the bundle. An image’s sourceTag may be sha-<source>; it is reference metadata, not the served version.

The JSON result contains source pins, bundle and Ready hashes, image identities, the canonical origin and both serving process identities, and complete source-derived migration IDs with inventory hashes. Application SQL and numbered TypeScript data migrations are both included. Missing, extra, duplicate or unfinished migrations, pending deployment state, version drift and identity changes are refused. These public process identities correlate a local container with an origin response; they are not credentials or authentication proof.

Docker and HTTPS observations have individual cancellation limits and share a 120-second elapsed budget checked at observation boundaries. Bundle verification, the owned temporary copy and cleanup use the existing size limits (2 GiB total, 256 MiB per file); filesystem waits are not covered by a cancellable whole-command deadline. Use an external process supervisor when a whole-command deadline is required. Acceptance does not apply configuration, restart containers, run migrations or export credentials. It changes lock metadata and creates and removes its private temporary bundle copy.

Older bundles remain deployable, but acceptance requires both a source-derived migration inventory and compatible servers that publish process identities. Prepare and complete a reviewed bundle through the normal deployment flow before collecting its acceptance receipt. A receipt proves the observed state at its timestamp; it does not guarantee later routing or server state. Repeat acceptance when fresh evidence is needed.

Observe retained state before a rollout

tale --json deploy observe --spec <file> --cli-ref <sha> --deployment-ref <sha> --machine-id-sha256 <digest> collects runtime image identities, migration inventories, corpus and disk metadata, and retained native configuration proof. Run the pinned compiled CLI on the admitted Linux host with its local Docker socket. Supply private JSON on stdin as {"environment":{"UPPERCASE_ENV_NAME":"value"}}, containing only the variables the reviewed specification needs; ambient variables are not a fallback. Input is limited to 64 KiB, 128 keys and 8192 bytes per value.

The observer reuses existing credentials and exact retained account and organization IDs. It reads preserved pack bytes without compiling them again, verifies current native versions, assets and owned-skill owners, and rechecks custody and container identities. It creates only temporary tooling and authentication sessions, then removes the tooling and signs out. It does not provision identities, prepare or apply configuration, migrate, restart, prune or acquire the cutover lock. Docker and native reads are bounded; supervise the command externally to bound filesystem waits too.

A complete observation returns ok:true and data.complete:true. Missing legacy custody or ownership returns available host/database facts with ok:false, data.complete:false, an authored reason code and exit 3; retain that report for investigation. Malformed input, mismatched identities or changed state refuse the observation. Neither result is Ready acceptance, permission to cut over, nor proof that packs will survive a future deployment. Use the normal reviewed deployment and acceptance flow for those decisions.

Provision the native identity

deploy provision [--bundle <directory>] is the backend-local phase normally invoked by bundle deployment. It reads at most 64 KiB of private JSON from stdin, proves the local account and selected organization, and always signs out before reporting success. Because stdin carries that JSON, the command cannot ask for confirmation and requires --yes, which bundle deployment passes for you. Without it, the command stops with exit code 4 before it signs in or changes anything. Its fields include origin, email, password, slug, name, ssoEnabled, optional Entra credentials or an OpenID Connect block, and nativeClients. Existing-account behavior remains the default. An explicit identity.bootstrap: "fresh" permits creation of the initial local account and organization. A bundle binds this choice and the staged configurations before native changes. deploy provision refuses workspace flags and --dry-run; use read-only bundle/config verification for review. Its optional --cli-ref and --deployment-ref expectations require --bundle and are checked before login.

Bundle deployment invokes deploy provision with internal options for configuration-only updates and retained identity checks; use tale deploy --bundle <directory> --configuration-only for this operator workflow.

For an administratively verified fresh operator, explicitly declare identity.emailVerification: "operator-attested". This is an operator assertion of the authenticated account’s email ownership, not proof of mailbox delivery. The backend uses a short-lived native verification token bound to that exact account and email, retaining native hooks without sending email, changing the address or creating another session. It is permitted only with bootstrap: "fresh". Omit it to retain normal native email verification. A previously ready account whose verification changes holds for review.

For a fresh target, replace a config's projectId with project: { "key": "NORTH", "name": "Configuration" }. Native project keys have 2–6 uppercase letters and names at most 80 characters. skillOwner: "operator" transfers a verified source capsule and compiles it for the authenticated native user inside the backend; the host independently checks the resulting artifact. Existing explicit IDs and owner-bound releases retain their exact behavior.

Each native client chooses an existing clientId or explicit managed: true. Managed creation persists its private intent before the native request, then returns only a private handoff path and SHA for client credentials. Replays preserve IDs, security policy and secrets; uncertain request acceptance without a matching native object holds. Existing clients converge only their display name and HTTPS callback URLs. On maintained 0.5 backends, necessary create/update operations use fixed backend-local auth adapters and close their connections. This enables no public registration/update route, arbitrary module path or secret rotation.

Change a managed deployment’s hostname

Use the retained managed deployment and its private state directory. This changes the origin bindings of the existing account, organization and clients; it does not move a database or create replacement identities.

  1. Set the deployment specification’s origin to the new HTTPS origin and identity.migrateOriginFrom to the exact previous HTTPS origin, for example https://old.example.org. The two origins must differ. Keep identity.bootstrap: "fresh", the same account and organization, and the same managed client keys.
  2. Check the retained state before preparing the bundle. Bootstrap must be complete. Every declared email attestation and managed client needs its matching completed journal. Missing, pending or unrelated identity/client journals block migration.
  3. Prepare, verify, preview and apply the bundle through the workflow above. The CLI authenticates the retained account and verifies client credentials before updating origin bindings. Completed journals at either declared origin are accepted on retry, preserving IDs and secrets.
  4. After the deployment receipt is ready, export consumer configuration for the new issuer. Remove migrateOriginFrom from future deployment specifications.

When native configuration is declared, its retained receipt is required too. Migration preserves the organization ID and slug and checks every resource through the normal plan and readback flow. An interrupted configuration write at the new origin resumes only its exact pending plan. A pending configuration receipt at the old origin blocks migration.

To reverse a completed migration, explicitly swap the two origins and repeat the verified deployment workflow. Plan DNS, certificates, callback registrations and access checks with TLS and domains; changing the bundle origin does not perform those external changes.

Rename the deploy operator’s address

A managed deployment signs in as its identity operator on every run. To give that account a machine address, so that people sign in with accounts of their own, keep the account and change only its sign-in address. Its user ID, and everything bound to it — managed clients, operator-owned skills, API keys and retained journals — stays.

  1. Set identity.email to the new address and identity.migrateEmailFrom to the exact previous address. The two must differ. Keep identity.bootstrap: "fresh" and the account’s password. Bootstrap must be complete, and a declared email attestation needs its completed journal.
  2. Prepare, verify, preview and apply the bundle. The CLI reads the retained account’s current address inside the backend, signs in with it and proves the retained user ID. It journals the change, renames the account through the native adapter, ends every session the account holds and signs in again with the new address. The rename is guarded by the previous address, so a concurrent change is refused rather than overwritten. A declared email attestation then verifies the new address.
  3. A retry after an interruption finds the address already moved and completes the journals without a second rename. Keeping migrateEmailFrom declared afterwards is harmless; remove it once the deployment receipt is ready.

Another account holding the new address, a retained account holding neither address, or a single sign-on link on the operator account stops the deployment before any change. Remove such a link first: it belongs to the person who signed in with it, not to a machine account.

Declare a break-glass administrator

identity.breakGlass keeps one administrator for when the deploy operator is unavailable, for example { "email": "break-glass@example.org", "passwordHash": { "env": "TALE_BREAK_GLASS_PASSWORD_HASH" } }. The address is a literal or a required environment reference and must differ from the operator’s current and previous address. The password never reaches the deployment: create its hash where the password is kept, with tale auth hash-password, and supply only the hash.

Every deployment makes the backend match the declaration. An absent account is created with a verified address and exactly the declared credential, and a retained journal binds the address to its account ID as soon as the account exists. Later deployments set the bound account back to the declared credential and end every session it held whenever the credential changes, also when they finish an interrupted run. An account at the address that this deployment did not create, or a different account holding it later, stops the deployment. The account becomes an admin of the managed organization through the native member endpoints; an owner is never changed. The deployment never signs in as this account. Rotate its password by changing the declared hash, not in the application. The deployment records no password-change time, so an organization password rotation policy may ask this account for a new password, which the next deployment sets back.

Sign people in through an OpenID Connect provider

identity.ssoEnabled turns the organization's single sign-on connection on or off. With Microsoft Entra ID the connection comes from identity.tenantId, identity.clientId and identity.clientSecret. For any other provider that speaks OpenID Connect — ZITADEL, Keycloak or Okta, for example — declare identity.oidc instead:

json
{
  "identity": {
    "ssoEnabled": true,
    "oidc": {
      "displayName": "Example sign-in",
      "issuer": "https://id.example.org",
      "clientId": { "env": "EXAMPLE_OIDC_CLIENT_ID" },
      "clientSecret": { "env": "EXAMPLE_OIDC_CLIENT_SECRET" },
      "claimMappings": { "email": "upn" },
      "trustEmail": true
    }
  }
}
FieldMeaning
issuerThe provider's issuer URL: HTTPS, no trailing slash, query or fragment (plain HTTP is accepted for a loopback address only). A literal or an environment reference. Tale discovers the endpoints from it.
clientId, clientSecretThe application's credentials, as environment references. A bundle carries the names and never the values.
displayNameWhat people see on the sign-in page. Default OpenID Connect.
scopesThe requested scopes. Default openid, profile and email.
pkceWhether the sign-in uses PKCE. Default true.
claimMappingsThe claim names, as dot paths, that carry the email, name and groups. Declare at least one or omit the block. A claim whose own name contains dots, such as https://example.com/roles, is read as written.
trustEmailMarks the address of the mapped email claim as verified at sign-in. Default false. It needs claimMappings.email.

The connection is written like the Entra one: new members get the member role, and roles and teams are not assigned from the provider. People are matched to the members Tale already has by the address in the email claim. When you map that claim, the provider must send it: a sign-in whose answer lacks it is refused, and Tale never falls back to the plain email or preferred_username claim, which a person may be able to edit at the provider. Without a mapping, Tale reads email and then preferred_username, as for any generic OIDC connection. An address that no account on the deployment holds creates a new member, as it does with Entra; an address held by an account that is not a member of the organization is refused and nothing is changed.

trustEmail is for a provider whose mapped claim an administrator writes and a person cannot change. Tale's own OpenID Connect issuer and the consent step of coding agents accept only members whose address is verified, and an address that signed in through Entra already counts as verified. The flag applies to the mapped claim alone, and the connection refuses it without one.

The claim requirement and trustEmail are enforced by the backend, so they apply once the deployment's runtime revision includes them. An older runtime falls back to the plain email claim and ignores trustEmail. A CLI that predates the field refuses a declaration that uses identity.oidc.

Declare both the Entra fields and identity.oidc when the same declaration serves hosts that hold different providers' credentials. Then every reference of both blocks, the issuer included when it is a reference, must be optional:

json
{
  "identity": {
    "ssoEnabled": true,
    "tenantId": { "env": "EXAMPLE_ENTRA_TENANT_ID", "optional": true },
    "clientId": { "env": "EXAMPLE_ENTRA_CLIENT_ID", "optional": true },
    "clientSecret": { "env": "EXAMPLE_ENTRA_CLIENT_SECRET", "optional": true },
    "oidc": {
      "issuer": { "env": "EXAMPLE_OIDC_ISSUER", "optional": true },
      "clientId": { "env": "EXAMPLE_OIDC_CLIENT_ID", "optional": true },
      "clientSecret": { "env": "EXAMPLE_OIDC_CLIENT_SECRET", "optional": true }
    }
  }
}

The destination's environment selects the block. It is the block whose credentials resolve. The deployment stops before anything changes when both blocks resolve, when neither does, or when a block resolves in part; the message names the variables. An issuer reference that resolves without its client credentials does not make a destination the provider's.

A declaration that names identity.oidc also manages the connection that is already there. It reads it first and recognizes two connections as its own: the managed Entra connection, and the generic OpenID Connect connection for the declared issuer. It replaces either by the other, and ssoEnabled: false removes either. Any other connection — another provider, another issuer, or an issuer this host does not provide — stops the deployment with a message that names the provider, and nothing is written or removed. A declaration without identity.oidc keeps its earlier behavior and recognizes only the managed Entra connection.

Enforced two-factor sign-in

A managed deployment signs in as its operator with the password alone. When the organization enforces two_factor_policy, give the operator a passkey and never an authenticator app: a password sign-in of an account with an authenticator app is answered with a challenge, and an account with neither factor is held at enrolment once its grace period ends. The CLI stops at either answer and names the one it received. People sign in with their own accounts and may use either factor.

Export native-client credentials

To hand a managed client’s credentials to a separate application, set NATIVE_CLIENT_KEY to its declared key and PRIVATE_EXPORT_DIRECTORY to a new private output directory. Its parent must already belong to your account, have mode 0700 and have trusted ancestors. Export from the same ready deployment without interpreting backend paths or container names:

bash
tale --json deploy export-client --bundle "$TALE_DEPLOY_BUNDLE" \
  --client "$NATIVE_CLIENT_KEY" --output "$PRIVATE_EXPORT_DIRECTORY" \
  --env-prefix TALE_OIDC --cli-ref "$TALE_CLI_COMMIT" \
  --deployment-ref "$DEPLOYMENT_COMMIT"

The output directory has mode 0700. Its regular 0600 files are client.json, receipt.json and, when --env-prefix is selected, consumer-env.json. The latter is a literal four-string map: TALE_OIDC_ISSUER, TALE_OIDC_CLIENT_ID, TALE_OIDC_CLIENT_SECRET and TALE_OIDC_ORG_SLUG. The issuer is the Tale origin followed by /api/auth. Transfer these bytes through your private credential channel and let the application read JSON; do not source the file as shell or publish it as a CI artifact. Stdout contains only safe metadata, paths, sizes and hashes. An identical export is reused only after current ready-state and complete artifact checks; partial, stale or foreign output holds without overwrite.

Configure the platform

Use tale config to manage existing platform settings through the native APIs. Save this declaration as configuration.json to set the accent color and a 45-minute idle timeout:

json
{
  "schemaVersion": 1,
  "resources": [
    {
      "kind": "branding",
      "config": {
        "accentColor": "#336699"
      }
    },
    {
      "kind": "governance",
      "key": "session_idle_timeout",
      "config": {
        "enabled": true,
        "idleTimeoutMinutes": 45
      }
    }
  ]
}

Set TALE_URL to the instance’s HTTPS origin and TALE_ORG_ID to the native organization ID. Provide an authorized session cookie through TALE_CONFIG_COOKIE; keep it out of arguments and committed files. Validate locally, save and review the plan, then apply it and compare native state:

bash
tale --json config validate --file configuration.json
tale --json config plan --file configuration.json \
  --url "$TALE_URL" --org "$TALE_ORG_ID" --output configuration-plan.json
tale --json --yes config apply --file configuration.json \
  --url "$TALE_URL" --org "$TALE_ORG_ID" \
  --plan configuration-plan.json --receipt configuration-receipt.json
tale --json config read --file configuration.json \
  --url "$TALE_URL" --org "$TALE_ORG_ID"

The output and receipt directories must already exist. A loopback HTTP connection also needs --origin with the instance’s public HTTPS origin. read reports matches for each declared resource. The plan identifies organization versus instance scope, current and desired hashes, and native side effects. Applying requires the exact declaration and target; a conflicting native edit refuses the write instead of overwriting it. Undeclared resources remain unchanged. There is no delete or arbitrary file-writing command.

These resource kinds use the platform’s shared schemas and native permissions:

KindConfigurationScope
brandingNative branding fieldsOrganization
governanceA file-backed policy key and its native configOrganization
providerA custom provider definition and optional expectedModelsOrganization
provider-credentialNamed environment credential metadataOrganization
knowledge-embeddingProvider, model, dimensions, endpoint and server limitsOrganization
deploymentInstance deployment settings, including sandbox runtimeInstance

Use agent-tools to manage only the tool grants of an existing agent. Its config requires the exact projectId, agentId and complete desired tools array, for example ["task_find", "task_get", "task_review"]. Keep every grant you intend to retain; [] clears the tool set. The native catalog rejects unknown names and canonicalizes order and duplicates before hashing.

Applying this resource requires editor access to the active project and an agent that the platform does not manage. Members can read the narrow configuration. Changes preserve every other agent field, including instructions, model and exact secret grants. The native hash refuses concurrent tool edits; a changed set also invalidates stale full-agent saves. An equivalent set changes no timestamp or audit row. A runtime without the requested capability refuses the operation. Read back the tools after applying, and retain the pending receipt to recover an interrupted apply.

Use agent-model to select the serving configuration for future starts of an existing agent. Its config requires exact projectId and agentId values plus harness, model and an explicit modelProvider from the native catalog. The platform validates that combination and its available credentials; it never chooses a different provider. The same project editing permissions and platform-managed-agent restriction apply. Instructions, tools, skills, connectors and secret grants stay unchanged. Queued and running work keeps the complete serving configuration recorded when it was admitted. An equal selection is a no-op; a changed selection invalidates stale full-agent saves. A legacy unset provider appears as null in readback, but a declaration must choose one. Use the existing plan, apply and read commands, and retain the receipt if application is interrupted.

Use task-review-context to enroll a pristine operational task for one reviewer. Its config contains projectId, taskId, reviewerAgentId and enabled. By default the task must already exist, with no execution, review or source-work history. To create it, add createIfMissing: true beside kind and config, and choose a stable UUID for taskId. A project editor can then create and enroll the backlog task in one transaction; failed enrollment leaves no task or counter/audit changes. The reviewer must already have task_review; enrollment grants no tools and starts no work. Existing tasks still pass the pristine checks, and occupied identities are never overwritten. Keep the same ID and pending receipt after an interruption. Disabling the context preserves its reviewer and purpose.

Use project-dispatch to declare a project’s dispatch: which agents start its ready work, how many runs they hold, its standing roles and its gates. Its config holds the exact projectId and the dispatch’s fields: enabled, agents, maxConcurrentRuns, statuses and assignment, and optionally perAgentConcurrency, rebalance, labels, admission, standingRoles and gates. A project has one dispatch, and a declaration creates it when the project has none, switched on or off as enabled says. Each apply replaces the whole document: a field you leave out reads as its default, and a change made in the app is overwritten. Applying requires a project administrator, or an organization Owner or Admin, on an active project. The platform refuses a dispatch that names an agent or task outside the project, a standing role on an archived task, a cron expression that does not parse, or a label the project lacks, so declare its labels with project-label or create them first. A dispatch switched on starts work at once, so the CLI applies it after every other resource in the declaration. Declare each gate under gates; what an external system reports on a gate through POST /api/v1/projects/{id}/dispatch/gates/{key} is runtime state and never part of the declaration, plan or readback. A stored dispatch the runtime cannot read, such as one a newer Tale version wrote, is refused when you plan instead of being planned as a new one.

A declaration can also create what a fleet of agents works with: its project, the project's labels, its agents and standing tasks, and the agent secrets and connector credentials they use. Each of these kinds adopts the resource its identity names. To create one that does not exist yet, add createIfMissing: true beside kind and config; a project, an agent and a task then need a stable UUID you choose, so a retried apply finds what an interrupted one created. A field you leave out keeps what Tale stores; a field you state is set back to the declared value at every apply.

KindIdentityConfiguration
projectprojectIdname, and optionally description (null clears it) and teamIds ([] shares it with the whole organization). A key beside createIfMissing chooses the project's task key, which stays fixed afterwards.
project-labelprojectId and name, whatever its caseNothing else: Tale derives a label's color from its name. A label spelled otherwise is respelled the declared way.
project-agentprojectId and agentIdname, and optionally connectors, secrets (agent secret names), skills, connectorCredentials (the credential it acts as per Git connector, by its name exactly as stored) and gitIdentity ({name, email} its commits carry, null for none). Creating an agent requires its agent-model in the same declaration; its declared agent-instructions and agent-tools are created with it.
taskprojectId and taskIdtitle, and optionally labels, assigneeAgentId (null for no agent) and priority (p0 to p3, null for none). An initialStatus beside createIfMissing chooses backlog (the default) or todo. Its description comes from task-instructions.
agent-secretnameenvName, the environment variable the value is read from.
connector-credentialconnector and name, whatever its caseauthMethod (api-key, bearer or basic) and fields, mapping each secret field to { "env": "<variable>" }: token, or username and password. Optionally endpoint and isDefault.

A task's status belongs to its work: a declaration sets only the column a task it creates starts in, and never reads or moves it afterwards. An agent's runtime, model, instructions and tools stay with agent-model, agent-instructions and agent-tools, so no two kinds own the same field. A person assigned to a task keeps it until the declaration names an agent. A task names its labels whatever their case and reads them back in lower case, so Bug on a project whose label is bug is the same label; a label's spelling is its project-label's. A connector credential's endpoint is the HTTPS origin of a connector that takes one per credential. A declaration carries none of a connector's per-credential settings, so a connector that requires some, such as an IMAP/SMTP mailbox or HTTP, is connected in Tale: planning refuses a new credential for it.

A secret's value never enters the declaration, the plan or the receipt. The CLI reads it when it plans and applies, from an environment variable whose name starts with TALE_CONFIG_SECRET_ — inside a managed deployment, the platform's own environment — and refuses to plan while the variable is unset. Tale answers only a salted digest of the stored value, so a value rotated in the environment, or replaced by a person in Tale, plans as a change while the declaration's hash stays the same; tale config platform read shows valueMatches instead of the digest. The digest is slow to compute on purpose, but it still verifies the value: whoever holds it, or the hashes a plan or receipt records for a secret resource, can test guesses offline. Treat plans and receipts of a declaration with secrets as sensitive, and give secrets long random values. A sign-in the outside system renews (OAuth), or an app that signs in as itself, is connected in Tale and never declared, and a declared credential keeps the sign-in method it was created with.

Apply creates what other resources refer to first: projects, labels, agent secrets, connector credentials, agents, then tasks, before instructions, tools, models, review contexts, automations and, last, dispatch. Nothing inside a project, agent or task the declaration creates is read while planning: those resources plan as create, and apply writes them over whatever the creation left. Only what can be written there plans: a resource that creates itself (with createIfMissing, an automation, a dispatch), the project's instructions, the model, instructions and tools of an agent the declaration creates, and the description and review context of a task it creates. Planning refuses anything else there before writing anything, such as a label or agent without createIfMissing or the model of an agent nothing declares, and also a task in a new project assigned to an agent the declaration does not create there. Planning also asks Tale whether each connector credential suits its connector (its sign-in method and endpoint), without sending the values, and names the refused field. The dispatch check counts the agents, standing tasks and labels the same declaration creates; a dispatch for a project the declaration creates needs an organization Owner or Admin. A --configuration-only deployment accepts all of these kinds, but the backend reads a secret's value from its environment: declaring a new secret or rotating a value changes the deployment's runtime inputs and needs a full deployment, which --configuration-only refuses. Every other change to these kinds applies with --configuration-only. For example, this declaration creates a project with one agent on a standing task:

json
{
  "schemaVersion": 1,
  "resources": [
    {
      "kind": "project",
      "createIfMissing": true,
      "key": "FLT",
      "config": {
        "projectId": "6f1c2a14-4d55-4d61-9b2a-7a5c2e0f3b11",
        "name": "Fleet"
      }
    },
    {
      "kind": "agent-secret",
      "createIfMissing": true,
      "config": {
        "name": "GITHUB_TOKEN",
        "envName": "TALE_CONFIG_SECRET_GITHUB"
      }
    },
    {
      "kind": "project-agent",
      "createIfMissing": true,
      "config": {
        "projectId": "6f1c2a14-4d55-4d61-9b2a-7a5c2e0f3b11",
        "agentId": "0c3d5e8a-1b2c-4d3e-8f9a-0b1c2d3e4f50",
        "name": "Manager",
        "secrets": ["GITHUB_TOKEN"]
      }
    },
    {
      "kind": "agent-model",
      "config": {
        "projectId": "6f1c2a14-4d55-4d61-9b2a-7a5c2e0f3b11",
        "agentId": "0c3d5e8a-1b2c-4d3e-8f9a-0b1c2d3e4f50",
        "harness": "codex",
        "model": "example-model",
        "modelProvider": "example"
      }
    },
    {
      "kind": "task",
      "createIfMissing": true,
      "initialStatus": "todo",
      "config": {
        "projectId": "6f1c2a14-4d55-4d61-9b2a-7a5c2e0f3b11",
        "taskId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
        "title": "Manage the fleet",
        "assigneeAgentId": "0c3d5e8a-1b2c-4d3e-8f9a-0b1c2d3e4f50"
      }
    }
  ]
}

Replace the model and provider with ones your organization serves, and set TALE_CONFIG_SECRET_GITHUB where the CLI runs; a managed deployment declares each such variable as a required environment reference, as it does a provider credential’s. Nothing is ever deleted: dropping a resource from the declaration stops managing it and leaves it as it is. To retire part of a fleet, first apply a declaration that switches it off — enabled: false on its dispatch, for example — then drop it from the declaration, and remove what you no longer need in Tale.

Retention and DSAR policies require their dedicated native workflows. Pause uploads, synchronization and crawls before changing the embedding model. The CLI checks organization-wide document and website counts; it does not lock ingestion or migrate existing vectors. For an organization with documents or registered websites, a model change requires a separate native indexing migration. A change limited to minSimilarity, maxConcurrentRequests, minTokensPerSecond, maxTokensPerMinute or maxRequestsPerMinute keeps existing vectors valid, so it skips this check. Instance settings also require the native deployment editor allowlist. Standalone application reports restartRequired for boot settings; saving those settings alone does not activate them. Review the plan’s effects before applying.

Managed deployments use the same engine through configuration. Merge this example into the deployment declaration when an external operator already serves the provider. Replace the synthetic endpoint and catalog with verified values, and inject EXTERNAL_PROVIDER_SECRET from your secret manager:

json
{
  "environment": {
    "TALE_PROVIDER_KEY_EXTERNAL": {
      "env": "EXTERNAL_PROVIDER_SECRET"
    }
  },
  "configuration": {
    "schemaVersion": 1,
    "resources": [
      {
        "kind": "provider",
        "config": {
          "name": "external-chat",
          "displayName": "External chat",
          "apiFormat": "openai",
          "baseUrl": "https://models.example.invalid/v1",
          "catalog": {
            "source": "models-endpoint"
          },
          "embedding": "unknown",
          "auth": [
            {
              "method": "env"
            }
          ]
        },
        "expectedModels": [
          {
            "id": "Example-chat",
            "provider": "external-chat",
            "tags": ["chat"],
            "supportsTools": true,
            "supportsVision": false,
            "contextWindow": 131072
          }
        ]
      },
      {
        "kind": "provider-credential",
        "config": {
          "providerSlug": "external-chat",
          "authMethod": "env",
          "name": "Managed external provider",
          "envName": "TALE_PROVIDER_KEY_EXTERNAL",
          "modelAllowlist": ["Example-chat"]
        }
      }
    ]
  }
}

envName uses the native TALE_PROVIDER_KEY_ prefix and 40-character limit. Each alias needs a required environment reference. Private endpoints additionally require an explicit TALE_ALLOW_PRIVATE_PROVIDER_HOSTS reference whose value is 1; native host restrictions still apply. expectedModels checks Tale’s freshly resolved catalog during readback. It does not prove inference capacity, latency or business output.

Use governance with key: "vision_model" and native providerSlug/modelId fields for vision selection. Embedding uses knowledge-embedding with providerSlug, model, dimensions and baseUrl, plus the optional settings the platform keeps next to the model in embedding.json: minSimilarity, the assistant's cosine floor for this model, and the server limits maxConcurrentRequests, minTokensPerSecond, maxTokensPerMinute and maxRequestsPerMinute (Pace requests to a self-hosted embedding server). Each follows the platform's own rule: a value sets it, an omitted key leaves whatever the file holds (a hand-set value survives a release that does not mention it), and null clears it — "minSimilarity": null, for example, is the only way to remove a floor through the CLI. To replace a default credential, also declare the existing environment credential with isDefault: false; the CLI applies that explicit change first. Credential values never enter the declaration or receipt.

A managed deployment may name its declaration file with configurationSource instead of inline configuration. That file may list other declaration files, relative to it, under include; they are merged into one declaration before it is validated. A declaration file included twice is refused, while an instruction or workflow file that several resources name is read once. One declaration holds at most 512 resources across its files.

Native provisioning runs after identity and before configuration releases. The native.configuration receipt binds the declaration and bundle hashes, organization, resource hashes and native revisions. Writes retain a pending receipt before the first change; if a later resource fails, earlier changes may remain. Read the native state and retained receipt, then retry the same reviewed plan. Native compare-and-set protects each resource against concurrent admin changes; there is no cross-resource transaction. Keep deployment state, snapshots and receipts for recovery.

Managed deployments also activate a declared deployment resource before reporting ready. The CLI records the pending activation, drains the verified sandbox spawner for up to five minutes, and restarts that container once sessions have finished. If sessions remain, the operation stays pending. The configurationActivation receipt records the mounted configuration and observed container boot; ready requires fresh health checks. Retrying an interrupted operation verifies an already accepted restart, and an unchanged ready replay does not restart the service again.

Replace a pending configuration plan

If an interrupted plan can still complete, retry that same plan. Use explicit replacement when its declared settings can no longer work, for example because an embedding endpoint is no longer available. Keep the existing receipt: it records writes that may already have reached the platform.

  1. Read the pending receipt and compare the declared resources with current native state. Prepare replacement-configuration.json with corrected settings, the same target and exactly the same resource identities. You cannot use replacement to add or drop resources.
  2. Calculate the hash of the retained receipt’s plan, not the whole receipt or the replacement plan. The following command requires Bun and hashes canonical JSON: object keys sorted recursively, array order preserved, and no whitespace.
bash
PENDING_PLAN_SHA=$(bun -e '
  const receipt = await Bun.file(process.argv[1]).json();
  if (receipt.phase !== "pending") throw new Error("Receipt is not pending");
  function canonical(value) {
    if (Array.isArray(value)) return "[" + value.map(canonical).join(",") + "]";
    if (value !== null && typeof value === "object") {
      return "{" + Object.keys(value).sort().map(key =>
        JSON.stringify(key) + ":" + canonical(value[key])
      ).join(",") + "}";
    }
    return JSON.stringify(value);
  }
  console.log(new Bun.CryptoHasher("sha256")
    .update(canonical(receipt.plan)).digest("hex"));
' configuration-receipt.json)
  1. Create a fresh plan from the replacement declaration and review it before applying:
bash
tale --json config plan --file replacement-configuration.json \
  --url "$TALE_URL" --org "$TALE_ORG_ID" --output replacement-plan.json

After reviewing the plan, apply it with the original receipt path and the retained plan’s hash:

bash
tale --json --yes config apply --file replacement-configuration.json \
  --url "$TALE_URL" --org "$TALE_ORG_ID" \
  --plan replacement-plan.json --receipt configuration-receipt.json \
  --supersedes-pending-plan "$PENDING_PLAN_SHA"
tale --json config read --file replacement-configuration.json \
  --url "$TALE_URL" --org "$TALE_ORG_ID"

Each resource must still match the pending plan’s original state, intended write, or verified result. An unrelated native edit blocks replacement before any write. Resolve that difference with the administrator who made it; do not remove the receipt to bypass the check.

The receipt retains the previous plan and its verified resources under superseded, including across interruption and replay. Check that the receipt reaches phase: "ready" and that config read reports matching resources. Omit the one-shot selector from later operations.

For a managed deployment, set supersedesPendingConfigurationPlan to the same retained plan hash in the deployment specification, alongside the corrected configuration, then prepare and review a new bundle. If that bundle also replaces a pending rollout, select its hash separately with supersedesPendingBundle. That bundle selector alone does not authorize replacing a native configuration plan. Remove both recovery selectors from later specifications after the operation is ready.

The public native.configuration proof records each resource’s intended hash as configurationSha256 and its native readback hash as observedConfigurationSha256. These can differ when a setting preserves an existing value, such as an omitted embedding similarity floor or server limit. The private receipt retains the exact observed state for recovery.

Operate

tale status — show the current deployment status. No arguments.

tale deploy smoke --url <url> — check a running deployment through its public URL, the way a browser reaches it. Without --full it sends no credentials and writes nothing, so you can run it against any deployment, production included. It checks /api/health (and the version, with --expected-version <version>), the API's readiness, the app shell and its script, an anonymous session read, and that /events and /api/app refuse a visitor without a session. Plain http:// is accepted only for localhost; for a private certificate authority, set NODE_EXTRA_CA_CERTS to its root certificate.

  • --full — also sign in as a dedicated account and walk one user journey: open the organization's live-update stream, create a task, wait for its live update, read it back and delete it (an account that may not delete tasks archives it instead). Put the account in TALE_SMOKE_EMAIL and TALE_SMOKE_PASSWORD; it must not need a second factor. If the account sees no project, the first run creates one named "Tale deployment smoke" and later runs reuse it.
  • --chat — with --full, also run one chat turn on the first model available to the account. The turn spends model tokens; the conversation goes to the trash afterwards, stopped first if the turn is still running.
  • --organization <id-or-slug>, --project <id> — where the journey runs; by default, the account's first organization and project.
  • --timeout <seconds> — bound on each request and wait (default 15); --turn-timeout <seconds> bounds the chat turn (default 120).

With --json, the report lists each check with its status (pass, fail or skip), duration and reason. Exit 0 means every check passed, 5 that at least one failed and 2 that an option is invalid. The full journey removes its task (deleted or archived) and signs out even after a failed check.

tale logs <service> — stream a service's logs (service is one of the running services; on a dev-only stack with no deployment, it falls back to the dev container).

  • -f, --follow — follow log output as it is written.
  • -n, --tail <lines> — show only the last N lines.
  • --since <duration> — show logs since a relative time (e.g. 1h, 30m).
  • -c, --color <color> — target a specific deployment colour (blue or green).
  • --raw — stream raw, unfiltered log output (no classification).
  • --consume — on Incus, read a service that is running. Incus hands each console line out once: the read takes the lines it shows, so a later read, and the console Incus keeps after the service stops, no longer has them. Without it, tale logs reads only a stopped service on Incus, and --follow needs it. --since is refused on Incus, because the console keeps no times. Docker ignores the option.

tale backup — snapshot the supported, existing project volumes. No arguments. External databases and buckets need separate backups; see Backup coverage.

  • --archive — on Incus, also write a tar.gz archive of each volume into backups, so that the snapshot outlives its storage pool. Docker always writes the archives.

tale backup export <snapshot-id> — write one snapshot as a single file, its manifest and each volume's tar.gz archive, on either runtime; on Incus it first writes the archives a native snapshot lacks. It never overwrites a file. See Move a snapshot to another host or runtime.

  • --to <file> — where to write it. Default: tale-snapshot-<snapshot-id>.tar in the current directory.

tale backup import <file> — read a file tale backup export wrote into the backups volume, checking each archive by SHA-256 as it arrives, so that tale restore lists the snapshot. It refuses a snapshot ID the workspace already has. On Incus, deploy the workspace once first, so that its backups volume exists.

tale backup prune — on Incus, list the volumes restores set aside (<volume>.pre-restore-<timestamp>) and delete, after asking, those on which no listed snapshot lives.

  • --dry-run — only list them.
  • -y, --yes — skip the confirmation prompt.

tale restore [snapshot-id] — restore a snapshot; omit the id to list available snapshots.

  • --stop — before restoring, stop the project containers that are running, restarting or paused. Without it, the restore refuses and names them.
  • -y, --yes — skip the confirmation prompt.
  • --resume — on Incus, finish the restore an interrupted run left pending.
  • --abort — on Incus, undo the pending restore and put every volume back as it was.

tale rollback — roll back to the previous patch version (patch-level only). Prompts for confirmation before it touches anything.

  • -y, --yes — skip the confirmation prompt (required when running non-interactively).

tale stop — stop the whole environment gracefully, in three steps: the edge, the traffic switch and both colours; then the sandbox services; then the database, the object store and the resolvers. Each service stops within its own grace period (Docker: docker stop -t <seconds>). On a host that runs other projects beside Tale, run it before the host shuts down.

  • --dry-run — print the order and stop nothing.

tale start — start the stopped environment again the other way round, each step healthy before the next. On Incus it also restarts a service tale status reports as stopped after repeated crashes (status shows the last console lines Incus kept under it).

  • --dry-run — print the order and start nothing.

Maintain

tale update—move a workspace instance to a new version: update the CLI binary, then sync project files; run tale deploy afterward. Workspace commands align to that version. Managed bundles and configuration releases retain their separately pinned CLI revision.

  • -v, --version <version> — update to this exact version (e.g. 0.9.0) instead of the latest; allows downgrades.
  • -f, --force — force re-sync and overwrite locally modified project files.
  • --dry-run — show what would change without modifying anything.

tale migrate — re-provision the configuration defaults for every organization against the running deployment, an idempotent step that a deploy does not run: it adds the shipped configuration files an organization is missing, and the starter project with its example tasks to an organization that has no project. It adds no automation and changes none an organization already has: a new automation reaches an organization only when someone adds it from the template catalog in the app. Schema migrations are not a command: the backend applies them at boot, so a deployed container is always at its own schema.

  • --dry-run — show what would run without executing it.

tale cleanup — remove inactive (non-current colour) containers. No arguments.

tale reset — remove all blue-green containers.

  • -f, --force — skip the confirmation prompt.
  • -a, --all — also remove the stateful infrastructure containers and delete the project's data volumes: its database, organization configuration, uploaded files, proxy certificates and model gateway store. This cannot be undone. The project's backups volume, which holds the snapshots tale restore lists, is kept; delete it with docker volume rm <project-id>_backups once you no longer need them.
  • --discard-snapshots — on Incus, with --all: delete the data volumes even when the newest snapshot cannot be archived into backups first; their native snapshots are lost. See Know what a reset keeps.
  • --dry-run — preview the reset without making changes.

tale uninstall — remove the tale CLI binary from this system. It prompts before deleting anything and offers to also disconnect this machine's sandbox device, remove ~/.tale-daemon left by the retired tale daemon, and tear down a project's Docker resources and files. Without --purge, a project and its containers are left intact — run tale reset --all inside one to remove those. If the sandbox device cannot be stopped, nothing is uninstalled.

  • -f, --force — skip the confirmation prompt (removes the binary only; the optional cleanups still need --purge).
  • --purge — also disconnect the sandbox device and delete its workspaces, remove ~/.tale-daemon and, for a project found from the current directory, tear down its Docker resources as tale reset --all does, keeping its backups volume, and delete its files. Irreversible.
  • --discard-snapshots — on Incus, with --purge: tear the project down even when its newest snapshot cannot be archived into backups first; its native snapshots are lost.
  • --dry-run — show what would be removed without removing anything.

tale config show—print the resolved local project directory and CLI version. Outside a project, it reports that no project was found and exits successfully.

Configuration releases

These commands use the selected CLI revision without instance alignment or Docker operations. Release client configurations covers descriptors, source commits, credentials and recovery. The default release identity is the full source SHA: manifest schema 4/compiler 3, with releaseRef === sourceCommit. Native integer automation versions remain separate.

build, verify and stage require --repo <directory>, --descriptor <path> and --automation <name>. The descriptor is repository-relative. A verification manifest may be absolute or repository-relative.

CommandRequired optionsOptional options
tale config build--source-commit <sha>--skill-owner <user-id> (required for owned skills), --output <directory>, compatibility --config-version <version>
tale config verify--manifest <path>--rebuild for exact offline reconstruction
tale config stage--config-ref <sha>, --output <directory>--skill-owner <user-id>, --client <name>, --deployment-ref <sha>

Source staging requires checkout HEAD at that full commit and output outside the checkout. It rebuilds committed content without a generated catalogue commit. Explicit stage --config-version instead selects the compatibility catalogue path and requires --catalogue-commit, --catalogue-repository, --client and --ops-commit. Do not mix --config-ref and --config-version.

Native commands require --stage <directory>, --url <origin>, --org <id> and --project <id>. HTTPS is required except for loopback HTTP; use --origin <origin> for the canonical browser origin behind a proxy. Both read TALE_CONFIG_COOKIE only from the environment.

CommandRequired optionsOptional options
tale config deploy--receipt <path>Global --yes for an authorized unattended deployment
tale config verify-nativeNo extra required options--native-version <number>, --allow-retained

Both native commands accept exact expectations through --config-ref, --source-repository, --artifact-sha256, --deployment-ref, --client and --automation. Historical catalogue expectation flags remain available for compatibility. verify-native is read-only; --allow-retained verifies an explicitly selected retained version without claiming it is deployed. Without --native-version, verification selects the latest saved version. The native API exposes the task contract only for the deployed version, so retained verification cannot attest that field.

Configuration commands have no --dry-run: use stage, verify --rebuild and verify-native. Success JSON is {ok:true,command:"config <verb>",data}. Build and verify data include automationName, releaseRef, sourceCommit, artifactSha256, artifactPath and verified; compatibility output uses configVersion instead of releaseRef. SHA stage and native receipts use schema 2. A deploy result includes automationVersion and unchanged; the explicit verified field belongs to verification output.

Sandbox device

These commands run your Tale organization's sandboxes on the machine where you run them. Run sandboxes on your own devices covers adding a device under Settings > Sandboxes, which hands out the connect command. The device keeps its configuration and workspaces in ~/.tale/sandbox; TALE_SANDBOX_HOME moves them.

tale sandbox connect <site> --token <token> — connect this machine to the organization that issued the token: it checks Docker (and offers to install it), registers the machine, and starts the device's containers at the server's release. site is your Tale site, such as https://your-org.tale.dev. The token (tsdj_…) works once, within an hour. Linux and macOS only. A device runs on Docker only: connect and update refuse in a workspace that declares the Incus runtime, before the token is used.

  • --name <name> — the name Tale shows for the device (default: the machine's hostname). Characters other than A–Z, a–z, digits, ., - and _ become dashes.
  • --max-sessions <n> — how many sandboxes run here at once, from 1 to 256 (default: one per two CPUs and per 4 GiB of memory Docker can use, at most 16).
  • --no-auto-update — do not follow the server's release automatically; run tale sandbox update after each Tale update instead.
  • --docker-socket <path> — the Docker socket the device's containers use, for rootless Docker (default: /var/run/docker.sock).

tale sandbox status — show the device's connection, organization, release and containers, and the sandboxes running now. No arguments.

tale sandbox update — move the device to the server's release now, and take the server's current addresses for its sandboxes (needed after the backend or model gateway address changed). No arguments.

tale sandbox logs — show the device's log.

  • -f, --follow — keep printing new lines.
  • --tail <lines> — how many lines to show first (default: 200).

tale sandbox disconnect — remove the device from its organization, stop its sandboxes and delete their workspaces from this machine. It prompts first, and changes nothing while Docker is not running. If the server cannot be reached, the machine is cleaned up anyway, and an admin removes the device under Settings > Sandboxes.

  • --keep-data — keep the workspaces on this machine.
  • -f, --force — skip the confirmation prompt.

Advanced

tale auth hash-password — print the Better Auth hash of a password, for a break-glass administrator.

It reads the password from stdin, or from a hidden prompt with confirmation in an interactive terminal. It refuses a password that fails the platform’s default password policy and prints nothing but the hash.

tale auth reset-owner — reset the owner account credentials.

For a manual recovery, run it without flags in an interactive terminal to enter the new password through a masked prompt. This avoids putting the password in shell history or command arguments. The reset invalidates existing sessions.

  • -e, --email <email> — set a new owner email address.
  • -p, --password <password> — set a new owner password.

tale runtime migrate — move a workspace's Docker deployment to the Incus runtime runtime.next declares (experimental). It checks the node first, as tale incus check does with its forwarding probes, and refuses on a host where Docker's firewall drops the Incus bridges' traffic, naming the remedies. It needs the CLI to deploy the version Docker runs. Then it drains the backend and the sandbox, stops every Docker container (the proxy too), archives the Docker volumes, exports and imports the snapshot (each archive checked by sha256), restores it into fresh Incus volumes, deploys the same version on Incus, runs the public smoke checks (tale deploy smoke) and sets runtime.engine to incus. Downtime lasts from the stop to the Incus deploy. Each step is recorded in .tale/migration.json: an interrupted run continues where it stopped when you run it again. It refuses to start the Incus edge while a running Docker container still publishes port 80 or 443. A stopped Docker container stays stopped across a Docker restart and a reboot.

  • --to incus — migrate, or continue an interrupted migration.
  • --to docker — roll back: delete the Incus instances (their volumes stay), set runtime.engine back to docker and start the stopped Docker stack on the data it had. What changed on Incus since the migration does not go back.
  • --finish — after a completed migration, remove the stopped Docker stack: its containers and data volumes (<id>_backups stays). It asks first; a rollback is not possible afterwards.
  • --smoke-url <url> — where the smoke checks reach the new edge. Default: SITE_URL. A site under a loopback name (http://localhost) is checked at the Incus edge's own address, because the proxy devices take no loopback traffic. On another host, before DNS moves, an address that reaches the new host's edge.
  • -y, --yes — with --finish, remove without asking.

Troubleshooting

  • tale deploy targets the wrong machine. The CLI uses your shell's Docker context / DOCKER_HOST. Switch with docker context use … (or set DOCKER_HOST) so it points at the intended host, then re-run.
  • tale deploy uses the wrong host alias. The host the proxy answers on comes from HOST in the project's .env, not a separate CLI store. Edit HOST and SITE_URL in .env to change it, or pass --host to serve another host for one run; a running proxy takes a new host only when it is recreated (--stop).
  • Installer fails on macOS because the binary cannot execute. When the freshly installed binary refuses to run (e.g. Gatekeeper kills it), the installer fails with recovery hints instead of reporting success — follow them, then re-run the installer.
  • tale not found after install on Linux. The installer drops the binary in /usr/local/bin; verify the directory is on the user's PATH (echo $PATH).

For ongoing operations, use Upgrades, Backups and restore, or Container architecture.