Skip to main content

Getting Started

Installation

Pick your operating system or preferred installation method:

Download the package for your distro from the releases page.

Debian / Ubuntu

sudo dpkg -i pgxcli_*_linux_amd64.deb

Fedora / RHEL

sudo rpm -i pgxcli_*_linux_amd64.rpm

Alpine

sudo apk add --allow-untrusted pgxcli_*_linux_amd64.apk

Arch Linux

sudo pacman -U pgxcli_*_linux_amd64.pkg.tar.zst

Archive (tar.gz)

tar -xzf pgxcli_*_linux_amd64.tar.gz
sudo mv pgxcli /usr/local/bin/

Quick Start

Connect to a database:

pgxcli mydb myuser

That's it. You'll get a REPL with syntax highlighting, autocompletion, and history — ready to go.

tip

On first run, pgxcli creates a config file at ~/.config/pgxcli/config.toml. You can customize your prompt, theme, pager, and more. See Configuration.

Try a Query

SELECT version();

Results render in a clean table with execution time. If the output is long, pgxcli pages it automatically.

Exit

Type \q.


Next Steps