I have some scripts taking DB credentials as argument (for instance psql when wanting to use the -f option which was not supported by heroku pg:psql last time I checked). Currently, I have to copy-paste the URL from the pg:credentials output, forcing me to redo the same copy-paste each time the URL change.
It would be great to have an option to get only the URL as output of the command, allowing to use it like that (the option name --porcelain shown below is an example):
I have some scripts taking DB credentials as argument (for instance
psql
when wanting to use the-f
option which was not supported byheroku pg:psql
last time I checked). Currently, I have to copy-paste the URL from the pg:credentials output, forcing me to redo the same copy-paste each time the URL change. It would be great to have an option to get only the URL as output of the command, allowing to use it like that (the option name--porcelain
shown below is an example):