supabase-cli

Automate local Supabase development with CLI commands for stack orchestration and migrations.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/krwhynot/crispy-crm --skill supabase-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-cli
Source: https://github.com/krwhynot/crispy-crm/tree/main/.claude/skills/supabase-cli
Command: npx skills add https://github.com/krwhynot/crispy-crm --skill supabase-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a comprehensive reference for Supabase CLI usage across local development, migrations, Edge Functions, type generation, and deployment workflows, reducing trial-and-error and speeding up setup.

Core Features & Use Cases

  • Quick reference for common commands, pitfalls, and best practices.
  • Local development stack orchestration, migration workflows, type generation, and edge function deployment patterns.
  • Embeds CI/CD patterns to minimize risk when promoting changes.

Quick Start

Use the cheat sheets to run standard workflows like starting the local stack, diffing/pushing migrations, generating types, and deploying edge functions.

Frequently Asked Questions about supabase-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a local Supabase development environment with the CLI?

Local Supabase development starts by initializing a project with `supabase init`, then running `supabase start` to orchestrate the local stack. This command brings up the database, Auth, and other services locally, letting you develop without hitting a remote server.

How do I create and manage database migrations with Supabase CLI?

Database migrations use `supabase db diff` to detect schema changes, `supabase migration new` to create migration files, and `supabase db push` to apply them. This workflow ensures reproducible schema updates across environments.

Can I generate TypeScript types automatically from my Supabase database?

Yes, Supabase CLI generates TypeScript types from your schema using the type generation command, producing types that match your database tables and functions. This eliminates manual type definitions and keeps them in sync.

How do I deploy Edge Functions using Supabase CLI?

Edge Functions deploy via `supabase functions deploy` after you define serverless functions in your project. The CLI handles bundling and pushing them to Supabase Edge Runtime for global execution.

How do I integrate Supabase CLI with CI/CD pipelines?

Supabase CLI integrates into CI/CD by linking projects with `supabase link`, managing secrets via environment variables, and using migration commands to validate and promote schema changes safely across staging and production.

What configuration does Supabase CLI use to manage projects and environments?

Configuration lives in `config.toml` for project settings and environment variables for secrets and API keys. The CLI reads these to connect to local stacks and remote projects, ensuring consistent behavior across machines.