dunops.com/Docsbeta

Integrations

Heroku

Dun manages Heroku apps and dynos, promotes pipelines, reads releases, and edits config vars and add-ons.

Connect with an API tokenHosting5 products

Note

Every mutating action — a deploy, a scale, a secret rotation, a DNS change — surfaces a plan in chat first. Dun never touches your Heroku resources until you approve it.

How to connect

Connect once from Integrations Heroku, then toggle on the products you want Dun to manage.

1

Step 1

Run `heroku authorizations:create` (or open Heroku → Account settings → Applications → Authorizations).
2

Step 2

Copy the token value it prints.
3

Step 3

Paste the token below and click Connect.

Where to get credentials: https://dashboard.heroku.com/account/applications

What Dun can do

Each product below is something you can turn on. The examples are real prompts you can type in a chat thread.

Apps & Dynos

List apps and their dynos/formation, restart all dynos, and scale the dyno formation.

Type in a chat thread
Restart my Heroku app's web dynos
Scale my worker dyno to 2

In a playbook, bind heroku.redeploy to run this as a step.

PermissionRequiredWhat it does
List apps + dynosYesDiscover apps, dynos, and process formation.
Restart / scale dynosOptionalApproval-gated restart and formation scaling.

Pipelines & Review Apps

List pipelines and their stage couplings, promote an app to the next stage, and manage review apps.

Type in a chat thread
Show me my Heroku pipelines & review apps
PermissionRequiredWhat it does
Read pipelines + review appsOptionalSurface stages, couplings, and review apps.
Promote / delete review appOptionalApproval-gated pipeline promotion and review-app teardown.

Config Vars

Read and write an app's config vars (values redacted). Writes trigger a new release.

Type in a chat thread
Set DATABASE_URL on my Heroku app
PermissionRequiredWhat it does
Read config vars (redacted)OptionalList config var names and read values.
Set / delete / bulk-update config varsOptionalApproval-gated writes that trigger a release.

Add-ons & Postgres

List and manage add-ons (plan changes, create, delete), and read Heroku Postgres detail + connection URL (redacted).

Type in a chat thread
Show me my Heroku add-ons & postgres
PermissionRequiredWhat it does
Read add-ons + PostgresOptionalSurface add-ons, plans, and database connection vars.
Create / change / delete add-onsOptionalApproval-gated provisioning and plan changes.

Releases & Domains

List releases and roll back to a prior one, and manage custom domains + their SSL/ACM status.

Type in a chat thread
Show me my Heroku releases & domains
PermissionRequiredWhat it does
Read releases + domainsYesSurface release history and custom domains.
Roll back release / manage domainsOptionalApproval-gated rollback and domain add/remove.

Next steps