# 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 <!-- omit in toc -->

1. [TL;DR](#tldr)
1. [Further readings](#further-readings)

## 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]

<!--
  References
  -->

<!-- Upstream -->
[github]: https://github.com/mermaid-js/mermaid-cli

<!-- Knowledge base -->
[mermaid.js]: mermaid.js.md
