psql commands code example
Example 1: how to access postgres CLI
# User postgres is default. It then may ask you for password.
psql -U postgres
Example 2: linux psql
psql "dbname=dbhere host=hosthere user=userhere password=pwhere port=5432 sslmode=require"