Merge pull request #124 from alixander/alixander/update-readme
readme: update
This commit is contained in:
commit
fdae2a1089
2 changed files with 27 additions and 21 deletions
|
|
@ -75,9 +75,11 @@ curl -fsSL https://d2lang.com/install.sh | sh -s --
|
||||||
|
|
||||||
We have precompiled binaries on the [releases](https://github.com/terrastruct/d2/releases)
|
We have precompiled binaries on the [releases](https://github.com/terrastruct/d2/releases)
|
||||||
page for macOS and Linux. For both amd64 and arm64. We will release package manager
|
page for macOS and Linux. For both amd64 and arm64. We will release package manager
|
||||||
distributions like .rpm, .deb soon. d2 is on homebrew with our tap. See [./docs/INSTALL.md](./docs/INSTALL.md).
|
distributions like .rpm, .deb soon. D2 is on Homebrew with our tap (the install script
|
||||||
|
uses this automatically if it detects you have `brew`). See
|
||||||
|
[./docs/INSTALL.md](./docs/INSTALL.md).
|
||||||
|
|
||||||
We'll have a docker image soon too.
|
Docker image coming soon.
|
||||||
|
|
||||||
To uninstall:
|
To uninstall:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
# install
|
# install
|
||||||
|
|
||||||
This file documents all the ways by which you can install d2.
|
This file documents all the ways by which you can install D2.
|
||||||
|
|
||||||
<!-- toc -->
|
<!-- toc -->
|
||||||
|
|
||||||
- [install.sh](#installsh)
|
- [install.sh](#installsh)
|
||||||
- [Standalone](#standalone)
|
|
||||||
- [macOS (Homebrew)](#macos-homebrew)
|
- [macOS (Homebrew)](#macos-homebrew)
|
||||||
- [From Source](#from-source)
|
- [Standalone](#standalone)
|
||||||
|
- [From source](#from-source)
|
||||||
|
|
||||||
<!-- tocstop -->
|
<!-- tocstop -->
|
||||||
|
|
||||||
|
|
@ -21,31 +21,41 @@ curl -fsSL https://d2lang.com/install.sh | sh -s -- --dry-run
|
||||||
curl -fsSL https://d2lang.com/install.sh | sh -s --
|
curl -fsSL https://d2lang.com/install.sh | sh -s --
|
||||||
```
|
```
|
||||||
|
|
||||||
For help on the terminal run including the supported package managers
|
For help on the terminal run, including the supported package managers and detection
|
||||||
and detection methods see:
|
methods:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://d2lang.com/install.sh | sh -s -- --help
|
curl -fsSL https://d2lang.com/install.sh | sh -s -- --help
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## macOS (Homebrew)
|
||||||
|
|
||||||
|
If you're on macOS, you can alternatively install with `brew`. (the install script above
|
||||||
|
does this automatically if you have `brew` installed).
|
||||||
|
|
||||||
|
```sh
|
||||||
|
brew tap terrastruct/d2
|
||||||
|
brew install d2
|
||||||
|
```
|
||||||
|
|
||||||
## Standalone
|
## Standalone
|
||||||
|
|
||||||
We publish standalone release archives with every release on github.
|
We publish standalone release archives with every release on Github.
|
||||||
Download the `.tar.gz` release for your OS/ARCH combination and then run:
|
Download the `.tar.gz` release for your OS/ARCH combination and then run the following
|
||||||
|
inside the extracted directory to install:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
Inside the extracted directory to install.
|
Run the following to uninstall:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
make uninstall
|
make uninstall
|
||||||
```
|
```
|
||||||
|
|
||||||
To uninstall. You will be prompted for sudo/su/doas if root permissions
|
You will be prompted for sudo/su/doas if root permissions are required for installation.
|
||||||
are required for installation. You can control the unix hierarchy installation
|
You can control the Unix hierarchy installation path with `PREFIX=`. For example:
|
||||||
path with `PREFIX=`. For example:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
# Install under ~/.local.
|
# Install under ~/.local.
|
||||||
|
|
@ -59,16 +69,10 @@ The install script places the standalone release into `$PREFIX/lib/d2/d2-<versio
|
||||||
and we recommend doing the same with manually installed releases so that you
|
and we recommend doing the same with manually installed releases so that you
|
||||||
know where the release directory is for easy uninstall.
|
know where the release directory is for easy uninstall.
|
||||||
|
|
||||||
## macOS (Homebrew)
|
|
||||||
|
|
||||||
For macOS you may install as so:
|
## From source
|
||||||
|
|
||||||
```sh
|
Alternatively, you can always install from source:
|
||||||
brew tap terrastruct/d2
|
|
||||||
brew install d2
|
|
||||||
```
|
|
||||||
|
|
||||||
## From Source
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go install oss.terrastruct.com/d2/cmd/d2@latest
|
go install oss.terrastruct.com/d2/cmd/d2@latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue