@byted-supabase/cli

中文文档
0.1.38发布于 2026/11/04MITES Module零依赖近 30 天下载 9258

Byted Supabase CLI

原始使用文档
文档目录13 节
  1. Why this CLI?
  2. Features
  3. Getting started
  4. Install
  5. Authenticate
  6. Create and link a workspace
  7. Build
  8. Update
  9. Documentation
  10. Breaking changes
  11. Developing
  12. Contributing
  13. License

Byted Supabase CLI

npm version license platforms

byted-supabase-cli is the command-line tool for the Volcengine AI-native BaaS platform (Supabase edition). It lets you manage workspaces, run SQL, deploy Edge Functions, move storage objects, host static frontends, and generate TypeScript types — all from one terminal command.

Why this CLI?

This is the Byted / Volcengine distribution of the official Supabase CLI, published to npm as @byted-supabase/cli. It keeps the command shapes you know from upstream where they apply, and targets the Volcengine-operated platform instead of supabase.com:

  • Authenticates with your Volcengine account instead of supabase.com.
  • Manages Volcengine Supabase workspaces, preview branches, computes, and endpoints.
  • Adds platform capabilities that upstream does not have, such as static frontend hosting and first-class support for AI coding agents.

If your backend runs on Volcengine Supabase, this is the CLI to use.

Features

  • Workspace management — create, list, start/stop, and configure workspaces (projects), preview branches (branches), computes (computes), endpoints (endpoints), and network restrictions (network-restrictions).
  • Database access — run SQL against a linked project with db query, pull or dump remote schemas (db pull, db dump), get connection strings, and check performance with db advisors and inspect db.
  • Edge Functions — scaffold (functions new), deploy, download, and list Deno-based Edge Functions, with secrets for their configuration.
  • Storage — manage buckets and objects with storage ls / cp / mv / rm, and provision buckets declaratively with seed buckets.
  • Auth configuration — manage auth settings, hooks, and third-party providers with auth.
  • Type generation — gen types produces TypeScript (or Go / Swift) types straight from your Postgres schema.
  • Frontend hosting — deploy static frontends alongside your workspace with pages.
  • Built for AI agents — mcp serve starts a Model Context Protocol server over stdio, and skills install installs the matching byted-supabase agent skill, so AI assistants like Claude Code can drive the platform for you.

Getting started

Install

The guided setup installs the CLI globally and the matching byted-supabase agent skill:

npx @byted-supabase/cli@latest install

To install only the CLI and get the byted-supabase-cli command:

npm install -g @byted-supabase/cli

Or add it as a project dev dependency:

npm i @byted-supabase/cli --save-dev

npm installs the matching platform package for macOS / Linux / Windows on x86_64 / arm64. There is no postinstall download.

Authenticate

byted-supabase-cli login

This opens a browser for OAuth login with your Volcengine account. On a headless machine, use byted-supabase-cli login --remote to sign in from another device. In CI, skip login entirely and set VOLCENGINE_ACCESS_KEY / VOLCENGINE_SECRET_KEY (or use configure set) instead. See docs/supabase/login.md for details.

# Create a workspace on Volcengine Supabase
byted-supabase-cli projects create my-app

# Scaffold the local supabase/ directory and link it to the workspace
byted-supabase-cli init
byted-supabase-cli link --project-ref <workspace-id>

Build

# Run SQL against the linked workspace
byted-supabase-cli db query "select now()"

# Scaffold and deploy an Edge Function
byted-supabase-cli functions new hello
byted-supabase-cli functions deploy hello

# Generate TypeScript types from the database schema
byted-supabase-cli gen types --lang typescript

Explore the full command surface anytime:

byted-supabase-cli --help

Update

byted-supabase-cli update

Documentation

  • Command reference: run byted-supabase-cli --help (or <command> --help) for the authoritative list — this distribution exposes a different command surface than the upstream Supabase CLI
  • Extended man pages for each command: docs/supabase
  • Login modes and non-interactive behavior: docs/supabase/login.md
  • Library usage examples for building your own tooling: examples

Breaking changes

We follow semantic versioning for changes that directly impact CLI commands, flags, and configurations.

However, due to dependencies on other service images, we cannot guarantee that schema migrations, seed.sql, and generated types will always work for the same CLI major version. If you need such guarantees, we encourage you to pin a specific version of the CLI in package.json.

Developing

To run from source:

# Go >= 1.25
go run . help

Contributing

This project does not accept external contributions or pull requests. Bug reports are welcome on the issue tracker.

License

MIT

版本与发布记录

@byted-supabase/cli 共发布 39 个版本,首次发布于 2026/05/29;过去 12 个月发布了 39 个版本。

版本发布日期距今
0.1.38latest2026/11/044 天前
0.1.372026/11/044 天前
0.1.362026/10/2118 天前
0.1.352026/10/2118 天前
0.1.342026/10/1029 天前
0.1.332026/09/211 个月前

关于 @byted-supabase/cli 的常见问题

@byted-supabase/cli 是什么?

Byted Supabase CLI

如何安装 @byted-supabase/cli?

在项目目录运行 npm install @byted-supabase/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 byted-supabase-cli,可以用 npx byted-supabase-cli 直接运行。

@byted-supabase/cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/byted-supabase__cli 是否存在。

@byted-supabase/cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@byted-supabase/cli 可以商用吗?

@byted-supabase/cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@byted-supabase/cli 的下载量有多少?

根据 npm 官方下载统计,@byted-supabase/cli 在 2026/10/09 – 2026/11/07 这 30 天内被下载 9,258 次,日均约 309 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@byted-supabase/cli 还在维护吗?

最新版本 0.1.38 发布于 2026/11/04(4 天前);至今共发布 39 个版本,其中过去 12 个月发布了 39 个;首次发布于 2026/05/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。