Search code examples
herokuheroku-cli

How to access Heroku app console by heroku CLI


I can check logs by heroku logs --app=my_app_name . I want to access app's console as shown in the picture. How can I access by heroku cli?

enter image description here


Solution

  • To access Heroku app bash by CLI:-

    heroku login
    heroku ps:exec --app=scoreboard-backend-dev
    

    scoreboard-backend-dev is the app name