how to login postgresql shell code example Example: postgresql cli login psql -d mydb -U myuser -W psql -h myhost -d mydb -U myuser -W