CLI Reference
Command-line interface for cmuxterm
CLI Reference
cmuxterm includes a command-line tool for controlling the terminal from scripts and other tools.
Installation
The CLI is bundled with cmuxterm. Inside cmuxterm terminals, it's available automatically. For external use:
Global Options
| Option | Description |
|---|---|
--socket PATH | Use a custom socket path |
--json | Output in JSON format |
--tab ID | Target a specific tab |
--panel ID | Target a specific panel |
Environment Variables
| Variable | Description |
|---|---|
CMUX_SOCKET_PATH | Default socket path |
CMUX_TAB_ID | Default tab ID |
CMUX_PANEL_ID | Default panel ID |
Commands
Tab Management
list-tabs
List all open tabs.
new-tab
Create a new tab.
select-tab
Switch to a specific tab.
current-tab
Get the current tab info.
close-tab
Close a tab.
Split Management
new-split
Create a new split pane.
list-panels
List panels in the current tab.
focus-panel
Focus a specific panel.
Input Commands
send
Send text to the terminal.
send-key
Send a key press.
send-panel
Send text to a specific panel.
send-key-panel
Send a key press to a specific panel.
Notifications
notify
Send a notification.
list-notifications
List all notifications.
clear-notifications
Clear all notifications.
Utility
ping
Check if cmuxterm is running and responsive.