CLI reference#
$ axe build [PROJECT] [-o DIR] [-p OS/ARCH]... [--all-platforms] [-q | -v]
$ axe platforms
$ axe --version
axe build#
Builds self-contained single-file binaries for one or more target platforms.
$ axe build [PROJECT] [options]
Argument / option |
Meaning |
Default |
|---|---|---|
|
project directory containing |
|
|
output directory |
|
|
target platform; repeatable |
the current platform |
|
build every supported platform |
off |
|
print nothing but errors |
off |
|
stream the output of the underlying tools (uv, pip) |
off |
-q and -v are mutually exclusive.
For each target platform, axe build:
builds your project’s wheel with uv,
resolves and downloads every dependency wheel for that platform (
uv pip compile --python-platform+pip download),fetches the pinned CPython from python-build-standalone and the pinned uv,
appends everything as a payload to the precompiled Go runtime stub for that platform.
All downloads are checksum-verified and cached on the build machine, so
builds after the first take seconds. Configuration comes from
pyproject.toml — see the configuration reference.
Output files are named <name>-<version>-<os>-<arch> (plus .exe on
Windows), e.g. mycli-0.1.0-linux-amd64.
Exit status#
0 on success; 1 with an error: … line on stderr for configuration,
resolution, download, or build failures.
Troubleshooting#
Downloads fail or stall behind a corporate proxy — set
UV_NATIVE_TLS=1so uv uses the system trust store, and run with-vto see the underlying tool output.The build machine can’t reach github.com at all — point the uv and CPython downloads at an internal mirror with
uv-releases-urlandpython-build-standalone-releases-url.“no entrypoint” / “multiple [project.scripts] entries” — see entrypoint.
A dependency has no wheel for a target platform — every dependency must publish a wheel per target (pure-Python wheels cover all platforms); sdist-only dependencies cannot be embedded.
axe platforms#
Prints the supported target platforms, one per line:
linux/amd64
linux/arm64
darwin/amd64
darwin/arm64
windows/amd64
axe --version#
Prints axe <version>.