it2 artifact diff

Show diff between two artifacts

Synopsis

it2 artifact diff <session-id> <artifact1> <artifact2> [flags]

Description

Compare two artifacts and show their differences.

Uses the system's diff command to show differences between artifacts.

Examples:

Diff two buffer snapshots

$ it2 artifact diff sess_abc123 \
buffer-snapshot/2025-10-10T14-30-00Z.txt \
buffer-snapshot/2025-10-10T15-00-00Z.txt

Unified diff format

$ it2 artifact diff sess_abc123 file1.txt file2.txt --unified

Options

-u, --unified (default true)
Use unified diff format

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