Merge pull request #2300 from dyllan-to-you/patch-1

doc: add scoop & choco to windows install
This commit is contained in:
Alexander Wang 2025-02-03 17:37:46 -08:00 committed by GitHub
commit 5c14429c0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,7 @@ You may install `d2` through any of the following methods.
- [Windows](#windows) - [Windows](#windows)
- [Release archives](#release-archives) - [Release archives](#release-archives)
- [WSL](#wsl) - [WSL](#wsl)
- [Native Package managers](#native-package-managers)
- [Docker](#docker) - [Docker](#docker)
- [Coming soon](#coming-soon) - [Coming soon](#coming-soon)
@ -209,6 +210,23 @@ under plain Windows.
aka Windows Subsystem for Linux if that's what you prefer. Installation is just like any aka Windows Subsystem for Linux if that's what you prefer. Installation is just like any
other Linux system. other Linux system.
### Native Package managers
The following are community-managed Windows releases of d2 on popular package managers
#### Scoop
[![scoop/d2 badge](https://img.shields.io/scoop/v/d2)](https://scoop.sh/#/apps?q=d2&id=06d1259ce6446dd25dafa1a6c57285159ec927b0)
```sh
scoop install main/d2
```
#### Chocolatey
[![chocolatey/d2_badge](https://img.shields.io/chocolatey/v/d2)]([https://chocolatey.org/](https://community.chocolatey.org/packages/d2/0.6.6))
```sh
choco install d2
```
## Docker ## Docker
https://hub.docker.com/repository/docker/terrastruct/d2 https://hub.docker.com/repository/docker/terrastruct/d2