Want to know more about what happens during a CLI command

Issue

I want to debug an issue with a CLI command.

Resolution

To see the details of the requests that the CLI is making, you can set the HEROKU_DEBUG variable to true before running the command. Here is the format: HEROKU_DEBUG=true <command>

For example, to run the heroku apps -a <app-name> command with debug mode enabled, you would use:

HEROKU_DEBUG=true heroku apps -a <app-name>

You can run the failing CLI commands with HEROKU_DEBUG=true and send us the output (making sure it doesn't contain any confidential information, such as API keys, first).

If you are using Windows, the syntax is slightly different:

cmd /V /C "set DEBUG=* && <command>"

Eg: cmd /V /C "set DEBUG=* && heroku apps -a <app-name>"

If HEROKU_DEBUG doesn't provide the desired level of information, you can try using DEBUG=*. Please refer to the following link for more details: https://devcenter.heroku.com/articles/heroku-cli#troubleshooting.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support