Installation
Axle works the same with pnpm, npm, Yarn, Bun, nub and aube. pnpm is shown first; pick your package manager once and every page follows.
Install it in a repository
Section titled “Install it in a repository”axle init adds Axle to a repository you have, with an axle.toml and a line in .gitignore:
pnpm dlx @axle-rs/axle initnpx @axle-rs/axle inityarn dlx @axle-rs/axle initbunx @axle-rs/axle initnub dlx @axle-rs/axle initaube dlx @axle-rs/axle initOr add it as a development dependency of the repository’s root yourself:
pnpm add -D @axle-rs/axlenpm install -D @axle-rs/axleyarn add -D @axle-rs/axlebun add --dev @axle-rs/axlenub add -D @axle-rs/axleaube add -D @axle-rs/axleThe package downloads the right prebuilt binary for your system, so you don’t need Rust installed.
Start a new monorepo
Section titled “Start a new monorepo”To start from nothing, create a monorepo with Axle already set up:
pnpm create axlenpm create axle@latestyarn create axlebun create axlenub dlx create-axleaube create axleIt asks where the monorepo goes, what you’re building and which template to start from, such as Next.js with an Express API, then which package manager, linter, formatter and CI service to use. It installs the dependencies, adds the official plugins for the template’s tools and makes the first commit. Then start every app’s development server at once:
pnpm run devnpm run devyarn run devbun run devnub run devaube run devaxle create lists the flags that answer each question in advance.
Download a binary instead
Section titled “Download a binary instead”Each GitHub release has axle and axle-server for macOS, Linux and Windows, on x64 and Arm, in axle-v<version>-<os>-<cpu>.tar.gz. A SHA256SUMS file lists their checksums, and each archive’s THIRD-PARTY-LICENSES.md lists the crates built into it.
Every archive, the ghcr.io/axle-rs/axle-server image and the VS Code extension carry a build provenance attestation, so you can check they were built from this repository by its release workflow:
gh attestation verify axle-v0.1.0-linux-x64.tar.gz --repo axle-rs/axlegh attestation verify oci://ghcr.io/axle-rs/axle-server:0.1.0 --repo axle-rs/axleThe npm packages are published with provenance too, which npm audit signatures checks.
The binaries aren’t signed with an Apple or Microsoft certificate. Installed through a package manager, they run as they are. Downloaded in a browser, macOS stops one it hasn’t seen before: allow it in System Settings, under Privacy & Security, or clear the download flag with xattr -d com.apple.quarantine axle. Windows may show a SmartScreen warning: choose More info, then Run anyway.
Check it works
Section titled “Check it works”pnpm exec axle --versionnpx axle --versionyarn axle --versionbunx axle --versionnubx axle --versionaube exec axle --versionTo complete Axle’s commands and options with Tab in your shell, see axle completion.
Next, see what Axle finds in your repository: add Axle to an existing repository.