it2 tmux attach
Attach to tmux session
Synopsis
it2 tmux attach <connection-id> [session-name]
Description
Attach to a tmux session. If session-name is provided, attaches to that specific session.
Examples
# Attach to default session
$ it2 tmux attach conn-123
# Attach to specific session
$ it2 tmux attach conn-123 development
# Attach to numbered session
$ it2 tmux attach conn-123 0
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 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
- it2 tmux send - Send command to tmux