| name | supabase-deploy-integration |
| description | Deploy and manage Supabase projects in production. Covers database migrations,
Edge Functions deployment, secrets management, zero-downtime rollouts,
blue/green branching, rollback procedures, and post-deploy health checks.
Use when deploying Supabase to production, running migrations, deploying
Edge Functions, managing secrets, or implementing zero-downtime deployments.
Trigger: "deploy supabase", "supabase migration push", "deploy edge function",
"supabase rollback", "supabase blue green", "supabase health check".
|
| allowed-tools | Read, Write, Edit, Bash(npx:supabase), Bash(supabase:*), Bash(curl:*) |
| version | 1.53.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","supabase","deployment","migrations","edge-functions","devops"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Supabase Deploy Integration
Overview
Deploy and manage Supabase projects in production with confidence. This skill covers the full deployment lifecycle: pushing database migrations, deploying Edge Functions, managing secrets, executing zero-downtime rollouts with blue/green database branching, rolling back failed migrations, and verifying deployment health. All commands use the Supabase CLI with --project-ref for explicit project targeting.
SDK: @supabase/supabase-js — supabase.com/docs
Prerequisites
- Supabase CLI installed (
npm install -g supabase or npx supabase)
- Supabase project linked (
npx supabase link --project-ref <your-ref>)
- Database migrations in
supabase/migrations/ directory
- Edge Functions in
supabase/functions/ directory (if deploying functions)
SUPABASE_ACCESS_TOKEN set for CI/non-interactive environments
Instructions
Step 1 — Push Database Migrations and Deploy Edge Functions
Apply pending database migrations to your production project, then deploy Edge Functions with their required secrets.
Database migrations:
npx supabase db push --project-ref $PROJECT_REF
npx supabase db push --project-ref $PROJECT_REF --dry-run
npx supabase migration list --project-ref $PROJECT_REF
Each migration file in supabase/migrations/ is applied in timestamp order. The CLI tracks which migrations have already been applied and only runs new ones.
Edge Functions deployment:
npx supabase functions deploy process-webhook --project-ref $PROJECT_REF
npx supabase functions deploy --project-ref $PROJECT_REF