Skip to content

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.

axle init adds Axle to a repository you have, with an axle.toml and a line in .gitignore:

Terminal window
pnpm dlx @axle-rs/axle init

Or add it as a development dependency of the repository’s root yourself:

Terminal window
pnpm add -D @axle-rs/axle

The package downloads the right prebuilt binary for your system, so you don’t need Rust installed.

To start from nothing, create a monorepo with Axle already set up:

Terminal window
pnpm create axle

It 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:

Terminal window
pnpm run dev

axle create lists the flags that answer each question in advance.

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:

Terminal window
gh attestation verify axle-v0.1.0-linux-x64.tar.gz --repo axle-rs/axle
gh attestation verify oci://ghcr.io/axle-rs/axle-server:0.1.0 --repo axle-rs/axle

The 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.

Terminal window
pnpm exec axle --version

To 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.