it2 session get-info

Get comprehensive session information

Synopsis

it2 session get-info [<session-id>] [flags]

Description

Get comprehensive information about a session including:

  • Basic session details (ID, name, title)
  • Window and tab associations
  • Session properties
  • Current prompt information (if Shell Integration enabled)
  • Process information

This command combines multiple API calls to provide a complete view of the session.

Examples

Basic Usage

$ it2 session get-info
$ it2 session get-info sess_abc123

Output Formats

$ it2 session get-info --format json

Options

--extract

Extract specific property value (e.g., 'frame', 'frame.coords', 'name')

--format

Output format: text, json, yaml (default: text)

--json

Output result as JSON (deprecated, use --format=json)

--prompt

Include current prompt information

--properties

Include session properties

Options inherited from parent commands

--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