2025-07-24 22:27:13 -06:00
|
|
|
# pgcli
|
|
|
|
|
|
|
|
|
|
> A modern PostgreSQL CLI with auto-completion and syntax highlighting.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://www.pgcli.com/#usage>.
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- 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`
|