mermaid-cli
brew install mermaid-cli
v11.15.0
MIT
CLI for Mermaid library
1.1k
30-day installs · #1251
4.4k
90-day · #1168
10.0k
365-day · #1424
4.7k
★ GitHub stars · updated 2mo ago
Runtime dependencies
GitHub topics
cli
diagrams
mermaid
Links
- https://github.com/mermaid-js/mermaid-cli
- GitHub: mermaid-js/mermaid-cli
- Brew formula source: Formula/m/mermaid-cli.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"node"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "CLI for Mermaid library",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:24+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "mermaid-cli",
"github_default_branch": "master",
"github_last_commit_at": "2026-06-18T05:58:28Z",
"github_readme_excerpt": "# mermaid-cli\n\n[](https://www.npmjs.com/package/@mermaid-js/mermaid-cli)\n[](https://www.npmjs.com/package/@mermaid-js/mermaid-cli)\n[](https://hub.docker.com/r/minlag/mermaid-cli)\n[](https://github.com/mermaid-js/mermaid-cli/actions/workflows/compile-mermaid.yml)\n[](https://percy.io/Mermaid/mermaid-cli)\n[](https://join.slack.com/t/mermaid-talk/shared_invite/enQtNzc4NDIyNzk4OTAyLWVhYjQxOTI2OTg4YmE1ZmJkY2Y4MTU3ODliYmIwOTY3NDJlYjA0YjIyZTdkMDMyZTUwOGI0NjEzYmEwODcwOTE)\n\nThis is a command-line interface (CLI) for [mermaid](https://mermaid.js.org/). It takes a mermaid definition file as input and generates an SVG/PNG/PDF file as output.\n\n## Installation\n\n```sh\nnpm install -g @mermaid-js/mermaid-cli\n```\n\n## Usage\n\nConvert Mermaid mmd Diagram File To SVG\n\n```sh\nmmdc -i input.mmd -o output.svg\n```\n\n\u003e **Note**\n\u003e\n\u003e See [Alternative installations](#alternative-installations) if you don\u0027t want to install the package globally.\n\u003e\n\u003e Locate how to call the mmdc executable for your preferred method\n\u003e i.e. Docker, Yarn, NPM, local install, etc.\n\n## Examples\n\n### Create A PNG With A Dark Theme And Transparent Background\n\n```sh\nmmdc -i input.mmd -o output.png -t dark -b transparent\n```\n\n### Animating an SVG file with custom CSS\n\nThe `--cssFile` option can be used to inline some custom CSS.\n\nPlease see [./test-positive/flowchart1.css](test-positive/flowchart1.css) for an example of a CSS f",
"github_repo": "mermaid-js/mermaid-cli",
"github_stars": 4716,
"github_topics": [
"cli",
"diagrams",
"mermaid"
],
"homepage": "https://github.com/mermaid-js/mermaid-cli",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 1106,
"installs_365d": 10040,
"installs_90d": 4358,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "mermaid-cli",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 1251,
"rank_365d": 1424,
"rank_90d": 1168,
"raw_hash": "9462cc06ba97ab9b",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/m/mermaid-cli.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "11.15.0",
"versioned_formulae": [],
"why_use_this": null
}