Skip to content

How to migrate from Heroku

With the advent of Heroku removing their free plan, along with their roadmap being last updated almost 10 years ago, Patr has been the leading choice of alternative for many people. Here, we'll help you migrate your deployments from Heroku to Patr.


In order to migrate from Heroku to Patr, the following tools are required:

  • Patr CLI
  • Heroku CLI: Install instructions can be found here.
  • Docker: Instructions to install Docker can be found here.

Step 1

To migrate your deployments from Heroku to Patr, you must first install the Patr CLI. You can install the CLI by running the following command:

sudo snap install patr --classic --channel=beta

Step 2

Once the Patr CLI is installed, login to the Patr CLI with your Patr credentials, using the following command:

patr login

This will prompt for your Patr Username and password. Once that's entered, you will be logged in.

Step 3

Ensure that you have Heroku CLI installed, and logged in. Patr CLI uses the Heroku CLI to detect the details of your Heroku Deployment and uses that to migrate. You can find details on installing the Heroku CLI here.

Step 4

Now that the Heroku CLI is installed, you can start the migration process by running the following commands:

patr migrate heroku

The command will take you through the process of setting up your deployment on Patr, and will automatically run your deployment. Once that's done, that's it! Your deployments will then automatically be running on Patr!

Happy deploying!