pgcli: PostgreSQL Command-Line Interface

4.4.0 · active · verified Tue Apr 14

pgcli is a Python package that serves as an interactive command-line interface for the PostgreSQL database server. It enhances the standard PostgreSQL experience with features like auto-completion, syntax highlighting, smart-completion, and extensive support for psql-like back-slash commands. The project is actively maintained with a consistent release cadence, with version 4.4.0 being the current stable release.

Warnings

Install

Quickstart

Connect to a local PostgreSQL database named 'my_database' using the current system username. You will be prompted for a password if required. Alternatively, use a connection URL: `pgcli postgresql://user:password@host:port/dbname`.

pgcli -h localhost -p 5432 -U $(whoami) -d my_database

view raw JSON →