heroku / legacy-cli

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

allow flags to be passed to pg:psql #682

Open mmcgrana opened 11 years ago

mmcgrana commented 11 years ago
$ heroku pg:psql -a core-db-stats -f the.sql 
 !    Unknown database: -f. Valid options are: DATABASE_URL, HEROKU_POSTGRESQL_ONYX_URL
catsby commented 10 years ago

What kind of flags, or were you specifically wanting to pipe files in? To do that I do this:

$ heroku pg:psql -a app < file.sql

or

$ cat file.sql | heroku pg:psql -a app

Not quite the same, but functional.