How to run a console command on a Heroku app through their REST API? How to run a console command on a Heroku app through their REST API? heroku heroku

How to run a console command on a Heroku app through their REST API?


This is what you're looking for: https://devcenter.heroku.com/articles/platform-api-reference#dyno-create

Notice the example there -- you can specify a run type which will run the process as a one-off thing. This is exactly how the heroku run command works under the hood =)