CLI Finder / tools / supabase-cli

用于本地 Postgres 和项目流程的 Supabase CLI

在终端管理本地 Supabase 项目、迁移、类型生成和已关联的托管环境。

Agent 适配度: 82/100 已验证发布者 持续维护
82 /100

Strong for database projects when agents are limited to local or read-only operations.

Structured output 74/100

Whether the CLI can return JSON, YAML, or stable machine-readable output.

Non-interactive use 84/100

Whether common workflows can run predictably without an interactive prompt.

Safety boundaries 64/100

Whether read-only, dry-run, scoped auth, and destructive command boundaries are clear.

安装方式

Homebrew $ brew install supabase/tap/supabase
npm $ npm install -g supabase

常用命令

Check local status · 安全 $ supabase status

Shows local service URLs and connection information.

Generate types · 需确认 $ supabase gen types typescript --linked

Creates TypeScript types from the linked project schema.

Reset local database · 高风险 $ supabase db reset

Drops and rebuilds local data, so it should be confirmed.

Agent 使用示例

Codex CLI Use Supabase CLI to inspect project status and generate types. Ask before reset, migration repair, secrets, or deploy commands.

安全说明

  • Agents can safely inspect local status, linked projects, and generated types.
  • Database reset, migration repair, secrets, and deploy commands should require approval.
  • Use local development projects before touching hosted production data.

Agent 可以用它做什么

Supabase CLI 可以帮助 Agent 检查本地开发服务、关联项目、生成数据库类型并验证迁移状态。

适合场景

适合 Supabase 应用开发,尤其是需要先做本地检查,再操作托管项目的流程。