Command-line tool
mermaid-cli
brew/mermaid-cli
Checked 26 Oct 2026, 08:31 UTC · Still published on npm
CLI for Mermaid library
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 26 Oct 2026, 08:31 UTC
Install it
Windows
npm install -g @mermaid-js/mermaid-cli
macOS
brew install mermaid-cli npm install -g @mermaid-js/mermaid-cli
Linux
brew install mermaid-cli npm install -g @mermaid-js/mermaid-cli
Convert a file to the specified format (automatically determined from the file extension)
mmdc -i input.mmd -o output.svg
Specify the theme of the chart
mmdc -i input.mmd -o output.svg -t forest
Specify the background color of the chart (e.g. `lime`, `"#D8064F"`, or `transparent`)
mmdc -i input.mmd -o output.svg -b color
Related command-line tools
- mermaid-rs-renderer
Fast Mermaid diagram renderer in pure Rust - 23 diagram types, 100-1400x faster than mermaid-cli - Mermaid
Mermaid (Windows package; no description in the winget index) rust developer-tools ai llm cli terminal - mermaid-text
Render Mermaid diagrams as Unicode box-drawing text — no browser, no image protocols, pure Rust - merman-lsp
Local Mermaid language intelligence for .mmd, .mermaid, Markdown, and MDX documents. - termaid
Render Mermaid diagrams in the terminal - merman-cli
Mermaid.js, but headless, in Rust - mmdr
A fast native Rust Mermaid diagram renderer that requires no browser. - merman-ascii
Terminal-friendly ASCII and Unicode renderer for Mermaid typed models.
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents