PATH, and creates the antx convenience symlink. If you prefer manual control, you can also download the binary directly from GitHub Releases.
Quick install
Run the install script
Paste this command in your terminal:The script detects your operating system and architecture, downloads the matching binary, and installs it to
~/.ant/bin/ (or alongside an existing ant installation if one is found).Restart your shell or source your profile
After installation the script will tell you if it updated your
PATH. If it did, either open a new terminal window or run:- bash
- zsh
Platform support
Ant ships official binaries for the following platforms. All targets are built and tested in CI on every release.| Operating system | Architecture | Variant | Static binary |
|---|---|---|---|
| GNU/Linux | x64 | glibc | No |
| GNU/Linux | aarch64 | glibc | No |
| GNU/Linux | x64 | musl | Yes |
| GNU/Linux | aarch64 | musl | Yes |
| macOS | x64 | darwin | No |
| macOS | aarch64 | darwin | No |
| Windows | x64 | mingw/msys | No |
The musl variants (Alpine Linux and other musl-based distributions) are statically linked, so they run without any dynamic library dependencies.
Platform-specific notes
- macOS
- Linux
- Windows
The install script works on both Intel (
x64) and Apple Silicon (aarch64) Macs running macOS 15 or later. If macOS Gatekeeper blocks the binary on first run, right-click the binary in Finder and choose Open, or run:Manual install
If you’d rather not run a remote script, download the binary for your platform directly from the GitHub Releases page, make it executable, and move it somewhere on yourPATH:
The antx symlink
When Ant installs, it also creates anantx symlink alongside the main binary. Invoking antx is equivalent to running ant x — it’s a shorthand for Ant’s package execution command, similar to npx in the Node ecosystem. You’ll use it to run scripts from installed packages without adding them to your PATH permanently.