list-workspaces
List all workspaces in the current or specified window.boolean
Output results in JSON format
string
Control ID output format:
refs, uuids, or both (default: refs)string
Window ID, ref, or index to list workspaces from
new-workspace
Create a new workspace with optional working directory and command.string
Working directory for the new workspace (absolute or relative path)
string
Command to run after workspace creation (automatically appends
\n)select-workspace
Switch to a specific workspace by ID, ref, or index.string
required
Workspace ID (UUID), ref (workspace:1), or index (1)
close-workspace
Close a specific workspace by ID, ref, or index.string
required
Workspace ID (UUID), ref (workspace:1), or index (1)
rename-workspace
Rename a workspace (also aliased asrename-window).
string
Workspace to rename (defaults to current workspace from
$CMUX_WORKSPACE_ID)current-workspace
Get the ID of the currently selected workspace.move-workspace-to-window
Move a workspace to a different window.string
required
Workspace to move (ID, ref, or index)
string
required
Destination window (ID, ref, or index)
reorder-workspace
Reorder a workspace within its window.string
required
Workspace to reorder (ID, ref, or index)
string
Window context (if omitted, uses current window)
string
Place before this workspace (ID, ref, or index)
string
Place after this workspace (ID, ref, or index)
number
Set specific index position (0-based)
workspace-action
Perform various workspace actions (next, previous, last, rename).string
required
Action:
next, previous, last, or renamestring
Target workspace (defaults to current workspace)
string
New title (for
rename action only)Global Flags
These flags can be used with most workspace 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