
pgcli
A Postgres command-line client with smart autocompletion and syntax highlighting, part of the dbcli family.
- Verified facts
- 4 of 4
- Alternatives ranked
- 4
- Approved reviews
- 0
- Visits sent from here
- 0
About pgcli
pgcli is a drop-in improvement on psql, PostgreSQL's standard command-line client. It adds context-aware autocompletion that suggests table names after FROM and column names after SELECT or WHERE, syntax highlighting as you type, multi-line editing, pretty table output, named queries you can save and reuse, and support for most psql backslash commands. It is written in Python, installs with pip or Homebrew, and runs anywhere Python does, including Windows, macOS and Linux. pgcli is free and open source under the BSD 3-Clause licence and is part of the dbcli project, which also maintains sibling tools with the same features for MySQL (mycli), SQLite (litecli) and SQL Server (mssql-cli). Because it is a terminal tool, there is no visual data editing or schema designer, and very large result sets are better handled elsewhere. It is ideal for developers who already use psql on servers and want a friendlier prompt.
Best for: Postgres users who live in the terminal and want a smarter psql.
Pros and cons
What works
- Context-aware autocompletion and highlighting
- Works with familiar psql commands
- Free, BSD-licensed, with MySQL and SQLite siblings
Why people leave
- Terminal only, no visual editing
- PostgreSQL only
- Needs Python to install
Top pgcli alternatives
See all 4Why people left pgcli
In reviewers' own words, from reviews of the apps they moved to. These are their opinions, not ours.
No switching stories yet. If you moved away from pgcli, review the app you switched to and tell us why.
Reviews
No approved reviews yet. How we verify reviewers
Write a review of pgcli
pgcli: common questions
Is pgcli free?
Yes. pgcli is free, open-source software.
Is pgcli open source?
Yes. The source code is on GitHub at dbcli/pgcli.
What platforms does pgcli run on?
pgcli is available for Windows, macOS and Linux.
What are the best alternatives to pgcli?
The highest-ranked pgcli alternatives right now are usql, Harlequin and pgAdmin. See the full ranked list for pricing, platforms and verified facts.