Connect to the database on given server host running on given port with given username, without a password prompt

psql

psql -h {{host}} -p {{port}} -U {{username}} {{database}}

click the source code to copy install psql on any operating system with command-not-found.com