AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents