The terminal waits. You type a query, hit enter, and get results instantly. No bloat, no delay. Pgcli in an air-gapped environment can be that fast—if you set it up right.
An air-gapped system has no direct internet connection. That makes installing and updating tooling harder, but not impossible. Pgcli, the command-line client for PostgreSQL with autocomplete and syntax highlighting, works well in isolated networks when you package it correctly.
Start by downloading all dependencies on a machine with internet access. You need Python, pip, and the pgcli package itself. Also fetch psycopg, the PostgreSQL adapter Pgcli relies on, along with any OS-level libraries like libpq. Store these files in a local directory, then move them into the air-gapped environment via secure media.
Install Pgcli using pip with the --no-index flag to prevent online lookups: