Supabase
Database Commands
Database operations
11 commands
Commands
Show schema diff
$ supabase db diff
Show differences between local and remote schema
Dump database
$ supabase db dump -f dump.sql
Dump database schema to SQL file
Lint database
$ supabase db lint
Lint database for potential issues
Pull remote schema
$ supabase db pull
Pull schema changes from remote database
Push schema changes
$ supabase db push
Push local schema changes to remote database
Reset database
$ supabase db reset
Reset local database to initial state
Initialize Supabase
$ supabase init
Initialize Supabase in current directory
Link to project
$ supabase link --project-ref <ref>
Link local project to remote Supabase project
Start local Supabase
$ supabase start
Start local Supabase development stack
Check status
$ supabase status
Show status of local Supabase services
Stop local Supabase
$ supabase stop
Stop local Supabase development stack