@diagrammo/dgmo-cli
v0.63.0
Published
Render DGMO diagrams to PNG or SVG from the terminal, and wire the DGMO MCP server into AI editors.
Maintainers
Readme
@diagrammo/dgmo-cli
The dgmo command — render DGMO diagrams to PNG or SVG from your terminal, and wire the DGMO MCP server into AI editors.
brew install diagrammo/dgmo/dgmo # macOS
npm install -g @diagrammo/dgmo-cli # anywhere
npx @diagrammo/dgmo-cli diagram.dgmo # no installRendering
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 clipboardAI editors
dgmo install # auto-detects what you have, no prompts
dgmo install claude-code # or name oneDetects Claude Code, Codex, Claude Desktop, Cursor, Windsurf and Copilot, and points each at the DGMO MCP server. dgmo mcp runs that server directly.
Also
dgmo types # the chart types, and what each is for
dgmo diagnostics # every diagnostic code the parser can emitWhich package is which
| Package | What it is |
|---|---|
| @diagrammo/dgmo-cli | this — the dgmo command |
| @diagrammo/dgmo | the library: render(), the parsers, the palettes |
| @diagrammo/dgmo-mcp | the MCP server, installed with this package |
The command lived inside @diagrammo/dgmo until 0.61.0. It moved out so that a documentation build calling render() stops installing a command-line program and a native rasterizer it never reaches.
Full language reference and docs: diagrammo.app.
License
MIT
