> ## Documentation Index
> Fetch the complete documentation index at: https://docs.localdev.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Supported platforms, install options, upgrading and uninstalling

## Platforms

Currently supported operating systems and architectures are listed below.

| OS | Architectures |
| - | - |
| macOS | amd64, arm64 |
| Linux | amd64, arm64 |

Windows is not supported natively yet. See [Windows](#windows) below.

## What gets installed

Two binaries are installed, and they must live next to each other: `ldev` and `localdevcollector`.

The `ldev` binary looks for the collector next to itself (following symlinks), then in `PATH`.

## Install script

macOS and Linux:

```sh theme={null}
curl -fsSL https://localdev.build/install.sh | sh
```

What the script does:

* Detects the OS and the CPU architecture. A shell under Rosetta (macOS) gets the arm64 build.
* Installs the latest release, or the version in `LDEV_VERSION`.
* Checks the tarball's SHA-256 against the release's `checksums.txt` and stops if it differs.
* Installs both binaries into `LDEV_INSTALL_DIR` if it's set, otherwise into `/usr/local/bin` if you can write to it, otherwise into `~/.local/bin`. It never uses `sudo`.
* Replaces the existing binaries.
* Prints the installed version, a `PATH` hint if the directory is not in `PATH` and a warning if another `ldev` comes first in `PATH`.

## Homebrew

macOS only. On Linux, use the install script or a tarball.

```sh theme={null}
brew install localdev-build/tap/ldev
```

## Release tarball

Download `ldev_<version>_<os>_<arch>.tar.gz` and `checksums.txt` from the
[releases page](https://github.com/localdev-build/localdev/releases), check the download, and unpack
both `ldev` and `localdevcollector` into the same directory on your `PATH`.

```sh theme={null}
shasum -a 256 -c checksums.txt --ignore-missing   # Linux: sha256sum -c --ignore-missing
```

## Check the installation

```sh theme={null}
ldev -version
```

`ldev -version` doesn't check for the collector. If `ldev` can't find it when you run a Projectfile, it stops with:

```
could not find localdevcollector next to ldev or in PATH: …
```

Put `ldev` and `localdevcollector` in the same directory.

## Windows

Install WSL2 and use the Linux build inside it, with the install script or a Linux tarball.

> [!WARNING]
>
> Running Localdev under WSL2 has not been tested yet.

## Upgrade

* Install script: run it again.
* Homebrew: `brew upgrade ldev`.
* Tarball: replace both binaries together.

Localdev keeps no data on disk between runs, so there is nothing to migrate.

## Uninstall

Delete `ldev` and `localdevcollector` (the install script printed where it put them), or run
`brew uninstall ldev`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.