macOS / binaries /

psql

/usr/local/bin/psql
PostgreSQL interactive terminal

psql is a terminal-based front-end to PostgreSQL. It enables you to type in queries interactively, issue them to PostgreSQL, and see the query results.