0e320eca70
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
1.7 KiB
1.7 KiB
Updating Dagger
Summary
- Option 1: (Mac OS only): update from Homebrew
- Option 2: update from a shell script
- Option 3: Manually fetch the latest binary release from Github
- Option 4: Compile from source
Option 1: (Mac OS only): update from Homebrew
From your Mac OS terminal, run the following command:
brew update dagger/tap/dagger
💡 Verify the update with
dagger version
.
Option 2: update from a shell script
From a terminal, run the following command:
curl -sfL https://releases.dagger.io/dagger/install.sh | sh
You now have the dagger binary in the local directory under ./bin/dagger
.
You can then update it globally on your system:
sudo mv ./bin/dagger /usr/local/bin
💡 Verify the update with
dagger version
.
Option 3: Manually fetch the latest binary release from Github
Open your web browser to the latest release.
From the assets section, download the archive corresponding to your OS and Arch.
💡 Verify the update with
dagger version
.
Option 4: Compile from source
You will need Go version 1.16 or later.
- Clone the dagger repository
git clone https://github.com/dagger/dagger.git
- Build the
dagger
binary.
cd dagger; make
- Copy the
dagger
tool to a location listed in your$PATH
. For example, to copy it to/usr/local/bin
:
cp ./cmd/dagger/dagger /usr/local/bin
💡 Verify the update with
dagger version
.