CLI Commands
Commands
Section titled “Commands”pertmux serve
Section titled “pertmux serve”Start the background daemon.
pertmux serve # backgrounds automaticallypertmux -c config.toml serve # with specific configpertmux serve --foreground # stay in terminal (for debugging)The daemon forks to the background by default, logging to /tmp/pertmux-daemon.log. It validates your config and checks for an existing daemon before forking — errors show immediately in your terminal. Use --foreground to keep the daemon in your terminal for debugging.
The daemon runs until stopped with pertmux stop.
pertmux connect
Section titled “pertmux connect”Open the TUI client and connect to the running daemon.
pertmux connectFails with a clear error if the daemon is not running.
pertmux stop
Section titled “pertmux stop”Stop the running daemon.
pertmux stoppertmux status
Section titled “pertmux status”Show the daemon socket path and whether it’s running.
pertmux statuspertmux cleanup
Section titled “pertmux cleanup”Clean up stale files and persistence data.
pertmux cleanup- Removes the stale socket file if the daemon is not running.
- Removes
read_state.db(comment tracking) andlast_projectpersistence files. - Skips the live socket if the daemon is still running.
Global options
Section titled “Global options”| Option | Description |
|---|---|
-c, --config <path> | Path to TOML config file |
--version | Show version |
-h, --help | Show help |