pgcli plugin for Heroku CLI
$ heroku plugins:install heroku-pgcli # install
$ heroku pgcli -a core-stage # by default, uses DATABASE_URL
Running pgcli on DATABASE_URL...
Server: PostgreSQL 10.6
Version: 2.0.2
Chat: https://gitter.im/dbcli/pgcli
Mail: https://groups.google.com/forum/#!forum/pgcli
Home: http://pgcli.com
random>
$ heroku pgcli POSTGRESQL_ORANGE_URL -a core-stage # custom name for postgresql
Running pgcli on DATABASE_URL...
Server: PostgreSQL 10.6
Version: 2.0.2
Chat: https://gitter.im/dbcli/pgcli
Mail: https://groups.google.com/forum/#!forum/pgcli
Home: http://pgcli.com
random>
...
heroku plugins:link
heroku pgcli
HEROKU_DEBUG=1
to print debugging statementsHEROKU_DEBUG_HEADERS=1
to also get the headersDEBUG=*
to get lots of internal debug output