AgentSkillsCN

supabase-cli

在通过 Supabase CLI 管理 Supabase 项目或执行迁移操作时使用,包括本地开发、数据库迁移以及远程推送/拉取工作流。

SKILL.md
--- frontmatter
name: supabase-cli
description: Use when managing Supabase projects or migrations via the Supabase CLI, including local dev, migrations, and remote push/pull workflows.

Supabase CLI

Use this skill for Supabase CLI workflows (local dev, migrations, linking, push/pull).

Workflow

  1. Prefer local development workflows before pushing changes remotely.
  2. Keep migrations in supabase/migrations and treat them as the source of truth.
  3. Use supabase db push to apply migrations to remote projects.
  4. Use supabase db pull to sync remote schema back to local migrations when needed.

References

  • See references/supabase-cli.md for the full CLI reference.