Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cli

> 数据库
Open source

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.

38.8K stars0 likes5 views
WebsiteGitHub

About

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.

</picture>

Develop locally and deploy to the Supabase Platform from your terminal.


Supabase CLI brings the Supabase Platform to your terminal. Run the full local stack, manage database migrations, deploy Edge Functions, generate types, and automate project workflows.

Installation

…

Linux packages are available from Releases. Community-maintained packages are also available through pkgx and Nixpkgs.

Start Local Development

Create a Supabase workspace and start the local stack:

bash
supabase init
supabase start
supabase status

The local stack includes Postgres, Auth, Realtime, Storage, Edge Functions, and the Supabase APIs.

Start from a template:

bash
supabase bootstrap

Link A Project

Connect your local workspace to a hosted Supabase project:

bash
supabase login
supabase link

Manage Your Database

Create migrations, compare schemas, and apply changes locally or to your linked project:

bash
supabase migration new create_profiles
supabase db diff
supabase db push
supabase db reset

Deploy Edge Functions

Build, serve, and deploy functions from the same project workspace:

bash
supabase functions new hello-world
supabase functions serve
supabase functions deploy hello-world

Generate Types

Generate TypeScript types from your local database or linked project:

bash
supabase gen types --local
supabase gen types --linked

Reference

Use --help on any command to explore flags and examples:

bash
supabase db --help
supabase functions deploy --help
  • CLI reference
  • Local development guide
  • Supabase docs

Developing

This repository is a pnpm monorepo. The published package lives in apps/cli.

bash
pnpm install
pnpm check:all

cd apps/cli

pnpm types:check
pnpm run test:unit && pnpm run test:integration

Useful source entry points:

Path Purpose
apps/cli TypeScript/Bun CLI package
apps/cli-go Go CLI source used by the CLI
packages/stack Local Supabase stack runtime
packages/config Config schema and generated types
packages/api Typed Supabase Management API client

After a fresh clone, install the reference repositories used for agent and developer inspection:

bash
pnpm repos:install

Contributing

We love focused pull requests with a clear problem, a small surface area, and tests that match the user-facing behavior.

Open an issue first and wait for a maintainer to add the open-for-contribution label before starting work — external pull requests that don't link a labeled, open issue are closed automatically. See CONTRIBUTING.md for the full workflow.

Before opening a PR, run repo-wide quality checks from the repository root, then run the relevant package tests from each workspace you touched. For each touched TypeScript workspace (or any workspace that declares it), also run its pnpm types:check script. For example:

bash
# From the repository root:
pnpm check:all

# From apps/cli (a touched TypeScript workspace):
cd apps/cli
pnpm types:check
pnpm run test:unit && pnpm run test:integration

# Repeat the relevant package tests for every touched workspace; run
# pnpm types:check there too when that workspace declares the script.

PR titles must use conventional commits, for example:

fix(cli): handle linked projects without cached service versions

License

Supabase CLI packages are released under the MIT license.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptclidatabasedatabase-managementdbms

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedDec 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库