Supabase CLI

Supabase's official CLI: local stack, database migrations, Edge Functions deploys and type generation from the terminal

CLIHigh risk

supabase/cli

Install

npm install -D supabase

Project install, run with npx supabase.

This is third-party code. Review the repository files before installing.

What it does

The CLI runs the full Supabase stack locally: Postgres, Auth, Realtime, Storage, Edge Functions and the APIs. It creates and applies migrations, diffs schemas, resets the local database and pushes changes to a linked cloud project. Edge Functions are created, served locally and deployed from the same project folder. gen types produces TypeScript types from the local or cloud database. For agents the CLI is useful because every project operation is a plain shell command, and the local stack gives a safe sandbox.

Who it is for. For Supabase developers who keep the schema in migrations and want to hand that work to an agent.

Good fit when

  • You want the agent to write migrations and test them on a local database
  • You need to regenerate TypeScript types after a schema change
  • You need to deploy an Edge Function without the dashboard

Not a fit when

  • The project is not on Supabase
  • You want conversational access to a cloud project without a terminal: the Supabase MCP server covers that

Example request

Create a migration adding a profiles table, apply it to the local database and regenerate types

Limitations

The local stack runs in containers, so Docker or a compatible runtime is required. link and db push work with a Supabase cloud account, which may not be reachable from Russia without a VPN. Container images are pulled from foreign registries.

How to disable. Stop the stack with supabase stop and uninstall the CLI with the same package manager: npm uninstall supabase, brew uninstall supabase or scoop uninstall supabase.

Security check

  • db push changes the cloud database schema
  • Deploys Edge Functions code to the cloud

README in short

The README lists install options: a script, npm, Homebrew, Scoop and Linux packages. It then walks through starting the local stack, linking a cloud project, migrations, Edge Functions and type generation. For contributors it describes the monorepo layout and contribution rules. MIT licensed.

FAQ

How do I link a local project to a cloud one?

Run supabase login, then supabase link. After that db push applies migrations to the cloud database.

Can I install it without Node.js?

Yes, there are Homebrew, Scoop, Linux packages in releases and an install script.

Editors’ pick

Official skills and agents from the .NET team: performance, MSBuild, NuGet, upgrades, testing, ASP.NET Core, Blazor and MAUI

PluginMedium risk5.4K
Editors’ pick

Laravel's official MCP server, guidelines and skills: the agent sees the DB schema, logs and package versions and searches ecosystem docs

MCP serverMedium risk3.6K
Editors’ pick

The official FastAPI skill, bundled with the package, teaching agents to write code for the installed version

SkillLow risk

Firebase MCP Server

Firebase CLI and MCP Server

Editors’ pick

Official Firebase MCP server from the Firebase CLI: projects, Firestore, Auth, Crashlytics, Remote Config and function logs

MCP serverHigh risk