EasyEDA Pro (嘉立创 EDA 专业版) desktop client ships with a command-line client (CLI) and a local bridge service. They let you control a running editor from a script, or let an AI coding assistant drive the editor directly — from automated design all the way to exporting manufacturing files.
嘉立创 EDA 专业版客户端内置了命令行客户端(CLI)与本地桥接服务,允许你以脚本方式控制正在运行的编辑器,或由 AI 编程助手直接驱动编辑器完成设计工作,实现从自动化设计到导出制造文件的全流程。
- Opening and creating projects, and managing multiple editor windows (sessions);
- Executing JavaScript inside the editor, and therefore calling any extension API;
- Querying the extension API reference and the design file format reference (
.eprj3); - Returning results as uniform JSON, which is convenient for scripts and AI to parse;
- Running as an MCP server, serving directly as a tool for an AI coding assistant.
| Document | Description |
|---|---|
| Command-Line Client | Full human-oriented reference: preparation, sessions, invoke, MCP server mode, drawing schematics via the extension API, exporting netlist / BOM / screenshots / PCB, and generating project files directly |
| For AI: Command-Line Client | Written for AI coding assistants: hard constraints, rules and verification checkpoints, directly executable commands, and two end-to-end workflows |
If you are using an AI coding assistant (Claude Code, OpenCode, QwenCode, GitHub Copilot, etc.) to drive EasyEDA Pro, point the AI at cli-for-ai.md — it is designed to be followed directly by agents.
Note: The CLI requires EasyEDA Pro client V4.1.60 or above.
# The CLI is built into the desktop client; verify the runtime environment first
easyeda-pro doctor
# Open or create a project and get a session ID
easyeda-pro session open
# Execute JavaScript inside the editor
easyeda-pro invoke --ext-uuid eda "eda.sys_Message.showMessage('Hello EasyEDA!')"See Command-Line Client for the complete guide.
- 打开、新建工程,并在多个编辑器窗口(会话)之间进行管理;
- 在编辑器内执行 JavaScript 代码,从而调用任意 扩展 API;
- 查询扩展 API 参考文档与设计文件格式规范(
.eprj3); - 以统一的 JSON 格式返回执行结果,便于脚本与 AI 解析;
- 以 MCP 服务器模式运行,直接作为 AI 编程助手的工具。
| 文档 | 说明 |
|---|---|
| 命令行客户端 | 面向人的完整参考:准备工作、会话管理、invoke、MCP 服务器模式、通过扩展 API 绘制原理图、导出网表 / BOM / 截图 / PCB,以及直接生成工程文件 |
| For AI:命令行客户端 | 面向 AI 编程助手编写:硬性约束、规则与校验检查点、可直接执行的命令,以及两条端到端工作流 |
如果你正使用 AI 编程助手(Claude Code、OpenCode、QwenCode、GitHub Copilot 等)驱动嘉立创 EDA 专业版,请让 AI 遵循 cli-for-ai.md 执行——该文档专为 Agent 直接执行而编写。
注意: 命令行客户端要求客户端版本在 V4.1.60 及以上。
# CLI 内置于客户端,先确认运行环境
lceda-pro doctor
# 打开或新建工程并获得会话 ID
lceda-pro session open
# 在编辑器内执行 JavaScript 代码
lceda-pro invoke --ext-uuid eda "eda.sys_Message.showMessage('Hello EasyEDA!')"完整指南请阅读命令行客户端。
- Version requirement / 版本要求:the CLI requires EasyEDA Pro client
V4.1.60or above; older versions do not include the command-line client. / 命令行客户端要求客户端版本在V4.1.60及以上,更早版本的客户端不包含该功能。 - The CLI requires the desktop client of EasyEDA Pro; the browser / online edition does not support sessions and the bridge.
- 命令行客户端要求使用客户端版本的嘉立创 EDA 专业版,浏览器 / 在线版本不支持会话与桥接功能。
- The executable name differs between distributions:
easyeda-pro(international) andlceda-pro(China). The documentation above matches each distribution accordingly. - 可执行文件名因发行渠道不同而异:国际版为
easyeda-pro,国内版为lceda-pro。上文各语言文档与对应发行渠道保持一致。
Apache-2.0