macOS
brew install d2local Homebrew formula metadata
sudo port install d2MacPorts ports tree · graphics/d2/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de d2 pour les workflows d'agents IA.
installation
brew install d2local Homebrew formula metadata
sudo port install d2MacPorts ports tree · graphics/d2/Portfile · Source: api.github.com
sudo dnf install d2Fedora Rawhide package metadata · d2 · Source: dl.fedoraproject.org
nix profile install nixpkgs#d2nixpkgs package indexes · pkgs/by-name/d2/d2/package.nix · Source: api.github.com
sudo pacman -S d2Arch Linux sync databases · d2 · Source: geo.mirror.pkgbuild.com
sudo zypper install d2openSUSE Tumbleweed package metadata · d2 · Source: download.opensuse.org
scoop install main/d2Scoop official bucket manifest trees · bucket/d2.json · Source: api.github.com
winget install --id Terrastruct.D2 -eWindows Package Manager source index · Terrastruct.D2 · Source: cdn.winget.microsoft.com
aperçu
Modern diagram scripting language that turns text to diagrams
historique
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.
posture de sécurité
generalized runtime or code generation signal.
risque yellow · confiance moyen · runtime
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
d2 | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/terrastruct/d2
métadonnées d'installation
| Clé du paquet | brew:d2 |
|---|---|
| Version | 0.7.1 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/d2 |
| Page d'accueil | https://d2lang.com/ |
| Dépôt | https://github.com/terrastruct/d2 |
| Docs amont | https://d2lang.com/ |
| Licence | MPL-2.0 |
| Archive source | https://github.com/terrastruct/d2/archive/refs/tags/v0.7.1.tar.gz |
| Dépendances de compilation | go |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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 -episte source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.