heroku-psql-tunnel

open ssh tunnel for psql connection to private space

Usage no npm install needed!

<script type="module">
  import herokuPsqlTunnel from 'https://cdn.skypack.dev/heroku-psql-tunnel';
</script>

README

pg-extras

A heroku plugin to open ssh tunnel for psql connection to private space

Installation

$ heroku plugins:install heroku-psql-tunnel

Usage

$ heroku psqlssh -a appName [DATABASE]

OPTIONS
  -a, --app=app              (required) app to run command against
  -k, --keepAlive            don't close the tunnel after a client disconnects
  -p, --localPort=localPort  [default: 50000] local port on which ssh tunnel will be listning

THIS IS BETA SOFTWARE

Thanks for trying it out. If you find any issues, please notify us at w.migas+psqlssh@polsource.com