I have followed various links including Herokus documentation here: https://devcenter.heroku.com/articles/heroku-postgresql#using-the-cli
I am using the command: pg_d