macOS
brew install d2local Homebrew formula metadata
sudo port install d2MacPorts ports tree · graphics/d2/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für d2 in AI-Agent-Workflows.
Installation
brew install d2local Homebrew formula metadata
sudo port install d2MacPorts ports tree · graphics/d2/Portfile · Quelle: api.github.com
sudo dnf install d2Fedora Rawhide package metadata · d2 · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#d2nixpkgs package indexes · pkgs/by-name/d2/d2/package.nix · Quelle: api.github.com
sudo pacman -S d2Arch Linux sync databases · d2 · Quelle: geo.mirror.pkgbuild.com
sudo zypper install d2openSUSE Tumbleweed package metadata · d2 · Quelle: download.opensuse.org
scoop install main/d2Scoop official bucket manifest trees · bucket/d2.json · Quelle: api.github.com
winget install --id Terrastruct.D2 -eWindows Package Manager source index · Terrastruct.D2 · Quelle: cdn.winget.microsoft.com
Überblick
Modern diagram scripting language that turns text to diagrams
Verlauf
D2 is a modern diagram scripting language and CLI that turns text files into diagrams, especially for software architecture and documentation workflows.
The D2 repository was created in 2022 by Terrastruct. The README presents D2 as a language, command-line renderer, and Go library, with official documentation, a playground, themes, language tooling, plugins, and export formats.
D2 entered the diagram-as-code ecosystem as another text-to-diagram option alongside tools such as Graphviz and Mermaid. Its README emphasizes package-manager installation, editor/tooling support, and a list of open-source projects that document with D2.
The usual workflow is to write a .d2 file and run the d2 CLI to produce SVG, PNG, or PDF output. D2 can also be used as a Go library and can swap layout engines such as ELK or TALA.
D2 is package-manager friendly because it ships as a single CLI for docs pipelines: install it with a system package manager, keep diagrams as source text, and regenerate images in builds or documentation sites.
Sicherheitslage
generalized runtime or code generation signal.
yellow Risiko · mittel Konfidenz · runtime
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
d2 | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/terrastruct/d2
Installationsmetadaten
| Paketschlüssel | brew:d2 |
|---|---|
| Version | 0.7.1 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/d2 |
| Homepage | https://d2lang.com/ |
| Repository | https://github.com/terrastruct/d2 |
| Upstream-Dokumentation | https://d2lang.com/ |
| Lizenz | MPL-2.0 |
| Quellarchiv | https://github.com/terrastruct/d2/archive/refs/tags/v0.7.1.tar.gz |
| Build-Abhängigkeiten | go |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | d2 |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
d2
nix profile install nixpkgs#d2d2 0.6.9-8.fc44
Modern diagram scripting language that turns text to diagrams
https://github.com/terrastruct/d2
sudo dnf install d2d2 0.7.1-2
A modern diagram scripting language that turns text to diagrams
sudo pacman -S d2d2 0.7.1-1.4
CLI tool and modern declarative language that turns text to diagrams
https://github.com/terrastruct/d2
sudo zypper install d2d2
sudo port install d2main/d2
scoop install main/d2Terrastruct.D2
winget install --id Terrastruct.D2 -eQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.