How to download and setup d2
Open terminal and run command
git clone https://github.com/terrastruct/d2.git
git clone is used to create a copy or clone of d2 repositories.
You pass git clone a repository URL. it supports a few different network protocols and corresponding URL formats.
Also you may download zip file with d2 https://github.com/terrastruct/d2/archive/master.zip
Or simply clone d2 with SSH
[email protected]:terrastruct/d2.git