Connect using a full PostgreSQL connection string.
Section: Connect and Inspect with psql
Connect with URI
bash
bash
psql postgresql://appuser:secret@localhost:5432/appdbExplanation
Useful for scripts and for matching application connection strings.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Connect and Inspect with psql