create-exisjs

中文文档
0.10.2发布于 2026/11/03MITTypeScriptCommonJS构建来源已验证

Scaffold a new ExisJS application with one command: npm create exisjs@latest

原始使用文档
文档目录11 节
  1. Quickstart
  2. npx
  3. npm
  4. pnpm
  5. yarn
  6. bun
  7. Non-Interactive & CI Flags
  8. Example
  9. Generated Project Layout
  10. Documentation
  11. License

create-exisjs

npm create-exisjs package npm license GitHub discussions

create-exisjs is the official CLI tool for scaffolding new ExisJS applications with interactive prompts and preconfigured starter templates.


Quickstart

Run the initialization command directly without installing globally:

npx

npx create-exisjs@latest my-backend

npm

npm create exisjs@latest my-backend

pnpm

pnpm create exisjs@latest my-backend

yarn

yarn create exisjs my-backend

bun

bun create exisjs@latest my-backend

Non-Interactive & CI Flags

You can pass command-line arguments to skip prompts and automate project generation:

FlagDescription
-y, --yesSkip all interactive prompts and use default settings
--functionalSelect the Functional routing paradigm (controller, route.*)
--oopSelect the Class-Based (OOP) routing paradigm (@Controller, @Get, @Post)
--ts, --typescriptInitialize with TypeScript support (default)
--js, --javascriptInitialize with JavaScript support
--eslint / --no-eslintEnable or disable ESLint configuration
--skip-installGenerate files without automatically running npm install
--skip-gitSkip initializing a local Git repository

Example

npx create-exisjs@latest my-backend --oop --ts --eslint

Generated Project Layout

A generated ExisJS project includes a standard file-system routing structure:

my-backend/
├── src/
│   ├── http/
│   │   ├── server.ts         # Server lifecycle hooks (onStart, onClose)
│   │   ├── boundary.ts       # Root request boundary & security middleware
│   │   ├── route.ts          # Root route handler (GET /)
│   │   └── health/
│   │       └── route.ts      # Healthcheck endpoint (GET /health)
│   ├── config/
│   │   └── env.ts            # Environment schema validation with tex.env
│   ├── database/
│   │   └── db.ts             # Database connection lifecycle setup
│   └── cron/
│       └── cleanup.ts        # Background cron task definitions
├── tests/
│   └── index.test.ts         # Automated test suite using Node.js test runner
├── .env                      # Environment variables
├── exis.config.ts            # Framework configuration
├── package.json              # Scripts (dev, build, start, test)
└── tsconfig.json             # TypeScript configuration with @/* path alias

Documentation

For full guides and architecture documentation, visit the ExisJS Repository and exisjs.com.


License

MIT License

版本与发布记录

create-exisjs 共发布 27 个版本,首次发布于 2026/09/06;过去 12 个月发布了 27 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.10.2latest2026/11/03今天
0.10.12026/10/2311 天前
0.10.02026/10/2113 天前
0.10.0-beta.0beta2026/10/2113 天前
0.10.0-alpha.2alpha2026/10/2113 天前
0.10.0-alpha.12026/10/2014 天前

关于 create-exisjs 的常见问题

create-exisjs 是什么?

用一个命令搭建一个新的ExisJS应用程序:npm create exisjs@latest

如何安装 create-exisjs?

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

create-exisjs 支持 TypeScript 吗?

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

create-exisjs 支持 ESM 还是 CommonJS?

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

create-exisjs 需要什么版本的 Node.js?

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

create-exisjs 可以商用吗?

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

create-exisjs 还在维护吗?

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