System requirements
Anvil system requirements on macOS, Windows and Linux: supported versions, the tools to install, the ports it listens on and what setup asks permission for.
Platform
| Status | |
|---|---|
| macOS | 15 (Sequoia) or newer recommended; Anvil itself runs from 12 (Monterey) |
| Windows | 10 or 11, 64-bit; Python and Rust come later (beta) |
| Linux | x86_64, glibc 2.35 or newer: Ubuntu 22.04+, Debian 12+, Fedora, Arch (beta) |
On macOS 12 to 14, Anvil, PHP and the web server work, but some downloads need a newer macOS: MySQL needs 14, PostgreSQL 15, Mailpit 13 and Node.js 24 or later 13.5. Anvil says so before downloading. When Anvil picks the Node.js LTS itself, an older Mac gets the newest one that runs there (22).
Tools
macOS
Install the Xcode command line tools:
xcode-select --installAnvil uses their compiler to build Redis, PHP extensions and Swoole, and their
git for Git status and worktrees.
Windows
Install Git for Git status, worktrees and a repository in new applications. Install Git in the app does it with winget, or run:
winget install Git.GitNothing else is needed: PHP, most extensions and the services come ready-built, and PHP includes OPcache. Redis runs as Garnet.
Linux
The app needs WebKitGTK 4.1; the .deb brings it. The first MySQL and Redis
install builds part of them from source, which needs gcc and make. Git
status and worktrees use git.
All platforms
Templates for new applications need the matching language installed in Anvil first: Node.js for Next.js, Nuxt and Vite; Go, .NET, Rust or Python for theirs; PHP for the PHP templates. Anvil downloads Composer itself.
Docker services use the Docker on your computer; Anvil doesn't install it.
Ports
Anvil's servers listen only on loopback: 127.0.0.1, and ::1 for the web
server. Applications with their own dev server are told to do the same.
| macOS | Windows | Linux | |
|---|---|---|---|
| HTTP | 8080; 80 forwarded to it | 80 | 8080 |
| HTTPS | 8443; 443 forwarded to it | 443 | 8443 |
DNS for *.test (UDP) | 5354 | 53 | Not used yet |
macOS lets only administrators listen below 1024, so setup forwards 80 and 443
once. Windows needs no forward. On Linux, addresses keep the port for now:
http://<name>.localhost:8080. You can change these ports in
Configuration.
Services and dev servers use the same ports everywhere:
| Port | What |
|---|---|
| 3306 | MySQL |
| 5432 | PostgreSQL |
| 6379 | Redis |
| 1025, 8025 | Mailpit SMTP and web inbox |
| 7070, 7071 | Versity S3 Gateway API and web console |
| 9000, 9001 | SILO API and web console |
| 41000–44999 | Applications with their own dev server, one port each |
| 45000–48999 | Extra dev servers of an application (a second dev script), one port each |
When a service port is taken, Anvil suggests the next free one. Change a service's port in its settings.
Permissions
Anvil runs as your user. Set up Anvil in the app asks for permission once.
With the CLI, anvil setup prints or runs what's needed; after the first
anvil start, run anvil setup again for the certificate.
macOS
One password prompt:
| Step | What it does | Without it |
|---|---|---|
| Local domains | Creates /etc/resolver/test | *.test addresses don't open. Not needed with .localhost (anvil tld localhost) |
| Standard ports | Installs the dev.anvil.ports LaunchDaemon, which forwards 80 and 443 at every boot. /etc/pf.conf is not touched | Addresses need the port, e.g. http://<name>.test:8080 |
| HTTPS certificate | Trusts the local CA in the System keychain. If macOS refuses, the app uses the login keychain (second prompt); with the CLI, run anvil trust | HTTPS works, but the browser warns about the certificate |
Windows
One administrator prompt:
| Step | What it does | Without it |
|---|---|---|
| Local domains | Adds a Name Resolution Policy rule sending .test to 127.0.0.1 | *.test addresses don't open |
| HTTPS certificate | Trusts the local CA in the machine's Trusted Root store. anvil trust adds it to your user's store instead, without administrator rights | HTTPS works, but the browser warns about the certificate |
Ports 80 and 443 need no step. See On Windows.
Linux
No prompt yet. Anvil starts on .localhost, which needs no setup; .test
addresses, ports 80 and 443 and HTTPS trust come in a later release. See
On Linux.
All platforms
Setup also puts the terminal commands on your PATH, without a password. See
Getting started.
anvil uninstall undoes all of it.
Build from source
On macOS: the Xcode command line tools, Rust 1.90 or newer, and, for the desktop app, Node.js and pnpm. See Installation.
Getting started
Set up Anvil: .test domains, ports 80 and 443, local HTTPS and terminal commands. Then add your first Laravel or Node.js projects, or uninstall.
PHP
Run Laravel, Statamic, Symfony, WordPress and plain PHP projects on .test domains with Anvil, install PHP 8.1–8.5 (8.6 as a preview), keep it patched, pick a version per project and add Xdebug.