Supabase CLI workflows — local dev, migrations, Edge Functions, type generation
Scanned 5/27/2026
Install via CLI
openskills install KevinZai/commander---
name: supabase-cli
description: Supabase CLI workflows — local dev, migrations, Edge Functions, type generation
category: backend
triggers:
- supabase
- database migration
- edge function
- supabase init
---
# Supabase CLI
Key workflows for the Supabase CLI in Claude Code sessions.
## When to Use
- Setting up a new Supabase project
- Running database migrations
- Deploying Edge Functions
- Generating TypeScript types from your schema
## Core Commands
### Project Setup
```bash
supabase init # Initialize project
supabase start # Start local dev (Docker required)
supabase status # Check local services
supabase stop # Stop local services
```
### Database Migrations
```bash
supabase migration new <name> # Create migration file
supabase db diff --schema public # Auto-generate migration from schema changes
supabase db push # Apply migrations to remote
supabase db reset # Reset local DB + re-run all migrations
supabase migration list # List applied migrations
```
### Edge Functions
```bash
supabase functions new <name> # Scaffold Edge Function
supabase functions serve # Local dev server with hot reload
supabase functions deploy <name> # Deploy to production
supabase functions deploy # Deploy all functions
```
### Type Generation
```bash
supabase gen types typescript --local > types/supabase.ts # From local DB
supabase gen types typescript --project-id <id> > types/supabase.ts # From remote
```
### Linking & Auth
```bash
supabase link --project-ref <ref> # Link to remote project
supabase login # Authenticate CLI
```
## Best Practices
- Always create migrations via `supabase db diff` rather than writing SQL by hand
- Run `supabase db reset` after pulling migration changes from teammates
- Generate types after every schema change to keep TypeScript in sync
- Use `supabase functions serve` for local testing before deploying
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.