@forinda/kickjs-cli (英语)
KickJS的CLI——项目脚手架、REST和最小模块发电机、dev/building/启动命令.
安装
pnpm add -D @forinda/kickjs-cli
# or scaffold a fresh project
npx @forinda/kickjs-cli new my-api
图标
CLI是一个dev依赖,所以在外壳中运行它通过您的软件包管理器—— npx kick dev, (中文(简体) ), pnpm exec kick dev, (中文(简体) ), yarn kick dev, (中文(简体) ), bunx kick dev ——或通过项目的脚本(npm run dev) (中文(简体) ). 一个赤裸的 kick 需要全局安装.
kick new <name> # Scaffold a new KickJS project
kick dev # Start dev server with Vite HMR
kick build # Production build via Vite
kick start # Run production build
kick g module <name> # Controller, service, repository, DTOs, tests
kick g scaffold <name> <fields…> # CRUD module from field definitions
kick g controller|service|middleware|guard|adapter|plugin|contributor|dto|test <name>
kick g agents # Regenerate AGENTS.md / CLAUDE.md / skills after an upgrade
kick rm module <name> # Remove a module
kick add <pkg> # Install a KickJS package + peers
kick add upload # Install the multipart driver for your runtime
kick add --list # Show all available packages
kick doctor # Pre-flight checks (engine peers, upload driver, env wiring)
kick mcp start # Run app as an MCP stdio server
kick typegen # Refresh KickRoutes / KickEnv / KickRuntimeRegister type maps
kick new 交互( 模板、 运行时间、 软件包管理器、 寄存器、 软件包多选择、 git init、 安装) —— 每个提示都有 CI 的旗: --template rest|minimal|fullstack, (中文(简体) ), --runtime express|fastify|h3, (中文(简体) ), --pm pnpm|npm|yarn|bun, (中文(简体) ), --repo inmemory|<db-name> (例如:. postgres, (中文(简体) ), --packages swagger,ws,queue,devtools, (中文(简体) ), --no-git, (中文(简体) ), --no-install, (中文(简体) ), --force, (中文(简体) ), -y/--yes。 。 。 .
HTTP 运行时间
KickJS 运行 快递 (违约), 快捷化,或 h3 (韩语) - 在脚手架时选择引擎 kick new --runtime,则 CLI 安装正确的引擎对等器并写入 runtime 输入 kick.config.ts。然后,该字段将驱动 Dep-aware 命令:
kick new my-api --runtime fastify # scaffolds fastify + @fastify/middie, runtime: 'fastify'
kick add upload # → @fastify/multipart (express → multer, h3 → built-in)
kick doctor # verifies the engine peers + upload driver are present
kick typegen # emits KickRuntimeRegister so ctx.app / getRuntimeApp() are typed to the engine
文档
kickjs.app/guide/cli-命令 ——每个命令+旗帜,自定义命令通过 kick.config.ts发电机结构.
许可证
麻省理工学院