macOS
brew install pgclilocal Homebrew formula metadata
sudo port install pgcliMacPorts ports tree · databases/pgcli/Portfile · source: api.github.com
brew / rank 1259
CLI for Postgres with auto-completion and syntax highlighting. Version 4.6.0 via Homebrew; verified 2026-09-12. Also installable with debian: sudo apt install pgcli.
install
brew install pgclilocal Homebrew formula metadata
sudo port install pgcliMacPorts ports tree · databases/pgcli/Portfile · source: api.github.com
sudo apk add pgcliAlpine Linux edge package indexes · pgcli · source: dl-cdn.alpinelinux.org
sudo apt install pgcliDebian stable package indexes · pgcli · source: deb.debian.org
sudo dnf install pgcliFedora Rawhide package metadata · pgcli · source: dl.fedoraproject.org
nix profile install nixpkgs#pgclinixpkgs package indexes · pgcli · source: raw.githubusercontent.com
sudo pacman -S pgcliArch Linux sync databases · pgcli · source: geo.mirror.pkgbuild.com
overview
CLI for Postgres with auto-completion and syntax highlighting
history
pgcli is an interactive PostgreSQL command-line client focused on auto-completion, syntax highlighting, readable tabular output, and an improved REPL experience.
pgcli is maintained under the dbcli organization, a family of enhanced database command-line clients. Its development has continued through a long-running public release and changelog history.
pgcli is available through multiple Unix-oriented packaging systems, including Homebrew, Debian, Ubuntu, Fedora-family repositories, Arch Linux, Alpine Linux, MacPorts, and Nix, making it a broadly packaged alternative PostgreSQL shell.
Users invoke pgcli with PostgreSQL connection parameters or a connection URI, then work interactively with SQL, slash commands, completion, query history, named queries, and configurable key bindings.
pgcli applies modern interactive-shell features—context-aware completion, syntax highlighting, multiline editing, persistent history, and configurable output—to the traditional PostgreSQL command-line workflow.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.config/pgcli/configCredential-bearing paths to review before unattended agent runs.
~/.pgpass%APPDATA%\postgresql\pgpass.confexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pgcli | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:pgcli |
|---|---|
| Version | 4.6.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pgcli |
| Homepage | https://pgcli.com/ |
| Upstream docs | https://pgcli.com/ |
| License | BSD-3-Clause |
| Source archive | https://files.pythonhosted.org/packages/97/5d/d6fcf98556e6089915e12af12c6189e9d774d82b473c4ce9e124a62ec235/pgcli-4.6.0.tar.gz |
| Last updated | 2026-09-12T23:11:17Z |
| Pulse | updated |
| Dependencies | libpq, python@3.14 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pgcli |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
pgcli 4.3.0-2
CLI for PostgreSQL with auto-completion and syntax highlighting
sudo apt install pgclipgcli
nix profile install nixpkgs#pgclipgcli 4.0.1-1
CLI for PostgreSQL with auto-completion and syntax highlighting
sudo apt install pgclipgcli 4.6.0-r0
Postgres CLI with autocompletion and syntax highlighting
sudo apk add pgclipgcli-pyc 4.6.0-r0
Precompiled Python bytecode for pgcli
sudo apk add pgcli-pycpgcli 4.6.0-1.fc46
CLI for Postgres Database. With auto-completion and syntax highlighting
sudo dnf install pgclipython3-pgcli+keyring 4.6.0-1.fc46
Metapackage for python3-pgcli: keyring extras
sudo dnf install python3-pgcli+keyringpython3-pgcli+sshtunnel 4.6.0-1.fc46
Metapackage for python3-pgcli: sshtunnel extras
sudo dnf install python3-pgcli+sshtunnelpgcli 4.6.0-1
A command line interface for PostgreSQL with auto-completion and syntax highlighting
sudo pacman -S pgclipgcli
sudo port install pgclisource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.