Install D2 on a local workstation or CI runner.
curl -fsSL https://d2lang.com/install.sh | sh -s --
d2 --version
echo 'x -> y -> z' > test.d2 d2 test.d2 test.svg