# pgcli > A modern PostgreSQL CLI with auto-completion and syntax highlighting. > More information: . - Connect to a PostgreSQL database using a connection string: `pgcli postgresql://{{user}}@{{host}}/{{database}}` - Connect to a database using flags: `pgcli {{[-h|--host]}} {{host}} {{[-U|--username]}} {{username}} {{[-d|--dbname]}} {{database}}` - Display help: `pgcli --help`