# Supabase CLI for Local Development and Database Migrations

> Supabase CLI manages local Supabase projects, database migrations, types, and edge functions. It is the upstream command-line tool for developers who need to work against Supabase from the terminal and CI.

- Skill: `agentskillexchange/supabase-cli-for-local-development-and-database-migrations` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/supabase-cli-for-local-development-and-database-migrations`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/supabase-cli-for-local-development-and-database-migrations/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/supabase-cli-for-local-development-and-database-migrations

---


# Supabase CLI for Local Development and Database Migrations

Supabase CLI manages local Supabase projects, database migrations, types, and edge functions. It is the upstream command-line tool for developers who need to work against Supabase from the terminal and CI.

## Prerequisites

Go, Node.js

## Installation

Use the upstream install or setup path that matches your environment:
- npm i supabase --save-dev
- npm i supabase@beta --save-dev
- brew install supabase/tap/supabase
- brew install supabase/tap/supabase-beta

Requirements and caveats from upstream:
- For Bun versions below v1.0.17, you must add supabase as a [trusted dependency](https://bun.sh/guides/install/trusted) before running bun add -D supabase.

Basic usage or getting-started notes:
- Available via [NPM](https://www.npmjs.com) as dev dependency. To install:
- bash
- To install the beta release channel:

- Source: https://github.com/supabase/cli
- Extracted from upstream docs: https://raw.githubusercontent.com/supabase/cli/HEAD/README.md

## Documentation

- https://supabase.com/docs/reference/cli/about

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/supabase-cli-local-development-database-migrations/)

