it2 session bury
Bury a session (hide it while keeping it alive)
Synopsis
it2 session bury [session-id] [flags]
Description
Bury (hide) a session while keeping it alive in the background.
Buried sessions are removed from the visible tab structure but continue
running. They can be restored later using 'it2 session restore' or
via the Session menu in iTerm2.
This is useful for temporarily hiding sessions you want to keep running
without closing them.
Options
-
--format(default "table") - Output format (table|json|yaml|text)
-
--timeout(default "5s") - Command timeout
-
--url(default "ws://localhost:1912") - iTerm2 WebSocket URL
See Also
- it2 session - Manage iTerm2 sessions
Examples
# Bury current session
$ it2 session bury
# Bury a specific session
$ it2 session bury abc123
# Bury with JSON output
$ it2 session bury --format json abc123