Supabase CLI logo

Supabase CLI

Runs the Supabase stack locally, manages Postgres migrations, deploys Edge Functions, and generates TypeScript types from your database schema.

install

Supabase CLI is a command-line tool for developing against the Supabase Platform from a terminal. It runs a local Supabase stack (Postgres, Auth, Realtime, Storage, Edge Functions, and the Supabase APIs) via supabase init, supabase start, and supabase status, and can scaffold a project from a template with supabase bootstrap.

For database work, it creates migrations (supabase migration new), compares schemas (supabase db diff), and applies changes with supabase db push or supabase db reset, either locally or against a linked hosted project. supabase login and supabase link connect a local workspace to a hosted Supabase project.

It also handles Edge Functions (functions new, functions serve, functions deploy) and generates TypeScript types from a local or linked database with supabase gen types --local or --linked. Every command supports --help for flags and examples.

It is aimed at developers building on Supabase who want local development and deployment in one workflow. It installs through npm, Homebrew, Scoop, or Linux packages (.apk, .deb, .rpm, .pkg.tar.zst), with beta channels for npm, Homebrew, and Scoop.

Installation

# via Homebrew
brew install supabase/tap/supabase
# via npm
npm install -D supabase
# via Scoop
scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
scoop install supabase

Alternatives & related tools

add a badge to your README

Maintain Supabase CLI? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/supabase-cli.svg)](https://www.trmn.sh/tools/supabase-cli?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/supabase-cli?utm_source=badge"><img src="https://www.trmn.sh/badge/supabase-cli.svg" alt="Featured on trmn" height="20"></a>