A modern diagram scripting language that turns text to diagrams.
Publisher’s description
What is D2?
D2 is an open-source languages & sdk program for Windows from Terrastruct, Inc.. It is written in Go.
Installation and requirements
Official installers exist for 64-bit as MSI. Installation asks for administrator rights. The installer supports unattended (silent) installation. An MSI package is available for deployment with Group Policy, Intune or Configuration Manager.
Updates and version history
The current version is 0.9.0, released on September 7, 2026. 23 versions are listed since January 20, 2023, each with links to its own installer files. That is about 6.3 releases a year.
Popularity and file types
The source code on GitHub (d2lang/d2) has 25,704 stars. Similar programs include Go Programming Language, LLVM and Deno.
Project description on GitHub: “D2 is a modern diagram scripting language that turns text to diagrams.”
Pros / Cons
Pros
- Open source: the code can be inspected and built by anyone
- MSI package for managed deployment
- Documented silent install
- Frequent updates (about 6.3 a year)
- Large user base
Cons
- No native ARM64 build
- Installation needs administrator rights
In short: D2 is an open-source languages & sdk tool for 64-bit PCs. It is actively maintained. Administrators can deploy it unattended.
Is D2 safe to download?
- The file is served by github.com, the publisher’s own domain
- The download link uses HTTPS
- A SHA256 hash is published, so you can verify the file:
DBAC13EDAEC26878D36C79C2BCD91D57927CAE8878204E3B9816E6C0F32AAE1B· Open the VirusTotal report for this hash - The link has not been checked yet
- The source code is public
- ExeAtlas does not host, wrap or modify installers
Related guide: How to check a file’s SHA256 hash on Windows
Recent versions
All 23 versions ›23 versions over 4 years · about 6.3 a year
| Version | Date | Size | Files |
|---|---|---|---|
| 0.9.0Latest | September 7, 2026 | — | 64-bit MSI |
| 0.8.2 | August 24, 2026 | — | 64-bit MSI |
| 0.7.1 | August 19, 2025 | — | 64-bit MSI |
| 0.7.0 | May 2, 2025 | — | 64-bit MSI |
| 0.6.9 | February 5, 2025 | — | 64-bit MSI |
| 0.6.8 | November 7, 2024 | — | 64-bit MSI |
| 0.6.5 | April 18, 2024 | — | 64-bit MSI |
| 0.6.3 | December 16, 2023 | — | 64-bit MSI |
Install from the command line
Silent install ›winget install --id Terrastruct.D2 -emsiexec /i d2-v0.9.0-windows-amd64.msi /qn /norestartmsiexec /x {91D48A67-5FAB-47CF-AB12-A2E1F1399B4C} /qn /norestartRelated guide: How to use winget: install and update apps
Also for other systems
brew install d2Information
- Publisher
- Terrastruct, Inc.
- Category
- Languages & SDKs
- Licence
- MPL-2.0
- Price
- Free
- Source code
- github.com/d2lang/d2
- Written in
- Go
- Requires
- Windows 11 / 10
- Architecture
- 64-bit
- Installer
- MSI
- Version
- 0.9.0
- Released
- September 7, 2026
- Added to the catalogue
- February 9, 2023
- Versions listed
- 23
- Updates / year
- 6.3
- GitHub stars
- 25,704
- GitHub forks
- 767
- Website
- d2lang.com
- winget ID
- Terrastruct.D2
- MSI product code
- {91D48A67-5FAB-47CF-AB12-A2E1F1399B4C}
Ratings and reviews
No reviews yet. Be the first to rate it.
Alternatives to D2
See all ›-
Go Programming Language1.27.0An open source programming language that makes it simple to build secure, scalable systems.Open source2.1M ↓ -
Open source2.8M ↓ -
Open source249.7K ↓ -
Open source3.7M ↓ -
Yarn1.22.22Yarn is a package manager that doubles down as project manager. Whether you work on one-shot projects or large monorepos, as a hobbyist or an enterprise user, we've got you covered.Open source1.9M ↓ -
Ccache4.14.1Ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again.Open source2.2M ↓ -
Open source263.6K ↓ -
Open source12.5K ↓
Frequently asked questions
Is D2 free?
Yes. D2 is open-source software under the MPL-2.0 licence.
Is D2 safe to download?
The download comes from github.com, which belongs to the publisher; ExeAtlas does not host or change the file. Compare its SHA256 hash with the one shown here, or open the VirusTotal report for that hash.
How do I install D2 with winget?
Open PowerShell or Windows Terminal and run the winget command shown on this page. winget downloads the official installer and checks its SHA256 hash before running it.
Can D2 be installed silently?
Yes. The silent install page lists the exact command for each installer, including msiexec for the MSI package.
Does D2 run on ARM (Windows on Arm)?
There is no ARM64 build; Windows 11 on Arm can run the 64-bit version through emulation.
Where can I download an older version of D2?
The versions page lists all 23 versions with links to their official installer files, back to January 20, 2023.
What are alternatives to D2?
Go Programming Language, LLVM, Deno, CMake and Yarn. The alternatives page compares them.