it2 window get-property

Get a window property

Synopsis

it2 window get-property <window-id> <property>

Description

Get a window property. Available properties:

  • frame: Window position and size {origin: {x, y}, size: {width, height}}
  • fullscreen: Whether window is fullscreen (true/false)

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