it2
iTerm2 CLI
Description
A powerful command-line tool for controlling iTerm2 programmatically.
it2 provides comprehensive control over iTerm2 sessions, tabs, windows, and content.
Command Reference
Core Operations
- it2 app - Control the iTerm2 application
- it2 session - Manage iTerm2 sessions
- it2 tab - Manage iTerm2 tabs
- it2 window - Manage iTerm2 windows or navigate to window context
Content & Text
- it2 badge - Manage session badges
- it2 selection - Text selection operations in iTerm2
- it2 text - Text and buffer operations in iTerm2
Configuration
- it2 auth - Manage iTerm2 API authentication
- it2 color - Manage iTerm2 colors and appearance
- it2 profile - Manage iTerm2 profiles
- it2 statusbar - Manage iTerm2 status bar components
- it2 variable - Manage iTerm2 variables
Monitoring
- it2 job - Monitor jobs in iTerm2 sessions
- it2 notification - Subscribe to iTerm2 notifications
- it2 prompt - Manage prompts and command history in iTerm2 sessions
Advanced
- it2 arrangement - Manage iTerm2 window arrangements
- it2 broadcast - Manage broadcast domains
- it2 tmux - Manage tmux integration
Options
-
--format(default "text") - Output format (text, json, yaml)
-
--timeout - Timeout for API operations
-
--url - WebSocket URL for iTerm2 API