it2 session paste
Paste clipboard content to session
Synopsis
it2 session paste [<session-id>] [flags]
Description
Paste the system clipboard content to the specified session.
If no session-id is provided, uses $ITERM_SESSION_ID environment variable.
By default, paste operates silently without changing session focus.
Options
-
--format(default "table") - Output format (table|json|yaml|text)
-
--restore-focus - Activate target session during paste and restore previous focus afterward
-
--timeout(default "5s") - Command timeout
-
--url(default "ws://localhost:1912") - iTerm2 WebSocket URL
See Also
- it2 session - Manage iTerm2 sessions
Examples
# Basic Usage
it2 session paste
it2 session paste session123
# With Options
it2 session paste session123 --restore-focus
# Workflow Example
it2 session copy session123 # Copy from one session
it2 session paste session456 # Paste to another session