1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-14 07:35:23 +02:00
tldr/pages/common/pgcli.md
Richard Vincent d99f6443aa
pgcli: add page (#17131)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-07-06 03:58:27 +02:00

16 lines
411 B
Markdown

# pgcli
> A modern PostgreSQL CLI with auto-completion and syntax highlighting.
> More information: <https://www.pgcli.com>.
- 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`