Skip to content

CLI command reference

A local workspace for you and your AI agents. Usage guidance and examples live in the CLI overview.

Start or reuse Worktable and open it

Terminal window
worktable launch [options]
Option Description
-b, --background run as a managed background service
-f, --foreground run in the foreground (Ctrl+C to stop)
--no-browser do not open the browser
-p, --port <port> port to listen on
-H, --host <host> host interface to bind
-w, --workspace <dir> workspace directory
--reachable bind all interfaces so other machines can connect (web app behind owner password, MCP behind a token)
--owner-password <pw> owner password to protect the web app when reachable (or set WORKTABLE_OWNER_PASSWORD)
--behind-tls you front Worktable with HTTPS (a tunnel/proxy); suppresses the reachability reminder

Configure workspace, background service, and agent connections

Terminal window
worktable setup [options]
Option Description
-y, --yes accept defaults without prompting
-b, --background run as a managed background service
-f, --foreground run in the foreground
--skip-mcp skip agent connection setup
--no-launch do not launch after setup
--mcp <ids> comma-separated agent client ids to connect
-w, --workspace <dir> workspace directory
-H, --host <host> host interface to bind
-p, --port <port> port to listen on
--reachable bind all interfaces so other machines can connect (web app behind owner password, MCP behind a token)
--owner-password <pw> owner password to protect the web app when reachable (or set WORKTABLE_OWNER_PASSWORD)
--behind-tls you front Worktable with HTTPS (a tunnel/proxy); suppresses the reachability reminder

Show server, workspace, service, and agent state

Terminal window
worktable status [options]
Option Description
--json machine-readable output

Diagnose installation problems

Terminal window
worktable doctor [options]
Option Description
--check exit non-zero if the install is degraded

Print resolved runtime paths

Terminal window
worktable paths [options]
Option Description
--json machine-readable output

Export or import portable workspace snapshots

Terminal window
worktable workspace [command]

Export the configured workspace to a versioned snapshot

Terminal window
worktable workspace export <file> [options]
Argument Description
<file> destination .wtb file
Option Description Default
--force replace an existing export file
--format <format> package format (wtb or legacy-json) wtb
--history <mode> history to include (all, age, count, or none) all
--history-days <days> days retained with –history age 30
--history-count <count> versions per item with –history count 50

Import a snapshot as a new independent workspace

Terminal window
worktable workspace import <file> <directory>
Argument Description
<file> source .wtb or legacy .wtb.json file
<directory> missing or empty destination directory

Manage the background service

Terminal window
worktable service [command]

Install the service

Terminal window
worktable service install [options]
Option Description
--json machine-readable output

Start the service

Terminal window
worktable service start [options]
Option Description
--json machine-readable output

Stop the service

Terminal window
worktable service stop [options]
Option Description
--json machine-readable output

Restart the service

Terminal window
worktable service restart [options]
Option Description
--json machine-readable output

Show service status (default subcommand)

Terminal window
worktable service status [options]
Option Description
--json machine-readable output

Remove the service

Terminal window
worktable service uninstall [options]
Option Description
--json machine-readable output

Print service logs

Terminal window
worktable service logs [options]
Option Description
-f, --follow stream new log lines
-n, --lines <n> number of lines to show

Connect coding agents on other machines

Terminal window
worktable agent [command]

Create a pairing code and print the one-line connect command

Terminal window
worktable agent invite [options]
Option Description
--client <id> agent client on the remote machine (claude-code, codex, cursor, opencode, vscode); omit to auto-detect there

Redeem a pairing code on THIS machine and configure its agents

Terminal window
worktable agent connect <code-or-url> [options]
Argument Description
<code-or-url> pairing code from worktable agent invite or Settings -> Agents
Option Description
--client <id> configure one specific client instead of the pairing’s choice
--all configure every detected client
--replace intentionally replace an existing Worktable client entry
--server <origin> Worktable origin (needed when passing a bare code)

Configure agent connections on this machine

Terminal window
worktable mcp [command]

Connect agents (auto-detects when no ids are given)

Terminal window
worktable mcp setup [clients...]
Argument Description
[clients...] client ids, e.g. codex cursor (or all)

Disconnect an agent

Terminal window
worktable mcp remove <client>
Argument Description
<client> client id

List supported agent clients

Terminal window
worktable mcp clients [options]
Option Description
--all include planned/experimental clients
--json machine-readable output

Show agent connection status (default subcommand)

Terminal window
worktable mcp status [options]
Option Description
--json machine-readable output

Re-apply config for connected agents

Terminal window
worktable mcp repair

Check whether the MCP endpoint is reachable

Terminal window
worktable mcp test

Print the MCP config snippet for a client

Terminal window
worktable mcp print-config <client> [options]
Argument Description
<client> client id
Option Description
--with-token mint a scoped bearer and embed it (shown once)

Update Worktable to the latest release

Terminal window
worktable update [version] [options]
Argument Description
[version] release version to install (default: latest)
Option Description
--check check for a newer release without installing anything
--background run as a detached worker that reports status to the server
--status-file <path> path to the update-status marker (with –background)

Remove Worktable from this machine (workspace preserved unless –purge)

Terminal window
worktable uninstall [options]
Option Description
-y, --yes skip the confirmation prompt
--purge also permanently delete the workspace folder and all its contents

Set up shell tab completion

Terminal window
worktable completion [command] <shell> [name]
Argument Description
<shell> shell to print a completion script for
[name] binary name to complete

Install completion for your shell (worktable and wtb)

Terminal window
worktable completion install [shell]
Argument Description
[shell] shell to target; default: detect from $SHELL