@concavejs/cli

中文文档
0.0.1-alpha.20发布于 2026/11/11SEE LICENSE IN LICENSETypeScriptES Module近 30 天下载 1.4万

CLI for developing, checking, importing, exporting, and deploying Concave apps

原始使用文档
文档目录3 节
  1. Get started
  2. Commands
  3. Requirements

@concavejs/cli

The command-line interface for Concave, a platform-agnostic, Convex-compatible backend for Cloudflare Workers, Bun, and Node.js.

Concave is an alpha. Use the compatibility matrix to confirm the surface your application needs before migrating or deploying.

Get started

Existing Convex applications keep their convex/ directory and convex imports:

npx @concavejs/cli init
npx @concavejs/cli dev

dev auto-detects Bun or Node. Select a runtime with --bun, --node or --cf (Cloudflare via Wrangler). Deploy to Cloudflare with npx @concavejs/cli deploy.

See the quickstart and CLI reference for configuration, migration, deployment, and operator commands.

Commands

Run concave --help for the full list. Main groups:

GroupCommands
Set upinit, rules, codegen, components, function-spec
Developdev, seed, run, data, logs, doctor
Verify and agentscheck --json, verify, inspect, mcp
Deploydeploy, build, rollback, destroy, status, deployments, migrations
Accessadmin-key (print, rotate), login, env, auth (including auth init for Convex Auth)
Dataexport, import
Previewcloud (multi-tenant hosting)

A durable concave deploy mints an admin key. Use concave admin-key print to read it. See the CLI reference.

Requirements

  • Node.js 22.5 or newer, or Bun
  • The convex package in the application for Convex-compatible types and APIs

When Bun hands dev --node to Node.js, the CLI probes that executable before launch. Set NODE_BIN to select a specific Node.js executable; the CLI only adds --experimental-sqlite when the selected release requires it.

See the public support policy for the alpha support boundary. Concave is licensed under custom functional-source terms. Use the Concave Discord for alpha feedback.

版本与发布记录

@concavejs/cli 共发布 21 个版本,首次发布于 2026/02/05;过去 12 个月发布了 21 个版本。

版本发布日期距今
0.0.1-alpha.20latest2026/11/11今天
0.0.1-alpha.19alpha2026/07/123 个月前
0.0.1-alpha.182026/07/094 个月前
0.0.1-alpha.172026/07/054 个月前
0.0.1-alpha.162026/07/024 个月前
0.0.1-alpha.152026/06/304 个月前

关于 @concavejs/cli 的常见问题

@concavejs/cli 是什么?

CLI for developing, checking, importing, exporting, and deploying Concave apps

如何安装 @concavejs/cli?

在项目目录运行 npm install @concavejs/cli,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:wrangler(>=3.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 concave,可以用 npx concave 直接运行。

@concavejs/cli 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@concavejs/cli 支持 ESM 还是 CommonJS?

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

@concavejs/cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.5.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@concavejs/cli 可以商用吗?

@concavejs/cli 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@concavejs/cli 的下载量有多少?

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

@concavejs/cli 还在维护吗?

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