1

Install CLI

brew install supabase/tap/supabase
supabase --version
2

Local Development

  1. Ensure Docker Desktop is running
  2. Start Supabase locally
supabase start
  1. Get URLs/keys and add to .env.local:
EXPO_PUBLIC_SUPABASE_URL=
EXPO_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
  1. Run Edge Functions in dev
supabase functions serve
3

Edge Functions env

Copy the template and fill secrets:
cp supabase/functions/.env.template supabase/functions/.env
Recommended keys (fill what you use):
RESEND_API_KEY=
RESEND_FROM_EMAIL=
OPENAI_API_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOKS_SECRET=
EXPO_ACCESS_TOKEN=
SUPABASE_AUTH_EXTERNAL_APPLE_SECRET=
SUBASE_AUTH_GOOGLE_ID=
4

Deploy to Cloud (optional)

supabase login
supabase link
supabase config push
supabase db reset --linked
supabase functions deploy
Then update your .env.local with cloud values:
EXPO_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
EXPO_PUBLIC_SUPABASE_ANON_KEY=...
SUPABASE_SERVICE_ROLE_KEY=...
5

Common Commands

supabase start
supabase status
supabase stop
supabase db reset
supabase logs
For production, upload local function secrets: supabase secrets set --env-file supabase/functions/.env.