"Manage Supabase projects, databases, migrations, Edge Functions, and storage using the `supabase` CLI."
Install
npx skillscat add dicklesworthstone/agent-flywheel-clawdbot-skills-and-integrations/supabase Install via the SkillsCat registry.
Supabase Skill
Use the supabase CLI to manage Supabase projects and local development.
Projects
List all projects:
supabase projects listLink to a remote project:
supabase link --project-ref <project-id>Local Development
Start local Supabase stack (Postgres, Auth, Storage, etc.):
supabase startStop local stack:
supabase stopCheck status of local services:
supabase statusDatabase
Run SQL query:
supabase db execute --sql "SELECT * FROM users LIMIT 10"Pull remote schema to local:
supabase db pullPush local migrations to remote:
supabase db pushReset local database:
supabase db resetDiff local vs remote schema:
supabase db diffMigrations
Create a new migration:
supabase migration new <migration-name>List migrations:
supabase migration listApply migrations locally:
supabase migration upSquash migrations:
supabase migration squashEdge Functions
List functions:
supabase functions listCreate a new function:
supabase functions new <function-name>Deploy a function:
supabase functions deploy <function-name>Deploy all functions:
supabase functions deployServe functions locally:
supabase functions serveView function logs:
supabase functions logs <function-name>Storage
List buckets:
supabase storage lsList objects in a bucket:
supabase storage ls <bucket-name>Copy file to storage:
supabase storage cp <local-path> ss:///<bucket>/<path>Download from storage:
supabase storage cp ss:///<bucket>/<path> <local-path>Secrets
Set a secret for Edge Functions:
supabase secrets set <NAME>=<value>List secrets:
supabase secrets listUnset a secret:
supabase secrets unset <NAME>Type Generation
Generate TypeScript types from database schema:
supabase gen types typescript --local > types/supabase.tsGenerate types from remote:
supabase gen types typescript --project-id <project-id> > types/supabase.tsAuthentication
Login to Supabase:
supabase loginCheck current status:
supabase projects list