LogoLogo
HomeBlogGitHubGet Started FreeLogin
Earthly 0.6
Earthly 0.6
  • 👋Introduction
  • 💻Installation
  • 🎓Learn the basics
    • Part 1: A simple Earthfile
    • Part 2: Outputs
    • Part 3: Adding dependencies With Caching
    • Part 4: Args
    • Part 5: Importing
    • Part 6: Using Docker In Earthly
    • Final words
  • ✅Best practices
  • 📖Docs
    • Guides
      • Authenticating Git and image registries
      • Target, artifact and command referencing
      • Build arguments and secrets
      • User-defined commands (UDCs)
      • Managing cache
      • Advanced local caching
      • Using Docker in Earthly
      • Integration Testing
      • Debugging techniques
      • Multi-platform builds
      • Podman
      • Configuring registries
        • AWS ECR
        • GCP Artifact Registry
        • Azure ACR
        • Self-signed certificates
      • Using the Earthly Docker Images
        • earthly/earthly
        • earthly/buildkitd
    • Remote runners
    • Remote caching
    • Earthfile reference
      • Builtin args
      • Excluding patterns
      • Version-specific features
    • The earthly command
    • Configuration reference
    • Examples
    • Misc
      • Alternative installation
      • Data collection
      • Definitions
      • Public key authentication
  • 🔧CI Integration
    • Overview
    • Use the Earthly CI Image
    • Build your own Earthly CI Image
    • Pull-Through Cache
    • Remote BuildKit
    • Vendor-Specific Guides
      • Jenkins
      • Circle CI
      • GitHub Actions
      • AWS CodeBuild
      • Kubernetes
      • Google Cloud Build
      • GitLab CI/CD
      • Woodpecker CI
  • ☁️ Earthly Cloud
    • Overview
    • Cloud secrets
    • Satellites
      • Managing Satellites
      • Using Satellites
Powered by GitBook
On this page
  • Alternative Installation
  • Prerequisites
  • Install earthly
  • Configuration
  • Verify installation
  • Uninstall
  • macOS users
  • Linux and WSL2 users

Was this helpful?

Edit on GitHub
  1. Docs
  2. Misc

Alternative installation

PreviousMiscNextData collection

Last updated 1 year ago

Was this helpful?

Alternative Installation

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

Prerequisites

  • or

  • (Windows only) or

Install earthly

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

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

sudo earthly bootstrap --with-autocomplete

and then restart your shell.

CI

For instructions on how to install earthly for CI use, see the .

Installing from Earthly repositories (beta)

Important

Our rpm and deb repositories are currently in Beta stage.

Earthly can be installed for Debian and RedHat based Linux distributions via the Earthly deb and rpm repositories.

5816 B221 3DD1 CEB6 1FC9 52BA B118 5ECA 33F8 EB64

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.

  1. Update apt and install required tools to support https-based apt repos:

    sudo apt-get update
    sudo apt-get install \
       apt-transport-https \
       ca-certificates \
       curl \
       gnupg \
       lsb-release
  2. Download Earthly's GPG key:

    curl -fsSL https://pkg.earthly.dev/earthly.pgp | sudo gpg --dearmor -o /usr/share/keyrings/earthly-archive-keyring.gpg
  3. Setup the stable repo:

    echo \
      "deb [arch=amd64 signed-by=/usr/share/keyrings/earthly-archive-keyring.gpg] https://pkg.earthly.dev/deb \
      stable main" | sudo tee /etc/apt/sources.list.d/earthly.list > /dev/null
  4. Install Earthly:

    sudo apt-get update
    sudo apt-get install earthly

Fedora repositories

Fedora users can use our rpm repo to install Earthly.

  1. Install plugins required to manage DNF repositories:

    sudo dnf -y install dnf-plugins-core
  2. Add the Earthly repo to your system:

    sudo dnf config-manager \
        --add-repo \
        https://pkg.earthly.dev/earthly.repo
  3. Install Earthly:

    sudo dnf install earthly

CentOS repositories

CentOS users can use our rpm repo to install Earthly.

  1. Install utils required to manage yum repositories:

    sudo yum install -y yum-utils
  2. Add the Earthly repo to your system:

    sudo yum-config-manager \
        --add-repo \
        https://pkg.earthly.dev/earthly.repo
  3. Install Earthly:

    sudo yum 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.

To add earthly.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 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.

Installing from source

Configuration

Verify installation

To verify that the installation works correctly, you can issue a simple build of an existing hello-world project

earthly github.com/earthly/hello-world:main+hello

You should see the output

github.com/earthly/hello-world:main+hello | --> RUN [echo 'Hello, world!']
github.com/earthly/hello-world:main+hello | Hello, world!
github.com/earthly/hello-world:main+hello | Target github.com/earthly/hello-world:main+hello built successfully
=========================== SUCCESS ===========================

Uninstall

To remove earthly, run the following commands:

macOS users

brew uninstall earthly
rm -rf ~/.earthly
docker rm --force earthly-buildkitd
docker volume rm --force earthly-cache

Linux and WSL2 users

rm /usr/local/bin/earthly
rm /usr/share/bash-completion/completions/earthly
rm /usr/local/share/zsh/site-functions/_earthly
rm -rf ~/.earthly
docker rm --force earthly-buildkitd
docker volume rm --force earthly-cache

Check the for any known problems.

Give us feedback on .

All of our binaries are signed with our ; which has the fingerprint:

Check the for any known problems.

Give us feedback on .

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

When using a precompiled binary, you may need to add an exception to Gatekeeper. .

To install from source, see the .

If you use SSH-based git authentication, then your git credentials will just work with Earthly. Read more about .

For a full list of configuration options, see the

📖
installation instructions page
Docker
Podman
Git
Docker WSL 2 backend
Podman WSL2 backend
the releases page
CI integration guide
GitHub tracking issue
Slack
PGP key
GitHub tracking issue
Slack
download
release page
M1 Binary
x64 Binary
Follow Apple's instructions to add this exception
contributing page
git auth
Configuration reference