Alternative installation
Alternative Installation
This page outlines alternative installation instructions for the earthly
build tool. The main instructions that most users need are available in Earthly Cloud, or on the installation instructions page.
Prerequisites
(Windows only) Docker WSL 2 backend or Podman WSL2 backend
Install earthly
Download the binary relevant to your platform from the releases page, rename it to earthly
and place it in your bin
.
To initialize the installation, including adding auto-completion for your shell, run
and then restart your shell.
CI
For instructions on how to install earthly
for CI use, see the CI integration guide.
Checksum Verification
You may optionally verify the checksum of the downloaded binaries, by performing the following steps:
Download our public key:
Verify the public key was correctly downloaded:
which should produce:
Import our key:
Trust our key:
Download the released
checksum.asc
file:You can manually download it from the the releases page.
The latest version can be fetched from the command line with:
Verify the
checksum.asc
file was released correctly:
gpg is dangerous
Don't be tempted to remove the initial gpg --verify checksum.asc
command; gpg will still output the checksum
file even if the signature verification fails.
Verify the earthly binary checksum matches
This should display an entry similar to:
Installing from Earthly repositories (beta)
Important
Our rpm and deb repositories are currently in Beta stage.
Check the GitHub tracking issue for any known problems.
Give us feedback on Slack.
Earthly can be installed for Debian and RedHat based Linux distributions via the Earthly deb and rpm repositories.
All of our binaries are signed with our PGP key; which has the fingerprint:
Debian-based repositories (including Ubuntu)
Debian-based Linux users (e.g. Debian, Ubuntu, Mint, etc) can use our apt repo to install Earthly.
Before installing Earthly, you must first set up the Earthly apt repo.
Update apt and install required tools to support https-based apt repos:
Download Earthly's GPG key:
Setup the stable repo:
Install Earthly:
Fedora repositories
Fedora users can use our rpm repo to install Earthly.
Install plugins required to manage DNF repositories:
Add the Earthly repo to your system:
Install Earthly:
CentOS repositories
CentOS users can use our rpm repo to install Earthly.
Install utils required to manage yum repositories:
Add the Earthly repo to your system:
Install Earthly:
Native Windows
Important
Our native Windows release is currently in the Experimental stage.
The release ships with known issues. Many things work, but some don't.
Check the GitHub tracking issue for any known problems.
Give us feedback on Slack.
To install the Windows release, simply download the binary (or from our release page); and ensure it is within your PATH
.
To add earthly.exe
to your PATH
environment variable:
Search and select: System (Control Panel)
Click the Advanced system settings link.
Click Environment Variables. In the "System Variables" section, select the PATH environment variable and click Edit.
If the PATH environment variable does not exist, click New.
In the Edit window, specify the value of the PATH environment variable, and Click OK.
Close and reopen any existing terminal windows, so they will pick up the new
PATH
.
If you are going to mostly be working from a WSL2 prompt in Windows, you might want to consider following the Linux instructions for installation. This will help prevent any cross-subsystem file transfers and keep your builds fast. Note that the "original" WSL is unsupported.
macOS Binary
While installing earthly
via Homebrew is the recommended approach, you can also download a binary directly. This may be useful when using earthly
on a Mac in CI scenarios.
When using a precompiled binary, you may need to add an exception to Gatekeeper. Follow Apple's instructions to add this exception.
Installing from source
To install from source, see the contributing page.
Configuration
If you use SSH-based git authentication, then your git credentials will just work with Earthly. Read more about git auth.
For a full list of configuration options, see the Configuration reference
Verify installation
To verify that the installation works correctly, you can issue a simple build of an existing hello-world project
You should see the output
Uninstall
To remove earthly, run the following commands:
macOS users
Linux and WSL2 users
Last updated