CLI
Overview
The oblien terminal command manages terminal sessions inside workspace runtimes — create, list, close, and retrieve scrollback history.
Commands
Create Terminal Session
oblien terminal create <ws-id> [--shell <sh>] [--cols <n>] [--rows <n>]| Flag | Description |
|---|---|
--shell <sh> | Shell executable (e.g., /bin/bash, /bin/zsh) |
--cols <n> | Terminal width in columns |
--rows <n> | Terminal height in rows |
List Sessions
oblien terminal list <ws-id>Close Session
oblien terminal close <ws-id> <session-id>Get Scrollback Buffer
oblien terminal scrollback <ws-id> <session-id> [--bytes <n>]Retrieves the scrollback history. Use --bytes to limit the buffer size.
Examples
oblien terminal create ws_abc123
oblien terminal create ws_abc123 --shell /bin/bash --cols 120 --rows 40
oblien terminal list ws_abc123
oblien terminal close ws_abc123 sess_def456
oblien terminal scrollback ws_abc123 sess_def456 --bytes 4096