it2 tmux send
Send command to tmux
Synopsis
it2 tmux send <connection-id> <command>
Examples
# Send tmux command
$ it2 tmux send conn-123 "list-sessions"
# Create new window
$ it2 tmux send conn-123 "new-window"
# Switch to window
$ it2 tmux send conn-123 "select-window -t 1"
# Rename window
$ it2 tmux send conn-123 "rename-window 'build'"
# Split pane
$ it2 tmux send conn-123 "split-window -h"
Options inherited from parent commands
-
--format(default "text") - Output format (text, json, yaml) - affects how command results are displayed
-
--timeout - Timeout for API operations - how long to wait for iTerm2 to respond
-
--url - WebSocket URL for iTerm2 API - typically ws://localhost:1912 for local iTerm2
See Also
- it2 tmux - Manage tmux integration
- it2 tmux attach - Attach to tmux session
- it2 tmux detach - Detach from tmux session
- it2 tmux list-clients - List tmux clients
- it2 tmux list-connections - List all tmux connections
- it2 tmux list-windows - List tmux windows