In this blog post will share about Heroku CLI command from version 18 to 20 Full article is available here https://devcenter.heroku.com/articles/upgrading-to-the-latest-stack In that I have my Heroku cloud app deployed using version 18 the below commands I used to run and then it is successfully upgraded in version 20. After running the commands, requirements.txt related all packages will be reinstalled heroku stack:set heroku-20 -a [cloudappname] git commit --allow-empty -m "upgrade to 20" git push heroku master