@expressots/cli

中文文档
4.3.0发布于 2026/09/13MIT近 30 天下载 102万

Expressots CLI - modern, fast, lightweight nodejs web framework (@cli)

原始使用文档
文档目录8 节
  1. Install
  2. What This Package Does
  3. Quick Look
  4. Runtime
  5. Documentation
  6. Contributing
  7. Support the project
  8. License
ExpressoTS

@expressots/cli

Command-line tool for scaffolding, generating, and deploying ExpressoTS applications.

npm License Discord Build

Documentation · CLI Reference · Project Board · Community


Install

npm i -g @expressots/cli

Or scaffold a project without a global install:

npx @expressots/cli new my-app

Note: scaffolding fetches templates from expressots/templates at the git tag matching the CLI version (for example, CLI 4.0.0 clones the v4.0.0 templates tag), so the CLI and its templates always move together.

What This Package Does

The ExpressoTS CLI creates new projects, generates controllers, use-cases, providers, and modules, manages CI/CD pipelines, Docker and Kubernetes configs, and handles deployment workflows, all from the terminal.

Quick Look

expressots new my-app
expressots new edge-api --template micro --package-manager pnpm --target cloudflare
expressots generate usecase user/create
expressots dev

Cloudflare Workers scaffolding is available for the micro template through the explicit --target cloudflare flag.

Runtime

expressots dev and expressots prod launch the app with Bun when the project was created with Bun (a bun.lock is present) and the bun binary is installed; otherwise they use Node (tsx in dev). Override per invocation with --runtime node|bun, or for scripts and CI with EXPRESSOTS_RUNTIME=node|bun. expressots build always compiles with tsc.

Documentation

For guides, API reference, architecture patterns, and examples visit doc.expresso-ts.com.

Contributing

Welcome to the ExpressoTS community. See the Contributing Guide for how to get involved.

Support the project

License

MIT. See LICENSE.

版本与发布记录

@expressots/cli 共发布 45 个版本,首次发布于 2023/02/26;过去 12 个月发布了 13 个版本。

版本发布日期距今
4.3.0latest2026/09/132 个月前
4.2.12026/08/043 个月前
4.2.02026/08/043 个月前
4.1.12026/07/283 个月前
4.1.02026/07/283 个月前
4.0.02026/07/173 个月前

其他发布通道:beta → 3.0.0-beta.4,preview → 4.0.0-preview.2,next → 4.0.0-preview.3.4。

关于 @expressots/cli 的常见问题

@expressots/cli 是什么?

Expressots CLI - modern, fast, lightweight nodejs web framework (@cli)

如何安装 @expressots/cli?

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

@expressots/cli 支持 TypeScript 吗?

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

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

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

@expressots/cli 可以商用吗?

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

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

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

@expressots/cli 还在维护吗?

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