it2 tab activate

Activate a tab

Synopsis

it2 tab activate <tab-id> [flags]

Description

Activate and optionally select a tab in the iTerm2 interface

Examples

# Activate a specific tab
$ it2 tab activate tab-123
# Activate without selecting
$ it2 tab activate --select-tab=false tab-123
# Activate with JSON output
$ it2 tab activate --format json tab-123
# Activate next tab
$ it2 tab activate $(it2 tab list --format id | head -2 | tail -1)
# Activate first tab
$ it2 tab activate $(it2 tab list --format id | head -1)
# Activate last tab
$ it2 tab activate $(it2 tab list --format id | tail -1)

Options

--format (default "table")

Output format (table|json|yaml|text)

--select-tab (default true)

Select the tab after activation

--timeout (default "5s")

Command timeout

--url (default "ws://localhost:1912")

iTerm2 WebSocket URL

See Also