@foal/cli

中文文档
5.3.0发布于 2026/07/09MITTypeScriptCommonJS近 30 天下载 8247

CLI tool for FoalTS

原始使用文档

Logo

What is Foal?

Foal (or FoalTS) is a Node.JS framework for creating web applications.

It provides a set of ready-to-use components so you don't have to reinvent the wheel every time. In one single place, you have a complete environment to build web applications. This includes a CLI, testing tools, frontend utilities, scripts, advanced authentication, ORM, deployment environments, GraphQL and Swagger API, AWS utilities, and more. You no longer need to get lost on npm searching for packages and making them work together. All is provided.

But while offering all these features, the framework remains simple. Complexity and unnecessary abstractions are put aside to provide the most intuitive and expressive syntax. We believe that concise and elegant code is the best way to develop an application and maintain it in the future. It also allows you to spend more time coding rather than trying to understand how the framework works.

Finally, the framework is entirely written in TypeScript. The language brings you optional static type-checking along with the latest ECMAScript features. This allows you to detect most silly errors during compilation and improve the quality of your code. It also offers you autocompletion and a well documented API.

https://foalts.org

版本与发布记录

@foal/cli 共发布 101 个版本,首次发布于 2018/06/13;过去 12 个月发布了 5 个版本。

版本发布日期距今
5.3.0latest2026/07/094 个月前
5.2.12026/02/168 个月前
5.2.02026/01/239 个月前
5.1.32026/01/1410 个月前
5.1.22026/01/0310 个月前
5.1.12025/11/091 年前

关于 @foal/cli 的常见问题

@foal/cli 是什么?

CLI tool for FoalTS

如何安装 @foal/cli?

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

@foal/cli 支持 TypeScript 吗?

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

@foal/cli 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

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

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

@foal/cli 可以商用吗?

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

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

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

@foal/cli 还在维护吗?

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