Herd-like local PHP development, native on Windows. Automatic
.testdomains, per-project PHP and Node, one-command HTTPS, and no Linux distro to look after.
Important
This repository is archived. Native Windows builds have stopped, and Lerd on
Windows now runs through WSL2, set up for you by Install-Lerd.exe from the
Lerd desktop app's releases.
See the Windows (WSL2) guide. The alpha
builds below stay downloadable but will not be updated.
Lerd is the open-source, rootless local PHP environment for
Linux and macOS: Nginx, PHP-FPM and your services in Podman containers, a web
dashboard, a TUI, a CLI and an MCP server for your AI assistant. This is Lerd
running natively on Windows. You install one lerd.exe, it brings its own
container machine, and your sites live in plain Windows folders that your
editor, Git and Explorer already know.
This repository publishes the Windows alpha builds. The code lives on the
feat/windows-integration
branch of lerd-env/lerd and joins the main
release once it is stable.
These builds are for trying Lerd on Windows and telling us what breaks. They are not ready for daily work yet: some pieces are missing and others have had little testing, see What is not there yet. If you need Lerd on Windows today, run it inside WSL2.
- 🪟 Your files stay in Windows. Keep projects in
C:\Sitesor anywhere else. No second filesystem to copy into, no\\wsl$paths in your editor. - 🧰 Nothing to set up by hand.
lerd installfinds or installs Podman, turns on Hyper-V or WSL2 for your edition of Windows, and only asks you to restart. - ⚡ Fast where it is usually slow. Lerd serves your drives to the machine with its own 9p server and drops PHP's opcode cache itself when you save, so a Laravel page takes about 0.15 seconds instead of 1.7.
- 🧹 Clean to remove.
lerd uninstalltakes away the binary, the login entry, thePATHentry and the DNS rule.
- 🌐
.testdomains with no hosts file. A small DNS server built into Lerd answers.test, and a Windows name resolution rule sends only those names to it. - 🔒 HTTPS in one command.
lerd secureissues a certificate your browsers trust. - 🐘 PHP and Node per project. Each site gets its own PHP version, and
php,composer,laravel,nodeandnpmshims follow the folder you are in, from cmd, PowerShell or Git Bash. - 🗄️ Services on tap. MySQL, PostgreSQL, Redis, Mailpit, Meilisearch, RustFS
and the rest of the service store,
wired into each site's
.envfor you. - 🖥️ Dashboard, tray and terminal. The web dashboard opens as its own app window, the tray shows what is running, and the site terminal opens in Windows Terminal or PowerShell.
- 🔁 Starts with you. Lerd comes up when you log in, supervised by its own Windows service manager.
- 🧠 Same Lerd everywhere. The same CLI, dashboard and
framework definitions as on Linux
and macOS, so a project's
.lerd.yamlworks on every machine on the team.
- Windows 10 or 11, amd64 or arm64.
- Hyper-V (Pro, Enterprise, Education) or WSL2 (any edition, Home included).
lerd installenables whichever your edition supports. - An elevated PowerShell for the first install, to write the DNS rule and create the machine.
From an elevated PowerShell:
irm https://github.com/lerd-env/lerd-windows/releases/latest/download/install.ps1 | iexThe script downloads the release for your architecture, checks it against the
release's checksums.txt and runs lerd install, which copies Lerd into
%LOCALAPPDATA%\lerd\bin. If it stops to have you restart Windows, run the
command it prints afterwards. Open a new terminal when it is done, then:
cd C:\Sites\my-app
lerd link
lerd secureTo update, run lerd update. lerd update --rollback goes back to the version
you had before.
- Scheduled workers. A worker that runs on a timer, such as Laravel 10's
schedule:runevery minute, is skipped for now. Queue, Horizon, Vite and the other workers run, and so does Laravel 11'sschedule:work. - Path mapping between Windows and the machine has had little testing, above all on WSL2.
The full picture, with how each piece works, is in the Windows guide.
Found something broken? Open an issue on
lerd-env/lerd and mention Windows
and the alpha version from lerd --version, or tell us on
Discord.
lerd uninstall
podman machine rm -fMIT, see LICENSE.