heroku / legacy-cli

Heroku CLI
https://cli.heroku.com
MIT License
1.37k stars 380 forks source link

[feature request] option to get the PG credentials only for scripting purposes #1962

Open stof opened 8 years ago

stof commented 8 years ago

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):

psql "`heroku pg:credentials dbname --porcelain`" -f myfile.sql
stof commented 8 years ago

Is there any chance to get some feedback about this feature request ?