DOKK / manpages / debian 10 / pgcli / pgcli.1.en
PGCLI(1) General Commands Manual PGCLI(1)

pgcli - Command line client for PostgreSQL

pgcli [OPTIONS] [DATABASE] [USERNAME]

pgcli is a command line interface for PostgreSQL with auto-completion and syntax highlighting. The CLI is also capable of pretty printing tabular data.

Host address of the postgres database
Port number at which the postgres instance is listening
User name to connect to the postgres database
Force password prompt
Never prompt for password
Version of pgcli
Database name to connect to
Location of pgclirc file
Show this message and exit

$ pgcli local_database

$ pgcli postgres://amjith:passw0rd@example.com:5432/app_db
$ pgcli -h localhost -p 5432 -U amjith app_db

pgcli is written by Amjith Ramanujam (http://pgcli.com)

This manual page was written by Lennart Weller <lhw@ring0.de>, for the Debian project (but may be used by others).

July 1, 2016