The cursor blinked against a black terminal, waiting. You typed pgcli and hit return. The connection opened fast, clean, and human-readable. That’s when you saw it: TTY mode, running smooth, no friction, no lag.
Pgcli TTY is the direct way to run PostgreSQL commands with rich formatting, autocompletion, and syntax highlighting—all inside a true terminal interface. TTY stands for “teletype terminal,” but here it means raw, uninterrupted text I/O between you and your database. No GUI, no browser latency—just the wire.
When you run Pgcli in TTY, every query and output is aligned for clarity. It respects terminal width. It renders tables with borders that mean something, not noise. It works inside SSH sessions, docker exec shells, or local dev boxes. Because Pgcli is Python-based and built on prompt_toolkit, it keeps hotkeys and completion fully functional even in constrained environments.
Setting Pgcli to TTY
If you’re running Pgcli in a pipeline or script, you can force TTY mode with terminal options:
pgcli --pager=less
Or connect with: