how to access postgres CLI

C++
# User postgres is default. It then may ask you for password. 
psql -U postgres
Source

Also in C++: