You can pass a database url as the first argument to `psql`

· Frontend-Flavored Fancies


1psql $DATABASE_URL

Source: https://www.starkandwayne.com/blog/using-a-postgres-uri-with-psql/index.html