1.4 Installation guide

Installation guide.

Installation Guide

This guide shows you how to install the dagger CLI.

Follow the instructions on the subsequent pages to complete the setup on your operating system of choice.

Prerequisites

In order to use Dagger you need a few prerequisites. You need a text editor to write and update your Dagger Pipeline. Then you need a container tool such as Docker, which Dagger calls in the background, and then of course the Dagger CLI.

  • Editor You need a text editor such as vi, vim, gedit, nano, VSCode, …
  • Container Tool The dagger engine is run in a container tool, we highly recommend Docker, as it needs docker compose with root permissions (so it might run buggy with Podman).
  • Dagger CLI You have to install the Dagger-CLI on your machine, see below how to achieve this.

In the following you can find installation guides for Linux , MacOS and Windows .

Installation for Linux

Download and install the latest dagger CLI version:

curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh

Verification

Verify the installation:

which dagger
dagger version

This should output something similar to:

$$~/.local/bin/dagger dagger v0.18.0 (docker-image://registry.dagger.io/engine:v0.18.0) linux/amd64$$

Update

To update your dagger CLI to the latest version, use the same command as for a fresh installation, i.e.:

curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh

Check for the newest version and posiible breaking changes in the Change log .

Installation for macOS

Install the latest dagger CLI version using homebrew:

brew install dagger/tap/dagger

Or using sh and curl:

cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | sh

Verification

Verify the installation:

which dagger
dagger version

This should output something similar to:

$$/opt/homebrew/bin/dagger dagger v0.18.0 (docker-image://registry.dagger.io/engine:v0.18.0) linux/amd64$$

Update

To update your dagger CLI to the latest version using homebrew, use this commands:

brew update
brew upgrade dagger

To update using sh and curl instead, use the same commands as for a fresh installation, i.e.:

cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | sh

Check for the newest version and posiible breaking changes in the Change log .

Installation for Windows

The dagger CLI can be installed on Windows using a PowerShell 7.0 script:

Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression; Install-Dagger

For further customizations, such as adding Dagger to your system’s PATH or using the interactive installation process, additional parameters are available. To view all available options:

Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression;
Get-Command -Name Install-Dagger -Syntax

Verification

Verify the installation:

where.exe dagger

This should output something similar to:

$$C:\\dagger\dagger.exe$$

Update

To update your dagger CLI to the latest version, use the same command as for a fresh installation, i.e.:

Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression; Install-Dagger