list-windows
List all open windows with their IDs, indexes, and workspace counts.Output results in JSON format
Control ID output format:
refs, uuids, or both (default: refs)current-window
Get the ID of the currently focused window.Output results in JSON format
new-window
Create a new window.focus-window
Focus a specific window by ID, ref, or index.Window ID (UUID), ref (window:1), or index (1)
close-window
Close a specific window by ID, ref, or index.Window ID (UUID), ref (window:1), or index (1)
Global Flags
These flags can be used with any window command:Path to the cmux socket (default:
/tmp/cmux.sock or $CMUX_SOCKET_PATH)Socket authentication password (or use
$CMUX_SOCKET_PASSWORD)