Skip to content

pganalyze/heroku-plugin-psql

Repository files navigation

heroku-plugin-psql

Like heroku pg:psql but for any Postgres database

oclif Version Downloads/week License

Usage

$ heroku plugins:install heroku-plugin-psql
$ heroku psql --app example-app
--> Connecting to DATABASE_URL
DATABASE=> help
You are using psql, the command-line interface to PostgreSQL.
Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit
DATABASE=> \q
$ heroku psql --help
Like heroku pg:psql but for non-Heroku databases

USAGE
  $ heroku psql [DATABASE]

OPTIONS
  -a, --app=app        (required) app to run command against
  -r, --remote=remote  git remote of app to use
  --command=command    like --command (-c) in psql, runs single command and exits
  --file=file          like --file (-f) in psql, runs commands from a file and exits

EXAMPLE
  $ heroku psql -a sushi
       DATABASE=> 
...

See code: src/commands/psql.ts

Authors

License

heroku-plugin-psql is licensed under the MIT license, see LICENSE file for details.

About

Like heroku pg:psql but for any Postgres database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages