it2 session get-pid

Get the process ID (PID) of the shell in a session

Synopsis

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

Description

Get the process ID (PID) of the shell process running in a session.
This command attempts to extract the PID from shell integration or by running commands.

Options

--json

Output result as JSON

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