mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
511 B
Plaintext
22 lines
511 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pgcli
|
|
|
|
> A modern PostgreSQL CLI with auto-completion and syntax highlighting.
|
|
> More information: <https://www.pgcli.com/#usage>.
|
|
|
|
- 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`
|