zerone-cli

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Zerone CLI 工具集

Zerone CLI Toolset

Zerone CLI (
@zeronejs/cli
) 是团队内部的前端工程化工具,提供四大核心功能。
所有 zerone 命令需要
required_permissions: ["all"]
权限执行
,否则无法访问全局 node_modules 导致命令失败。
Zerone CLI (
@zeronejs/cli
) is an internal frontend engineering tool for the team, providing four core functions.
All zerone commands need to be executed with the
required_permissions: ["all"]
permission
, otherwise they will fail to access the global node_modules and cause command execution failure.

功能索引(按使用频率排序)

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 的接口"直接执行
pnpm api: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:
ScenarioUser InputOperation
Update existing module"Update mcp's interface"Execute
pnpm api:mcp
directly
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 链接
三种场景:
场景用户说操作
更新图标发了一个
//at.alicdn.com/...
链接
更新 config.json → 执行
pnpm font
首次创建"添加 iconfont"确保 package.json 有 font 脚本 → 创建 config → 执行
pnpm font
→ 引入 main.ts
图标使用"怎么用图标"class 格式:
acore-font icon-{图标名}
详细文档 → font-grabber.md
Trigger words: icon, iconfont, pnpm font, update icon, at.alicdn.com link
Three scenarios:
ScenarioUser InputOperation
Update iconSends a
//at.alicdn.com/...
link
Update config.json → Execute
pnpm font
First creation"Add iconfont"Ensure that the font script exists in package.json → Create config → Execute
pnpm font
→ Import into main.ts
Icon usage"How to use icons"Class format:
acore-font icon-{icon name}
Detailed documentation → font-grabber.md

3. 创建前端项目

3. Frontend Project Creation

触发词:创建项目、新建项目、pnpm create zerone、脚手架、初始化项目
执行
pnpm create zerone
进入交互式选择,用户自行选择模板(giime-ts、tailwind-ts、admin-ts 等)。
详细文档 → create-project.md
Trigger words: create project, new project, pnpm create zerone, scaffolding, initialize project
Execute
pnpm create zerone
to enter interactive selection, and the user can choose the template independently (giime-ts, tailwind-ts, admin-ts, etc.).
Detailed documentation → create-project.md

4. 工作日志

4. Work Log

触发词:日报、周报、月报、工作日志、zerone log
使用
zerone log
基于 Git 提交记录生成日报/周报/月报。
详细文档 → zerone-log.md
Trigger words: daily report, weekly report, monthly report, work log, zerone log
Use
zerone log
to generate daily/weekly/monthly reports based on Git commit records.
Detailed documentation → zerone-log.md