# mermaid-cli CLI for mermaid. Takes a mermaid definition file as input and generates an `svg`, `png` or `pdf` file as output. ## Table of contents 1. [TL;DR](#tldr) 1. [Further readings](#further-readings) 1. [Sources](#sources) ## TL;DR ```sh # Installation. npm install -g '@mermaid-js/mermaid-cli' # Convert mermaid files to SVG. mmdc -i 'input.mmd' -o 'output.svg' ``` ## Further readings - [mermaid.js] ## Sources All the references in the [further readings] section, plus the following: [github]: https://github.com/mermaid-js/mermaid-cli [further readings]: #further-readings [mermaid.js]: mermaid.js.md