How to install "psql" command for PostgreSQL on macOS

April 23, 2021

You can really install the psql command for Postgres if you have Homebrew installed.

Just run these two commands:

brew install postgresql
brew services start postgresql

Now, the psql command will work locally on your Mac.