it2 session

Manage iTerm2 sessions

Description

Commands for creating, listing, and managing iTerm2 sessions

Examples

Basic Session Information

$ it2 session list
$ it2 session current

Creating & Managing Sessions

$ it2 session split --horizontal
$ it2 session close sess_abc123

Display & Appearance

$ it2 session badge set "PROD"
$ it2 session title set "My Server"

Interaction

$ it2 session send-text sess_abc123 "echo hello"
$ it2 session send-key sess_abc123 enter

Monitoring

$ it2 session tail -f

Command Reference

Session Management Commands:

Display & Appearance Commands:

Session Interaction Commands:

Properties & Variables Commands:

Monitoring & Information Commands:

Other Commands

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