it2 session variable set

Set a session variable value

Synopsis

it2 session variable set <session-id> <name> <value>

Description

Set a session variable value.

User-defined variables must begin with 'user.'. System variables
like session.hostname are read-only.

Examples:
it2 session variable set $SESSION user.channels "#general,#random"
it2 session variable set sess_123 user.metadata "production"

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