Local stack
supabase init
Create supabase/ config folder
supabase start
Start local Supabase containers
Prints API URL, Studio URL and keys when ready.
supabase status
Show URLs and keys of the local stack
supabase stop
Stop the local containers
Data is backed up to a volume unless --no-backup is given.
supabase stop --no-backup
Stop and wipe local data
supabase start -x <services>
Start without some services
Comma-separated, e.g. to skip imgproxy or studio.
supabase status -o env
Print status as env vars
Database
supabase db diff -f <name>
Write local schema changes as migration
Compares the local database with your migrations.
supabase db diff --linked
Diff against the linked project
supabase db push
Apply pending migrations to linked DB
supabase db push --dry-run
Show what would be pushed
supabase db pull
Fetch remote schema as a migration
supabase db reset
Recreate local DB from migrations and seed
Local only by default; --linked resets the remote, so use with
care.
supabase db reset --no-seed
Reset without running seed.sql
supabase db dump -f <file>
Dump schema to a file
supabase db dump --data-only -f <file>
Dump data only
supabase db lint
Check schema for errors
supabase db push --include-seed
Also run seed on push
Migrations
supabase migration new <name>
Create an empty timestamped migration
supabase migration list
Compare local and remote migrations
supabase migration up
Apply pending migrations locally
supabase migration repair <version> --status
applied
Fix remote migration history
Use --status reverted to mark one as not applied.
supabase migration squash
Merge migrations into one
supabase migration fetch
Download remote migration history
supabase migration down --last <n>
Revert the last n local migrations
Edge Functions
supabase functions new <name>
Scaffold a function
supabase functions serve
Serve functions locally
supabase functions deploy <name>
Deploy one function
supabase functions deploy
Deploy all functions
supabase functions serve --env-file <file>
Serve with env vars from a file
supabase functions list
List deployed functions
supabase functions delete <name>
Remove a deployed function
supabase functions deploy --no-verify-jwt
Deploy without JWT check
Makes the function publicly callable.