@excli/express

中文文档
3.0.3发布于 2026/11/13ISCTypeScriptES Module近 30 天下载 1986

A cli tool for creating Express.js applications, supporting both JavaScript and TypeScript.

原始使用文档
文档目录17 节
  1. Express Generator
  2. Quick Start
  3. Requirements
  4. Interactive Setup
  5. Running Your Project
  6. Features
  7. Databases
  8. ORM / ODM
  9. Query Builder
  10. Authentication
  11. Docker
  12. Reverse Proxy
  13. Commands
  14. Troubleshooting
  15. Contributing
  16. License
  17. Author

Express Generator

A CLI tool that scaffolds production-ready Express.js projects with TypeScript, Docker, database integration, ORM, and authentication, all pre-configured.

npm version License: ISC Node.js TypeScript

Quick Start

npx @excli/express

Or install globally:

npm install -g @excli/express
excli

Requirements

  • Node.js 20 or higher
  • npm, yarn, pnpm, or bun
  • Docker (optional, only needed for database features)

Interactive Setup

The CLI walks you through these choices:

  1. Project name
  2. Language: TypeScript or JavaScript
  3. Project mode: Development or Production
  4. Dev tools: Git, Vite+, Docker, Logger
  5. Logger: Winston or Pino
  6. Database type: SQL or NoSQL
  7. Database: MySQL, MariaDB, SQLite, PostgreSQL, or MongoDB
  8. Database library category: ORM / ODM or Query Builder
  9. ORM / ODM or Query Builder: Drizzle, TypeORM, Sequelize, Kysely, Mongoose, or the native MongoDB driver
  10. Authentication (optional): Better Auth or Clerk
  11. Cache (optional): Redis
  12. Proxy: Nginx, Caddy, or Traefik
  13. Proxy mode: reverse proxy or load balancing
  14. Package manager: npm, yarn, pnpm, or bun

Running Your Project

cd my-project
npm run dev

Your server will be live at http://localhost:3000.

Features

Databases

MySQL, MariaDB, PostgreSQL, MongoDB, and SQLite are supported. Each has a pre-configured admin panel at http://localhost:6969 after you run npm run db:up:

DatabaseAdmin Panel
MySQL / MariaDBphpMyAdmin
PostgreSQLpgAdmin
MongoDBMongo Express
SQLiteNone needed

Admin panels may take a moment to initialize on first startup.

ORM / ODM

ToolDatabases
Drizzle, TypeORM, SequelizePostgreSQL, MySQL, MariaDB, SQLite
Mongoose, native MongoDB driverMongoDB only

Query Builder

ToolDatabases
KyselyPostgreSQL, MySQL, MariaDB, SQLite

Authentication

  • Better Auth: available with Drizzle and the native MongoDB driver.
  • Clerk: works independently of your chosen ORM.

Docker

Production mode generates:

  • Dockerfile: production-optimized build
  • compose.yaml: multi-service setup
  • .env: development environment variables
  • .env.production: production environment variables (created in production mode)

Reverse Proxy

Nginx, Caddy, and Traefik all support reverse proxying and load balancing. Caddy and Traefik provide automatic HTTPS, while Nginx requires manual TLS configuration but gives you more control.

Commands

npm run dev           # Start development server
npm run format        # Format code with Vite+
npm run build         # Compile TypeScript (TS projects only)
npm run db:up         # Start database services (development)
npm run db:down       # Stop database services (development)
npm run db:prod:up    # Start database services (production)
npm run db:prod:down  # Stop database services (production)

Use the equivalent command for your chosen package manager.

Troubleshooting

Port already in use? Change the ports in your .env file.

Docker not starting? Make sure Docker Desktop is running before npm run db:up.

Proxy not routing traffic? Check that compose.yaml includes the proxy service and that nothing else is bound to port 80.

Contributing

Contributions are welcome. Please read the Contributing Guide before opening a pull request.

License

ISC. See the LICENSE file for details.

Author

Noman [email protected] | @pxycknomdictator

版本与发布记录

@excli/express 共发布 56 个版本,首次发布于 2025/06/14;过去 12 个月发布了 38 个版本。

版本发布日期距今
3.0.3latest2026/11/131 天前
3.0.22026/11/068 天前
3.0.12026/11/0410 天前
3.0.02026/11/0410 天前
2.13.42026/11/0311 天前
2.13.32026/10/2619 天前

关于 @excli/express 的常见问题

@excli/express 是什么?

A cli tool for creating Express.js applications, supporting both JavaScript and TypeScript.

如何安装 @excli/express?

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

@excli/express 支持 TypeScript 吗?

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

@excli/express 支持 ESM 还是 CommonJS?

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

@excli/express 需要什么版本的 Node.js?

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

@excli/express 可以商用吗?

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

@excli/express 的下载量有多少?

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

@excli/express 还在维护吗?

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