# mermaid-cli を Homebrew, Nix, pacman でインストール

mermaid-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:mermaid-cli
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install mermaid-cli
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mermaid-cli
```

  証拠: nixpkgs package indexes: pkgs/by-name/me/mermaid-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mermaid-cli
```

  証拠: Arch Linux sync databases: mermaid-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:mermaid-cli
- **パッケージマネージャ:** Homebrew
- **バージョン:** 11.16.0
- **ソース概要:** CLI for Mermaid library
- **ホームページ:** <https://github.com/mermaid-js/mermaid-cli>
- **最終更新:** 2026-06-30T20:35:41Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- mmdc (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 11.16.0
## プロジェクトの歴史と使われ方

mermaid-cli is the command-line front end for Mermaid, the text-to-diagram JavaScript library. The repository describes it as a CLI that takes a Mermaid definition file and produces SVG, PNG, or PDF output; the Mermaid documentation page for the CLI redirects readers to the separate `mermaid-js/mermaid-cli` project.

### プロジェクトの歴史

The practical interface is the `mmdc` command, used in documentation builds, CI pipelines, and local authoring workflows where diagrams must be rendered from `.mmd` source files without opening the Mermaid live editor. The package supports global npm installation, Docker-oriented usage, theming, transparent backgrounds, custom CSS injection, and file conversion workflows such as `mmdc -i input.mmd -o output.svg`.

### 使われ方

For Homebrew, the package-manager niche is making Mermaid rendering available as a normal system CLI, alongside its npm package identity. It sits between documentation generators and browser automation: users write Mermaid syntax in source-controlled text files, then render stable image or document artifacts for READMEs, static sites, and release documentation.

### ソース

- <https://formulae.brew.sh/formula/mermaid-cli>
- <https://github.com/mermaid-js/mermaid-cli>
- <https://github.com/mermaid-js/mermaid-cli/releases>
- <https://mermaid.js.org/config/mermaidCLI.html>


## セキュリティノート

mermaid-cli に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## 他のパッケージマネージャ記録

- Nix - mermaid-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/mermaid-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - mermaid-cli - 11.16.0-2: normalized package name match | Arch Linux sync databases: mermaid-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Generate images from Mermaid files | https://github.com/mermaid-js/mermaid-cli


## Combined YAML source

View the package source record on GitHub. [combined/mermaid-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mermaid-cli.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
