You can run console sessions on Bamboo apps using one-off dynos via
heroku run. For example:
$ heroku run -a my-app ruby script/rails console Running `script/rails console` attached to terminal... up, run.1 irb(main):001:0>
The appropriate command for your app will depend on what framework you use. Common console commands for Bamboo include
script/rails console for Rails apps,
script/console for older Rails versions, and
irb for general Ruby apps.