Zerone CLI Toolset
Zerone 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)
Match the corresponding function according to the user's intention, and perform the operation after reading the corresponding references document.
1. API Backend Interface Generation (most frequently used)
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 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. Font Icon Management
Trigger words: icon, iconfont, pnpm font, update icon, at.alicdn.com link
Three scenarios:
| Scenario | User Input | Operation |
|---|
| Update icon | Sends a link | Update config.json → Execute |
| First creation | "Add iconfont" | Ensure that the font script exists in package.json → Create config → Execute → Import into main.ts |
| Icon usage | "How to use icons" | Class format: acore-font icon-{icon name}
|
Detailed documentation → font-grabber.md
3. Frontend Project Creation
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.).
Detailed documentation → create-project.md
4. Work Log
Trigger words: daily report, weekly report, monthly report, work log, zerone log
Use
to generate daily/weekly/monthly reports based on Git commit records.
Detailed documentation → zerone-log.md