psql is PostgreSQL's interactive command-line client — used to connect to a database and run queries, inspect the schema, and administer the database. It has special meta-commands (starting with \) for navigation and administration, beyond running SQL.
Connecting
psql -U username -d database_name -h host -p 5432
psql postgresql://user:pass@host:5432/dbname
psql mydb
