All docs

Docs · Reference

CLI reference

txco

The complete command surface, grouped by what you're doing. Every command supports --help for full flags; common deploy flags (--target, --tenant, --json) repeat across the family.

image

Run & develop

CommandWhat it does
txco serveBoot the chassis (runtime reference)
txco devThe dev loop: boots your txco.yaml apps + a throwaway chassis, watches OPS/*.txcl and compute .js/.ts files, re-applies on save. --ui adds the admin-UI Vite server; --tcp / --dns add those heads
txco demoThrowaway chassis + browser playground with a guided curriculum (build/web/mail/async/mcp tracks)
txco init <stack>Scaffold OPS/<stack>/…; --from github:…\|oci:…\|dir:… scaffolds from a template
txco doctorDiagnose local setup: home dir, profile, keys, chassis reachability, version sync (--offline skips remote checks)

Deploy & versions

Stacks change through versioned drafts (admin-api.md). The CLI verbs map onto that flow:

CommandWhat it does
txco apply [dir]Deploy the whole OPS/ tree: draft + activate per changed stack; resolves op:// refs; uploads computes
txco push <stack>Like apply, one stack
txco pull <stack>Materialize a stack’s active version (or --version N) into local OPS/<stack>/ — the inverse of push
txco draft <stack>Upload a draft without activating (stage for review); --activate flips it too
txco activate <stack>Flip the active-version pointer (defaults to newest draft). Activating an older version = rollback
txco versions <stack>List a stack’s versions, active one marked
txco diff [dir]Compare local OPS/ against the running chassis
txco status [dir]Per-stack drift summary; exit 1 on divergence (CI-friendly)
txco edit <stack> <path>$EDITOR one file of a draft, PATCH it back

Nano-ops

CommandWhat it does
txco op init <path>Scaffold a .js/.ts compute next to its rule
txco op build <path>Bundle + compile to wasm (auto-fetches the pinned javy)
txco op run <path> --input <json\|@file>Execute locally on the same engine production uses
txco op test <path>Run against the scope’s mock-request.json, diff vs mock-response.json

Packages

txco install <ref> --as <stack>, txco package {init,validate,inspect,pull,publish,key,list,upgrade,remove} — see txco-oci-packages.md.

Identity & access

CommandWhat it does
txco auth bootstrap-localFirst-run: generate a key + enroll it (admin-api.md)
txco auth init / enroll / rotate-key / revoke-key / revoke-actorKey lifecycle
txco auth whoami (alias txco whoami)What the chassis thinks you are
txco auth invite / invitations / revoke-invitation / accept --token …Teammate onboarding
txco auth profiles / profile {use,show,remove}Named identities (AWS-style); also aliased under txco config
txco auth tenants / tenant {create,members,grant,revoke}Tenant management
txco auth tenant hostnames {add,attach,verify,challenge,list,remove}Hostname bindings (ingress.md)
txco auth tenant secrets {set,generate,list,show,describe,rotate,revoke}Secret store (runbook)
txco auth login (alias txco ui)Mint a signed browser session, open the admin UI
txco auth sessions {list,revoke} / logoutBrowser sessions / stop signing
txco login / logout / cloud {…}Cloud account OAuth — distinct from auth login, which targets your own chassis

Diagnose

CommandWhat it does
txco trace [rid\|last]Step-by-step trace explorer (trace.md); bare txco trace is interactive
txco mcp doctor <url>Probe an MCP server: handshake + tool list (mcp.md)

Operator & misc

CommandWhat it does
txco admin resync --tenant <slug>Re-emit control-plane state to the fleet (super-admin)
txco admin tenant {suspend,resume}Tenant kill switch (super-admin)
txco snapshot {export,restore,publish}Runtime-DB snapshots for fleet bootstrap
txco dns {zone,record,config,render}Delegated DNS zones (requires the dns personality)
txco version / update check / upgradeVersion info / check / self-update
txco completion <shell>bash/zsh/fish completion script
txco pluginList external txco-<name> plugins (kubectl convention)

Edit this page · View as markdown