mermaid-cli
« Back to VersTracker
Description:
CLI for Mermaid library
Type: Formula  |  Latest Version: 11.12.0@0  |  Tracked Since: Dec 24, 2025
Links: Homepage  |  GitHub  |  formulae.brew.sh
Stars: 3,975  |  Forks: 346  |  Language: JavaScript  |  Category: Developer tools
Tags: diagrams documentation cli visualization javascript
Install: brew install mermaid-cli
About:
The Mermaid CLI is a command-line interface for the Mermaid JavaScript library, which generates diagrams and flowcharts from text-based definitions. It allows developers to automate the creation of visual documentation (like sequence diagrams, Gantt charts, and class diagrams) directly within build pipelines or documentation workflows. Its main value is turning text into scalable vector graphics (SVG, PNG, PDF) programmatically, enabling diagram-as-code practices.
Key Features:
  • Generates diagrams (SVG, PNG, PDF) from text definitions
  • Supports all Mermaid diagram types (flowcharts, sequence, Gantt, etc.)
  • Can be integrated into CI/CD pipelines and documentation toolchains
  • Includes a Puppeteer-based headless browser for rendering
  • Accepts input from stdin, files, or configuration files
Use Cases:
  • Automating diagram generation in technical documentation projects
  • Embedding visual workflow creation in static site generators or build scripts
Alternatives:
  • Graphviz – Graphviz is a more general-purpose graph visualization tool with its own DOT language, whereas Mermaid CLI focuses on specific diagram types with a markdown-inspired syntax.
  • Kroki – Kroki is a web service and CLI that unifies many diagram tools (including Mermaid) into a single API, offering broader format support but requiring a different integration approach.
Version History
Detected Version Rev Change Commit
Dec 24, 2025 9:55pm 11.12.0 0 VERSION_BUMP fd9c700d
Sep 14, 2025 11:46am 0 VERSION_BUMP b5cd6c9e