33 words
1 minute
Mermaid
2026-01-25

Export using Mermaid CLI#

1) Install Mermaid CLI#

npm install -g @mermaid-js/mermaid-cli

2) Save your diagram code into arch.mmd#

Example content:

sequenceDiagram
A->>B: hi

3) Export as PNG#

mmdc -i arch.mmd -o arch.png

4Export as SVG (optional)#

mmdc -i arch.mmd -o arch.svg
Mermaid
https://lxy-alexander.github.io/blog/posts/tools/mermaid/
Author
Alexander Lee
Published at
2026-01-25
License
CC BY-NC-SA 4.0