list-panels
List all surfaces in the current or specified workspace (legacy alias for surface listing).string
Workspace to list surfaces from (defaults to
$CMUX_WORKSPACE_ID)boolean
Output results in JSON format
string
Control ID output format:
refs, uuids, or bothnew-surface
Create a new surface in the current or specified pane.string
Workspace context (defaults to
$CMUX_WORKSPACE_ID)string
Pane to add surface to (defaults to current pane)
string
Surface type:
terminal or browserstring
URL to open (for browser surfaces)
close-surface
Close a specific surface.string
Workspace context (defaults to
$CMUX_WORKSPACE_ID)string
Surface to close (defaults to
$CMUX_SURFACE_ID)string
Legacy alias for
--surfacefocus-panel
Focus a specific surface (panel).string
required
Surface to focus (ID, ref, or index)
string
Workspace context (defaults to
$CMUX_WORKSPACE_ID)new-split
Create a new split pane with a surface.string
required
Split direction:
left, right, up, or downstring
Workspace context (defaults to
$CMUX_WORKSPACE_ID)string
Reference surface to split from (defaults to
$CMUX_SURFACE_ID)string
Legacy alias for
--surfacemove-surface
Move a surface to a different pane, workspace, or window.string
required
Surface to move (ID, ref, or index)
string
Destination pane (ID, ref, or index)
string
Destination workspace (ID, ref, or index)
string
Destination window (ID, ref, or index)
string
Place before this surface
string
Place after this surface
number
Set specific index position
boolean
Whether to focus the surface after moving
reorder-surface
Reorder a surface within its pane.string
required
Surface to reorder (ID, ref, or index)
string
Workspace context
string
Place before this surface
string
Place after this surface
number
Set specific index position
surface-health
Check the health status of all surfaces in a workspace.string
Workspace to check (defaults to
$CMUX_WORKSPACE_ID)boolean
Output results in JSON format
trigger-flash
Trigger a visual flash on a surface (for debugging).string
Workspace context (defaults to
$CMUX_WORKSPACE_ID)string
Surface to flash (defaults to
$CMUX_SURFACE_ID)refresh-surfaces
Refresh all surfaces (legacy command).drag-surface-to-split
Drag a surface to create a split in a specific direction (legacy command).string
required
Surface to drag (ID or index)
string
Legacy alias for
--surfacestring
required
Split direction:
left, right, up, or downGlobal Flags
These flags can be used with most surface commands:string
Path to the cmux socket (default:
/tmp/cmux.sock or $CMUX_SOCKET_PATH)string
Socket authentication password (or use
$CMUX_SOCKET_PASSWORD)boolean
Output results in JSON format
string
Control ID output format:
refs, uuids, or both