Skip to content
These docs are still under construction and may contain outdated references to Earthly and/or broken links.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Alternative installation

Alternative Installation

This page outlines alternative installation instructions for the earth build tool. The main instructions that most users need are available on the installation page.

Prerequisites

Install earth

Download the binary relevant to your platform from the releases page, rename it to earth and place it in your bin.

To initialize the installation, including adding auto-completion for your shell, run

sudo earth bootstrap --with-autocomplete

and then restart your shell.

CI

For instructions on how to install earth 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:

  1. Download our public key:

  2. Verify the public key was correctly downloaded:

    which should produce:

  3. Import our key:

  4. Trust our key:

  5. 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:

  6. Verify the checksum.asc file was released correctly:

  1. Verify the earth binary checksum matches

    This should display an entry similar to:

Installing from deb/rpm repositories

All EarthBuild release binaries are signed with our PGP key, which has the fingerprint:

Note that this is a different key from the one Earthly used to sign its releases (5816 B221 3DD1 CEB6 1FC9 52BA B118 5ECA 33F8 EB64). If you verified Earthly releases previously, you will need to import the new key — see Checksum Verification above.

Native Windows

To install the Windows release, simply download the binary (or from our release page); and ensure it is within your PATH.

To add earth.exe to your PATH environment variable:

  1. Search and select: System (Control Panel)

  2. Click the Advanced system settings link.

  3. 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.

  4. In the Edit window, specify the value of the PATH environment variable, and Click OK.

  5. 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 earth via Homebrew is the recommended approach, you can also download a binary directly. This may be useful when using earth 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 EarthBuild. 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 earth, run the following commands:

macOS users

Linux and WSL2 users

If you previously had Earthly installed, its state lives under the old names and is not removed by the commands above. To clean that up as well:

Last updated