This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/doc/install.md

54 lines
1.2 KiB
Markdown
Raw Normal View History

# Installing Dagger
## Option 1 (Mac OS only): install from Homebrew
From your Mac OS terminal, run the following command:
```shell
brew install dagger/tap/dagger
```
## Option 2: install from a shell script
From a terminal, run the following command:
```shell
curl -sfL https://dagger-io.s3.amazonaws.com/dagger/install.sh | sh
```
You now have the dagger binary in the local directory under `./bin/dagger`.
You can then install it globally on your system:
```shell
sudo mv ./bin/dagger /usr/local/bin
```
## Option 3: Manually fetch the latest binary release from Github
Open your web browser to [the latest release](https://github.com/dagger/dagger/releases/latest).
From the **assets** section, download the archive corresponding to your OS and Arch.
## Option 4: Compile from source
You will need [Go](https://golang.org) version 1.16 or later.
1. Clone the dagger repository
```shell
git clone https://github.com/dagger/dagger.git
```
2. Build the `dagger` binary.
```shell
cd dagger; make
```
3. Copy the `dagger` tool to a location listed in your `$PATH`. For example, to copy it to `/usr/local/bin`:
```shell
cp ./cmd/dagger/dagger /usr/local/bin
```