zerone-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZerone CLI 工具集
Zerone CLI Toolset
Zerone CLI () 是团队内部的前端工程化工具,提供四大核心功能。
@zeronejs/cli所有 zerone 命令需要 权限执行,否则无法访问全局 node_modules 导致命令失败。
required_permissions: ["all"]Zerone CLI () is an internal frontend engineering tool for the team, providing four core functions.
@zeronejs/cliAll zerone commands need to be executed with the permission, otherwise they will fail to access the global node_modules and cause command execution failure.
required_permissions: ["all"]功能索引(按使用频率排序)
Function Index (sorted by usage frequency)
根据用户意图匹配对应功能,阅读对应的 references 文档后执行操作。
Match the corresponding function according to the user's intention, and perform the operation after reading the corresponding references document.
1. API 后端接口生成(最常用)
1. API Backend Interface Generation (most frequently used)
触发词:生成接口、更新接口、pnpm api、新增 API 模块、生成 API 模块 xxx
两种场景:
| 场景 | 用户说 | 操作 |
|---|---|---|
| 更新已有模块 | "更新 mcp 的接口" | 直接执行 |
| 创建新模块 | "生成 API 模块 gstore" | 创建整套文件(request.ts、swagger.config.json、.env、package.json script) |
详细文档 → api-generation.md
Trigger words: generate interface, update interface, pnpm api, add API module, generate API module xxx
Two scenarios:
| Scenario | User Input | Operation |
|---|---|---|
| Update existing module | "Update mcp's interface" | Execute |
| Create new module | "Generate API module gstore" | Create a complete set of files (request.ts, swagger.config.json, .env, package.json script) |
Detailed documentation → api-generation.md
2. 字体图标管理
2. Font Icon Management
触发词:图标、iconfont、pnpm font、更新图标、icon、at.alicdn.com 链接
三种场景:
| 场景 | 用户说 | 操作 |
|---|---|---|
| 更新图标 | 发了一个 | 更新 config.json → 执行 |
| 首次创建 | "添加 iconfont" | 确保 package.json 有 font 脚本 → 创建 config → 执行 |
| 图标使用 | "怎么用图标" | class 格式: |
详细文档 → font-grabber.md
Trigger words: icon, iconfont, pnpm font, update icon, at.alicdn.com link
Three scenarios:
| Scenario | User Input | Operation |
|---|---|---|
| Update icon | Sends a | Update config.json → Execute |
| First creation | "Add iconfont" | Ensure that the font script exists in package.json → Create config → Execute |
| Icon usage | "How to use icons" | Class format: |
Detailed documentation → font-grabber.md
3. 创建前端项目
3. Frontend Project Creation
触发词:创建项目、新建项目、pnpm create zerone、脚手架、初始化项目
执行 进入交互式选择,用户自行选择模板(giime-ts、tailwind-ts、admin-ts 等)。
pnpm create zerone详细文档 → create-project.md
Trigger words: create project, new project, pnpm create zerone, scaffolding, initialize project
Execute to enter interactive selection, and the user can choose the template independently (giime-ts, tailwind-ts, admin-ts, etc.).
pnpm create zeroneDetailed documentation → create-project.md
4. 工作日志
4. Work Log
触发词:日报、周报、月报、工作日志、zerone log
使用 基于 Git 提交记录生成日报/周报/月报。
zerone log详细文档 → zerone-log.md
Trigger words: daily report, weekly report, monthly report, work log, zerone log
Use to generate daily/weekly/monthly reports based on Git commit records.
zerone logDetailed documentation → zerone-log.md