用于本地开发和数据库迁移的 Supabase CLI
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 before running bun add -D supabase.
Basic usage or getting-started notes:
- Available via NPM as dev dependency. To install:
- bash
- To install the beta release channel:
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/supabase/cli/HEAD/README.md
Documentation
- https://supabase.com/docs/reference/cli/about