mermaid-cli

CLI tool to render Mermaid diagrams to images or SVG files

brewmacoslinux
Try with needOr install directly
Source

About

CLI for Mermaid library

Commands

mmdc

Examples

Convert a Mermaid diagram file to PNG$ mmdc -i diagram.mmd -o diagram.png
Render Mermaid diagram to SVG format$ mmdc -i flowchart.mmd -o flowchart.svg -t svg
Generate diagram with custom width and height$ mmdc -i diagram.mmd -o diagram.png -w 1024 -H 768