@diagrammo/dgmo-cli (英语)
这个 dgmo 命令 - 渲染 总干事 从您的终端向 PNG 或 SVG 绘制图表,并将 DGMO MCP 服务器连接到 AI 编辑器中 .
npm install -g @diagrammo/dgmo-cli # macOS and Linux
npx @diagrammo/dgmo-cli diagram.dgmo # no install
更喜欢你的系统包管理器? Homebrew和Arch/Omarchy(帕克曼)指示 图表.app/dev。 。 。 .
渲染
dgmo diagram.dgmo # PNG (the default)
dgmo diagram.dgmo -o output.svg # format follows the extension
cat diagram.dgmo | dgmo > out.png # stdin
dgmo diagram.dgmo --theme dark --palette catppuccin
dgmo share diagram.dgmo # shareable link, copied to the clipboard
AI 编辑器
dgmo install # auto-detects what you have, no prompts
dgmo install claude-code # or name one
探测克洛德代码, Codex,克洛德桌面, Cursor, Windsurf和Copilot, 并在 DGMO MCP 服务器上分别指向. dgmo mcp 直接运行服务器.
还有
dgmo types # the chart types, and what each is for
dgmo diagnostics # every diagnostic code the parser can emit
哪个软件包
| 软件包 | 这是什么 |
|---|---|
@diagrammo/dgmo-cli | 这个.. dgmo 命令 |
@diagrammo/dgmo | 图书馆: render(),解析器,调色板 |
@diagrammo/dgmo-mcp | 用此软件包安装的 MCP 服务器 |
司令部在内部 @diagrammo/dgmo 到0.61.0为止。 它移动出来,以便一个文件建立呼叫 render() 停止安装命令行程序和它从未到达的本土光栅.
充分语言参考和文件: 图表.app。 。 。 .
许可证
麻省理工学院