it2 session artifacts directory

Get the artifacts directory path for a session

Synopsis

it2 session artifacts directory [session-id-or-pid]

Description

Get the artifacts directory path for a session.

If no argument is provided, uses the current session ($ITERM_SESSION_ID).
The argument can be:

  • A session ID (e.g., 5AC0 or full UUID)
  • A process ID (e.g., 12345) - will lookup the session for that PID

The directory path is written to stdout, making it easy to use in scripts:
$ cd $(it2 session artifacts directory)
$ ls $(it2 session artifacts directory 5AC0)
$ open $(it2 session artifacts directory)

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