Heroku CLI plugin for managing Heroku Postgres databases. Current stable version is 2.9.0, released in 2018. Provides commands for datastore operations like backups, maintenance, and connection management. A companion plugin to the Heroku CLI, not a standalone library. No recent updates; may be in maintenance mode.
npm install heroku-pgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the Heroku Postgres plugin with an authenticated Heroku client instance.
Call pg(heroku) instead of using pg.run()
Migrate to cli-ux for output formatting.
Set HEROKU_API_KEY or use heroku-cli-util to authenticate.
Run `npm install -g heroku-pg` or add to your project dependencies.
Use `import pg from 'heroku-pg'` and then call `pg(heroku)`.