D2

Version: 0.7.1 darwin linux windows architecture diagramming

Create beautiful diagrams in minutes. Simple syntax. Endlessly customizable. D2 is the fastest and easiest way to get a mental model from your head onto the screen, then make edits with your team

Installation Instructions

Linux

Download D2
{
  "url": "{{ .SVar `.tool.d2.download.url` }}",
  "destination_folder": "{{ .PDownloads }}",
  "output_filename": "{{ .SVar `.tool.d2.download.filename` }}",
  "overwrite": false
}
Extract D2 Release
{
  "destination": "{{ .PTools }}/d2/{{ .SVar `.tool.d2.download.version` }}",
  "max_file_size": 0,
  "skip_symlinks": false,
  "preserve_permissions": true,
  "remove_existing": true,
  "source": "{{ .PDownloads }}/{{ .SVar `.tool.d2.download.filename` }}"
}
Move files up one level to simplify directory structure
{
  "source": "{{ .PTools }}/d2/{{ .SVar `.tool.d2.download.version` }}/d2-v0.7.1",
  "destination": "{{ .PTools }}/d2/{{ .SVar `.tool.d2.download.version` }}",
  "overwrite_duplicates": false
}

MacOS

Download D2
{
  "url": "{{ .SVar `.tool.d2.download.url` }}",
  "destination_folder": "{{ .PDownloads }}",
  "output_filename": "{{ .SVar `.tool.d2.download.filename` }}",
  "overwrite": false
}
Extract D2 Release
{
  "destination": "{{ .PTools }}/d2/{{ .SVar `.tool.d2.download.version` }}",
  "max_file_size": 0,
  "skip_symlinks": false,
  "preserve_permissions": true,
  "remove_existing": true,
  "source": "{{ .PDownloads }}/{{ .SVar `.tool.d2.download.filename` }}"
}
Move files up one level to simplify directory structure
{
  "source": "{{ .PTools }}/d2/{{ .SVar `.tool.d2.download.version` }}/d2-v0.7.1",
  "destination": "{{ .PTools }}/d2/{{ .SVar `.tool.d2.download.version` }}",
  "overwrite_duplicates": false
}

Binaries