Skip to content

Setup Supabase

CLI

You need supabase CLI to get started, to install supabase CLI follow the below link.

Auth

Now that you have the CLI you need to login with your supabase account. If you don’t have an account already create an account from here and create a project as well as we’ll need it.

Run this command in your terminal to login with your supabase account

Terminal window
supabase login

After logging in you have to link your supabase project with our flutter project. If you don’t have a project please login to your supabase account and create a project. Once you have the project you can grab the project reference id from here

supabase ref id

Terminal window
supabase link --project-ref <ref-id>

Push Migrations

You have to sync the migrations with your supabase project to make the app work. Run the below command to sync all your migrations withyour supabase project.

Terminal window
supabase migration up