Install the Dagger CLI
Dagger requires a running container runtime. Install and start one of these runtimes: Docker, Podman, nerdctl, or Apple Container.
Use the command for your operating system. Each command installs Dagger v1.0.0-beta.12.
- macOS
- Linux
- Windows
curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=1.0.0-beta.12 BIN_DIR=/usr/local/bin sh
If you cannot write to /usr/local/bin, run the script with sudo -E:
curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=1.0.0-beta.12 BIN_DIR=/usr/local/bin sudo -E sh
curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=1.0.0-beta.12 BIN_DIR=$HOME/.local/bin sh
Verify that $HOME/.local/bin is in your PATH.
To install Dagger for all users, run the script with sudo -E:
curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=1.0.0-beta.12 BIN_DIR=/usr/local/bin sudo -E sh
In PowerShell 7 or later:
iwr -useb https://dl.dagger.io/dagger/install.ps1 | iex; Install-Dagger -DaggerVersion 1.0.0-beta.12 -AddToPath
This installs dagger.exe in %USERPROFILE%\dagger and adds it to your user PATH.
Run this command to verify the installation:
dagger version
# version: v1.0.0-beta.12
To change the Dagger version, run the applicable install command again. Specify the required version.