psql
Verified for current stable LTS
Psql Commands
Psql command syntax with verified terminal examples.
Commands
5 commands for Psql
psql Operations
Psql Command: Connect Database Local
psql <database> psql Operations
Psql Command: Connect Database Remote No Prompt
psql -h <host> -p <port> -U <username> <database> psql Operations
Psql Command: Connect Database Remote With Password Prompt
psql -h <host> -p <port> -U <username> -W <database> psql Operations
Psql Command: Execute Commands From File On Database
psql <database> -f <path/to/file.sql> psql Operations
Psql Command: Execute Sql Query On Database
psql -c '<query>' <database> Suggest a Psql Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Psql workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.