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