it2 session process list

List processes for a session

Synopsis

it2 session process list [<session-id>] [flags]

Description

List and inspect processes associated with a session.

Supports multiple output formats:

  • table: Tabular output with process details and plugin data (default)
  • text: Simple text output showing shell and job processes
  • json: JSON output with process details
  • yaml: YAML output with process details
  • tree: ASCII tree showing process hierarchy

Examples:

List processes for current session (table view)

it2 session process list

Show process tree

it2 session process list --format=tree

Show tree with PIDs

it2 session process list --format=tree --pids

JSON output

it2 session process list --format=json

Deeper tree traversal

it2 session process list --format=tree --depth 15

Options

--depth (default 10)

Maximum tree depth (tree format only)

--format (default "table")

Output format: table, text, json, yaml, tree

--pids

Show PIDs in tree format

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