psql is PostgreSQL's interactive terminal client. -U sets the user, -d the database name, and -h the server host; add -p 5433 for a non-default port. Once connected, type SQL statements or backslash meta-commands like \dt. Related: psql -d mydb for a local socket connection, pg_isready to test reachability.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.