@frontify/frontify-cli

中文文档
6.4.3发布于 2026/10/26ES Module构建来源已验证近 30 天下载 2970

Continuous Integration

原始使用文档
文档目录10 节
  1. Prerequisite
  2. Installation
  3. Content Block
  4. Create
  5. Serve
  6. Deploy
  7. Authentification
  8. Login
  9. Logout
  10. Configuration

Frontify CLI

Continuous Integration

Prerequisite

  • Node >=22

Installation

npm install -g @frontify/frontify-cli
# Or
yarn global add @frontify/frontify-cli

Content Block

Create

npx @frontify/frontify-cli block create <app name>

The content block name needs to be lowercase, spaces are not allowed but you can use an underscore instead.

Example: my_custom_content_block

Serve

frontify-cli block serve

Params:

ParametersDescriptionTypeDefault Value
entryPathPath to the entry file exporting block and settingsstringsrc/index.tsx
portPort for the local development servernumber5600

Deploy

frontify-cli block deploy --instance=<Frontify URL>

The Frontify URL represent your instance URL.

Example: weare.frontify.com or https://weare.frontify.com

Authentification

Login

frontify-cli login --instance=<Frontify URL>

The Frontify URL represent your instance URL.

Example: weare.frontify.com or https://weare.frontify.com

If you are using a domain with self-signed certificate, you will need to put NODE_TLS_REJECT_UNAUTHORIZED=0 before the log in command

Logout

frontify-cli logout

Configuration

macOS: ~/Library/Preferences/frontify-cli-nodejs

版本与发布记录

@frontify/frontify-cli 共发布 143 个版本,首次发布于 2021/07/08;过去 12 个月发布了 28 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
6.4.3latest2026/10/2620 天前
6.4.22026/10/141 个月前
6.4.12026/10/131 个月前
6.4.02026/10/091 个月前
6.2.82026/10/011 个月前
6.2.72026/09/152 个月前

其他发布通道:alpha → 6.0.0-alpha.3。

关于 @frontify/frontify-cli 的常见问题

如何安装 @frontify/frontify-cli?

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

@frontify/frontify-cli 支持 TypeScript 吗?

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

@frontify/frontify-cli 支持 ESM 还是 CommonJS?

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

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

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

@frontify/frontify-cli 可以商用吗?

@frontify/frontify-cli 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

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

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

@frontify/frontify-cli 还在维护吗?

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