Link Project
Connect your local project to your remote Supabase project to enable deployments and migrations.
Find Your Project Reference
You'll need your project's reference ID. Find it in the Supabase dashboard:
- Go to supabase.com/dashboard
- Select your project
- Go to Settings → General
- Copy the Reference ID (looks like:
abcdefghijklmnop)
Quick Find
The project reference is also in your project's URL:
https://supabase.com/dashboard/project/[reference-id]Link Command
Run the link command with your project reference:
supabase link --project-ref YOUR_PROJECT_REFYou'll be prompted for your database password. This is the password you set when creating the Supabase project.
Forgot Database Password?
You can reset the database password in Settings → Database → Database Password. Note: This will require updating any existing connections.
Verify Link
After linking, verify the connection:
supabase db remote commitThis command syncs your local migrations with the remote database state. It should complete without errors if the link is successful.
What Gets Linked
Migrations
Push and pull database schema changes between local and remote.
Edge Functions
Deploy Deno functions to your Supabase project.
Storage
Manage storage buckets and policies.
Auth Config
Sync authentication providers and settings.
