Database
pgcli
PostgreSQL CLI with auto-completion and syntax highlighting.
Ubuntu
Debian
Arch
Fedora
macOS
Verified: 2026-06-25
Syntax
$pgcli [OPTIONS] [DBNAME]
Optionen
-h
-U
-p
-d
Examples
$pgcli postgres://user:pass@localhost:5432/db
$pgcli -h localhost -U postgres mydb
See also
Typical use cases
?
Standard usage
pgcli --help
Note
User-friendly alternative to psql with smart completion.
Export