Managing multiple local Supabase instances
Developers often work on many different projects. Running multiple servers of any kind at the same time can be done by changing the port configuration (one on localhost:3000
, the other on localhost:3001
, and so on). But what if you have three projects, all using their own Supabase instances? Can we have three local Supabase instances run in parallel at the same time? Let’s have a look at the options for how to handle this.
Option 1 – the start-stop technique
This is the recommended option when the projects are separated and you can spare a minute to switch between instances.
Imagine that you have two projects. If you currently run the instance from project 1, then go to the project directory and run npx supabase stop
, it will automatically back up your data locally.
Now, if you go to project 2 and run npx supabase start
, the project 2 instance will be running and consider the project 1 instance to be in sleep mode...