@firecms/cli

中文文档
3.5.2发布于 2026/11/11MITTypeScriptESM + CJS构建来源已验证近 30 天下载 2939

A CLI to perform FireCMS operations

原始使用文档
文档目录5 节
  1. FireCMS CLI
  2. CLI
  3. Migrating from Rowy
  4. Using different templates
  5. Development only

FireCMS CLI

This CLI tool allows you to create new FireCMS projects and to deploy them to FireCMS Cloud. IMPORTANT: You should not be using this tool directly, but firecms instead.

CLI

You can use the following commands:

firecms login
firecms init
firecms deploy
firecms migrate rowy --project=your-project-id

Migrating from Rowy

firecms migrate rowy reads the table settings Rowy keeps in Firestore under _rowy_ and writes:

  • collections/: one FireCMS collection per Rowy table, and an index.ts exporting rowyCollections
  • rowy-scripts/: the derivative, action, default value, formula, extension and webhook code Rowy ran, to port
  • MIGRATION_REPORT.md: what each column became, and what is left to do

It only reads Rowy's configuration. It does not read documents and writes nothing to your project. It signs in with your gcloud account (gcloud auth login), so no service account key is needed. Webhook verification secrets are never copied.

firecms migrate rowy --project=your-project-id --target=cloud        # imports from @firecms/cloud
firecms migrate rowy --project=your-project-id --target=self-hosted  # imports from @firecms/core (default)
firecms migrate rowy --input=rowy-config.json                         # offline, from { settings, schemas, groupSchemas }

Other options: --out <folder> (default ./rowy-migration), --tables <id,id>, --force.

Using different templates

You can initialize a new project using different templates. Please not that these templates can't be deployed to FireCMS Cloud. For example:

For FireCMS Cloud

firecms init

For FireCMS PRO:

firecms init --pro

For FireCMS with Astro (self-hosted with Astro SSG/SSR and blog support):

firecms init --astro

For FireCMS Community (MIT licensed):

firecms init --community

To run locally

For development purposes, you can link the package locally.

npm link firecms

Development only

You can change the environment when deploying to FireCMS Cloud by defining the --env variable. Possible values are prod (default) and dev.

firecms deploy --env dev

版本与发布记录

@firecms/cli 共发布 457 个版本,首次发布于 2023/10/27;过去 12 个月发布了 79 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.5.2latest2026/11/114 天前
3.5.2-canary.a0001bdcanary2026/11/114 天前
3.5.2-canary.a36570e2026/10/2718 天前
3.5.2-canary.09e12812026/10/2718 天前
3.5.2-canary.c5764a32026/10/131 个月前
3.5.2-canary.16bf7bb2026/10/131 个月前

其他发布通道:pre → 3.0.0-canary.297,canary → 3.5.2-canary.a0001bd。

关于 @firecms/cli 的常见问题

@firecms/cli 是什么?

A CLI to perform FireCMS operations

如何安装 @firecms/cli?

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

@firecms/cli 支持 TypeScript 吗?

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

@firecms/cli 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@firecms/cli 可以商用吗?

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

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

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

@firecms/cli 还在维护吗?

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