it2 tab list
List tabs in windows
Synopsis
it2 tab list [<window-id>] [flags]
Description
List tabs in a specific window or all windows.
Examples:
it2 tab list # List tabs in all windows
it2 tab list 1 # List tabs in window 1 (positional)
it2 tab list --window-id 1 # List tabs in window 1 (flag)
it2 tab list -q # Output only tab IDs (quiet mode)
it2 tab list -q | xargs -n1 it2 tab close # Close all tabs (use with caution!)
it2 tab list -q | wc -l # Count total tabs
Options
-
--columns - Comma-separated list of columns to display
-
--format(default "table") - Output format (table|json|yaml|text)
-
-q,--quiet - Output only tab IDs
-
--reverse - Reverse sort order
-
--sort - Column to sort by
-
--timeout(default "5s") - Command timeout
-
--url(default "ws://localhost:1912") - iTerm2 WebSocket URL
-
--window-id - Filter tabs by window ID
See Also
- it2 tab - Manage iTerm2 tabs
- it2 tab activate - Activate a tab
- it2 tab clear-color - Clear the color of a tab
- it2 tab clear-title - Clear the title of a tab
- it2 tab close - Close one or more tabs
- it2 tab create - Create a new tab
- it2 tab current - Show the current tab ID
- it2 tab get-color - Get the current color of a tab
- it2 tab get-info - Get detailed information about a tab
- it2 tab get-title - Get the title of a tab
- it2 tab reorder - Reorder tabs within a window
- it2 tab set-color - Set the color of a tab
- it2 tab set-layout - Set the layout of a tab
- it2 tab set-title - Set the title of a tab
- it2 tab splits - Show split pane layout and coordinates
- it2 tab tree - Show split tree structure for a tab