CLI reference
No arguments — opens the terminal GUI and auto-starts the gateway if it is not running.
Daemon
Section titled “Daemon”cmx start # start gateway + dashboard in the backgroundcmx stop # stop the daemoncmx restart # reload config, restart daemoncmx status # running? ports? totalsThe daemon writes a pidfile to ~/.local/state/cmx/gateway.pid. On Windows,
stopping uses taskkill; on Linux/macOS a clean SIGTERM.
Inspection
Section titled “Inspection”cmx stats # totals + per-provider breakdown, plain textSetup & info
Section titled “Setup & info”cmx setup # print harness wiring instructionscmx version # version + platformForeground
Section titled “Foreground”cmx serve # run the gateway in the foreground (logs to stdout)Useful under systemd / Task Scheduler / docker run. Env vars honored:
CMX_DATA_DIR, CMX_STATE_DIR, CMX_CONFIG_DIR (override the XDG /
platform defaults).
Exit codes
Section titled “Exit codes”0— success1— daemon not running (forstop), or operation failed- Health checks time out after 5 s during
start
