Skip to Content

Full Command Reference

Every cmdop verb in one table, grouped by theme. Source pointers reference the Go CLI tree under cmd/cmdop/cmds/.

Global flags

FlagValuesDescription
--debug—Verbose logging
--log-leveldebug / info / warn / errorLog verbosity (env CMDOP_LOG_LEVEL)
--log-formatjson / consoleLog format
--resumesession-idResume a previous TUI chat session
--modedev / prodToken + endpoint scope
--workspacenameOverride active workspace for one invocation
--api-keytokenInline API key (also CMDOP_API_KEY env)
--serverURLOverride control-plane address
--json—Script-friendly output
--no-interactive—Fail instead of prompting
--help, -h—Show help
--version, -v—Show version

Chat & skills

CommandDescription
cmdopBare = cmdop chat
cmdop chatInteractive AI chat (TTY → TUI; pipe → line-based)
cmdop chat --machine vps-audiChat targeted at a specific machine
cmdop chat --issue CMD-42Anchor chat output to a Board issue
cmdop chat --debug-promptPrint rendered system prompt to stderr
cmdop run <skill> [prompt...]One-shot skill execution
cmdop skills list / show / dir / create / check / install / uninstallSkill CRUD
cmdop instructions list / show / set / clear / defaultSystem prompt presets
cmdop modelsList models
cmdop style list / show / setPersonality presets
cmdop highlight <file>Syntax-highlighted file display (also ccat)

See ./chat, ./run, ./skills, ./instructions, ./models, ./style, ./highlight.

Connect & terminal

CommandDescription
cmdop connect [host]Interactive picker / direct attach
cmdop connect exec <host> -- <cmd>One-shot remote exec
cmdop connect key set / get / clearWorkspace API key CRUD
cmdop connect password set / clear / list / statusPer-machine bcrypt password
cmdop connect workspace list / use / remove / syncWorkspace switcher
cmdop connect share <host>Mint a share-link
cmdop terminal <host>PTY (alias for cmdop connect)
cmdop exec <host> "<cmd>"One-shot (alias for cmdop connect exec)
cmdop files ls / get / put / cat / rm / mkdir / cp / mv / info / syncRemote file operations

See ./connect, ./terminal, ./files.

Agent daemon

CommandDescription
cmdop agent startStart daemon. Flags: --foreground, --with-mcp, --no-power-blocker
cmdop agent stopStop daemon, mark machine offline immediately
cmdop agent statusONLINE / DEGRADED / STARTING
cmdop agent restartReload binary or config
cmdop agent restart-delayedInternal: deferred restart for updates
cmdop agent logsView daemon logs
cmdop start / stop / restart / statusTop-level shortcuts
cmdop logsTop-level logs alias. Flags: -n, -f, --raw
cmdop mode dev / prod / toggleSwitch mode
cmdop monitorLive daemon TUI
cmdop update / check / apply / scheduleSelf-update
cmdop service install / uninstall / start / stop / restart / statusOS service registration

See ./agent, ./logs, ./monitor, ./mode, ./update, ./service.

Auth & workspace

CommandDescription
cmdop loginOAuth sign-in
cmdop logoutClear credentials
cmdop auth statusIdentity + workspace + expiry
cmdop auth password set / clear / status / mfa / exportOAuth password / MFA
cmdop registerForeground first-time machine registration
cmdop machinesList machines in workspace

See ./authentication, ./workspace, ./register.

Permissions, issues, sessions, triggers, OS

CommandDescription
cmdop permissions list / allow / ask / deny / revoke / mode / auditPermission rule CRUD
cmdop issue list / show / create / update / close / deleteBoard CLI
cmdop session create / list / attach / detach / destroy / save / restoreTerminal session management
cmdop trigger list / add / remove / enable / disable / health / historyScheduled tasks
cmdop os list / active / focus / type / key / click / move / scroll / screenshot / clipboard / launch / quit / apps / script / uiOS automation

See ./permissions, ./issue, ./session, ./trigger, ./os.

Developer tools

CommandDescription
cmdop doctorHealth check (PATH, login, daemon, perms)
cmdop env [filter]Env vars + SDKRouter config
cmdop mcp stdio / toolsMCP integration (Claude Desktop, Cursor)
cmdop serveLocal API server (REST surface)
cmdop setupFirst-time setup wizard
cmdop tuiForce TUI in non-TTY env
cmdop cache stats / clear / pathRAG / agent cache
cmdop config / show / get / setConfig CRUD
cmdop debugDiagnostic dump for support
cmdop completion bash / zsh / fishShell completion
cmdop help <topic>Unified help registry
cmdop versionVersion + build info

See ./developer-tools, ./mcp, ./completion, ./help.

Provider

CommandDescription
cmdop providerInteractive manager (default)
cmdop provider add / set / default / delete / test / edit-keyScriptable subcommands

See ./provider.

Media

CommandDescription
cmdop media ffmpeg / extract / dreamMedia file operations

Exit codes

CodeMeaning
0Success
1General error
2Invalid arguments
3Authentication error
4Connection error
5Timeout
6Permission denied (gate)
7Update conflict (cross-user cache split)

Scripting examples

Deploy across multiple hosts in parallel:

for host in web-1 web-2 web-3; do cmdop connect exec "$host" -- ./deploy.sh & done wait

Backup with date stamp:

cmdop connect exec prod-server -- "tar czf - /data" > backup-$(date +%Y%m%d).tar.gz

Multi-host fan-out via the agent (ask_agents):

cmdop run multi-check vps-audi vps-bmw mac-studio

Scheduled health check via trigger:

cmdop trigger add --name health-check --schedule "*/15 * * * *" \ --skill check-services --machine prod-server
Last updated on