pickfit

BrowseData & database tools

pgcli

A command-line PostgreSQL client with auto-completion and syntax highlighting.

Tested on Linux

Use it

Linux x86_64

pickfit ran these steps on 20 Nov 2026 (yesterday)

You need first

  • System packages: postgres
  1. start throwaway PostgreSQL

    pickfit-services start postgres
  2. uv tool install pgcli

    uv tool install pgcli

Check that it works

pgcli --version

The output should contain “Version: 4.7.1”.

First thing to try

pgcli -l postgresql://pickfit@127.0.0.1:5432/pickfit
It didn’t install for me

No account and no IP address is stored. A maintainer reads it; it doesn’t change the score by itself.

What it does

  • Auto-complete SQL keywords, tables and columns
    Tested
  • Syntax highlighting of SQL
    Tested
  • Context-sensitive smart completion
    Tested
  • Run psql back-slash commands
    Tested
  • Pretty-print tabular query results
    Not tested
More it can do, from its docs (19)

From the tool’s own documentation and help. pickfit didn’t test these one by one.

  • Syntax highlighting using Pygments
  • Pretty print tabular data
  • Connect using a postgres URI
  • Use psql environment variables for login PGHOST, PGPORT, PGUSER, PGPASSWORD and PGDATABASE
  • Connect over SSL
  • Use DSN aliases from config file
  • List available databases
  • Auto-switch to vertical output for wide results
  • Warn before destructive queries
  • Customize the prompt format
  • Run inside IPython console
  • Connect through an SSH tunnel
  • Log queries and output to file
  • Run a command and exit
  • Execute commands from a file
  • Check database connectivity
  • Print rows only without headers
  • Run SQL after connecting
  • Set row limit prompt threshold

How far pickfit got

Linux x86_64

  1. Installs
  2. Starts
  3. 4 of 5 features work
  4. Works offline

Good for

  • connect to a Postgres database and run SQL queries interactively
  • connect to a Postgres database over SSL
  • run pgcli queries from an IPython session

An alternative to psql.

How pickfit tested it

Each run starts from a clean machine and follows the steps above. How pickfit verifies

Linux x86_64

Its main function works

  • Replayed from scratch
  • Works offline
  • Checked on 20 Nov 2026
  • Version 4.7.1

Differences the test machine hit

  • README: Features are shown in the interactive REPL (tab completion, highlighting)
    In the test: No TTY in the box, so completion, highlighting and backslash commands were tested through pgcli's own Python classes (PGCompleter, PGExecute with pgspecial) using the uv tool venv's python, against the local Postgres

What pickfit could check

About 96% of what applies to this tool. Not checked doesn’t mean it fails: it is what pickfit’s test machines couldn’t do yet, and it lowers no score.

  • CheckedInstall1 of 1 system it claims installed and checked
  • PartlyFeatures4 of 5 features reached a verdict. Not covered: a reason pickfit hasn’t sorted yet
  • CheckedKnown vulnerabilities14 of 14 packages checked against OSV.dev
  • CheckedInstall docs
  • CheckedProject activity4 of 4 GitHub signals read

Doesn’t apply to this kind of tool: service starts and answers, ease of use.

How to read a tool card

Stitching
pickfit installed this tool itself. Everything under the stitches comes from that run. A tool pickfit has not run never gets stitches.
Verified on your OS
The install steps ran on the system you chose. “Ran on Linux only” means it has not been run on yours yet.
macOS, Linux and WindowsWhere it ran
Green OS marks: pickfit ran the install steps there. Grey ones: the README says it runs there, and pickfit has not tried.
How far the run got
Installs and starts, its main function works, its service answers, it produces model output. A window means a desktop app opened; a plug, an MCP client used it. The mark sits beside the run’s result, under “Why it fits and how we know” and in “How pickfit tested it”.
Visual check
pickfit looked at screenshots of the app. Green: it looks right. Amber with a number: things that look wrong; open it to see them. Grey and dashed: not checked yet.
Known vulnerabilities
Known high or critical vulnerabilities (OSV.dev) in what it installs. Green: none known. Red with a number: how many; open it for the list, and read it before you install. Grey and dashed: not checked, which does not mean safe.
About the run
The day it ran, and the version that ran.
Source of a reason
Every reason a pick fits rests on one profile field. Open the reason to see the field and the value it relies on.
Hidden gem
High quality, little known.
Quality and popularity
Two scores out of 100. Quality: how well it installed and worked when pickfit tried it, and how good its install docs and upkeep are. Popularity: from stars, downloads and Hacker News.
Features checked
Of the main features the README advertises, how many the run actually exercised (green), and how many failed (red). Grey ones were not checked, and the card says why.
Not verified
A well-known tool Fitz mentions from general knowledge. No run record, no steps, no score.