Command reference

oko-cli pty attach

Bridges the current terminal to a local PTY attach socket.

Invocation

oko-cli pty attach --socket PATH [--session ID --control PATH]

Inputs and options

  • Required --socket.
  • --session and --control together enable resize forwarding through the broker control socket.

Output and state effect

  • Places stdin in raw mode while attached, forwards bytes, and restores terminal settings on exit.

Refusals and safe exits

  • Refuses a missing/overlong socket path, socket/connect failures, and resize-forwarding setup failures.