Skip to main content
Panes are containers for surfaces within a workspace. Each workspace has a split layout tree of panes.

list-panes

List all panes in the current or specified workspace.
Flags:
string
Workspace to list panes from (defaults to $CMUX_WORKSPACE_ID)
boolean
Output results in JSON format
string
Control ID output format: refs, uuids, or both
Output (text):
Output (JSON):

new-pane

Create a new pane with a split direction.
Flags:
string
Workspace context (defaults to $CMUX_WORKSPACE_ID)
string
Split direction: left, right, up, or down (default: right)
string
Initial surface type: terminal or browser
string
URL to open (for browser surfaces)
Examples:
Output:

focus-pane

Focus a specific pane by ID, ref, or index.
Flags:
string
required
Pane to focus (ID, ref, or index)
string
Workspace context (defaults to $CMUX_WORKSPACE_ID)
Examples:
Output:

list-pane-surfaces

List all surfaces within a specific pane.
Flags:
string
required
Pane to list surfaces from (ID, ref, or index)
string
Workspace context (defaults to $CMUX_WORKSPACE_ID)
boolean
Output results in JSON format
string
Control ID output format: refs, uuids, or both
Examples:
Output (text):
Output (JSON):

tree

Display the pane/surface hierarchy tree for a workspace.
Flags:
string
Workspace to display tree for (defaults to current workspace)
boolean
Output results in JSON format
string
Control ID output format: refs, uuids, or both
Example:
Output: Displays a hierarchical tree view of panes and surfaces in the workspace.

Global Flags

These flags can be used with most pane 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