sb Command¶
The sb command is a pure client tool for managing existing supervisors and terminals. It doesn't spawn any processes itself—it only connects to existing terminals.
Usage¶
Commands¶
sb attach (alias: a)¶
Attach to an existing terminal:
Flags:
--id <id>: Terminal ID (mutually exclusive with--name)--name <name>: Terminal name (mutually exclusive with--id)--socket <file>: Socket file path
sb detach¶
Detach from a terminal:
sb get¶
Query terminals, supervisors, and profiles:
# List terminals
sb get terminals
# List supervisors
sb get supervisors
# List profiles
sb get profiles
# Get specific terminal
sb get terminal <name-or-id>
# Get specific supervisor
sb get supervisor <name-or-id>
# Get specific profile
sb get profile <name>
Flags:
-a, --all: Show all terminals/supervisors including exited ones-o, --output <format>: Output format (json, yaml, or human-readable)
sb prune¶
Prune old terminals and supervisors:
Flags:
--older-than <duration>: Prune terminals/supervisors older than duration (e.g.,30d,1w,2h)
sb version¶
Show version information:
sb autocomplete¶
Generate shell completion:
Persistent Flags¶
These flags apply to all sb commands:
--config <file>: Config file (default:$HOME/.sbsh/config.yaml)-v, --verbose: Enable verbose logging--log-level <level>: Log level (debug, info, warn, error)--run-path <path>: Run path directory
Examples¶
List Active Terminals¶
Attach to Terminal by Name¶
Attach to Terminal by ID¶
List All Terminals (Including Exited)¶
Get Terminal Details (JSON)¶
Get Profile Details¶
Prune Old Terminals¶
Output Formats¶
Human-Readable (Default)¶
JSON¶
YAML¶
See Also¶
- sbsh Command - Interactive supervisor + terminal
- Commands Overview - Command comparison
- Getting Started - Basic usage