Installation
Arity is distributed as a single binary. Use the installer below for the command line, or choose a package manager you already use.
For VS Code or Positron, the Arity extension includes the binary, so you can start with editor setup. For formatting inside RStudio, install the R package.
Install script
The installer selects the release for your platform and installs to a user-local directory.
curl --proto '=https' --tlsv1.2 -sSf https://arity.cc/install | shpowershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://arity.cc/install.ps1 | iex"Set ARITY_INSTALL_DIR to change the destination or ARITY_TAG to pin a release.
Package managers
Cargo
Install the Arity CLI from crates.io with Cargo:
cargo install arityHomebrew
On macOS or Linux:
brew install jolars/tap/aritynpm
The arity-cli package bundles a prebuilt binary:
npm install -g arity-cliPyPI
Install the binary as a Python tool:
uv tool install arityAlternatively, use pipx install arity.
Arch Linux
Install the prebuilt arity-bin package with an AUR helper:
paru -S arity-binNix
Arity is available as arity in Nixpkgs. For a shell with Arity available:
nix shell nixpkgs#arityFor a persistent NixOS installation, add pkgs.arity to environment.systemPackages.
mise and Aqua
mise can install Arity through its Aqua backend:
mise use aqua:jolars/arityCommit the resulting mise.toml to share the selected version. With Aqua directly, run aqua init if the project has no aqua.yaml, then add and install Arity:
aqua g -i jolars/arity
aqua installCommit aqua.yaml to share the selected version. Both tools use the jolars/arity registry entry.
Prebuilt binaries
Download an archive from the releases page and put the arity binary on your PATH.
Editor extensions
The VS Code and Open VSX extension bundles the binary and starts the language server automatically. The Zed extension can download it or use an installed copy.
From source
Clone the repository and build a release binary:
git clone https://github.com/jolars/arity
cd arity
cargo build --releaseThe binary is written to target/release/arity.
R package (CRAN)
To use the formatter inside R, install the arity package:
install.packages("arity")See the R package documentation for details and RStudio setup for use in the editor.
Verify the installation
Check that Arity is available in your terminal:
arity --versionContinue with Getting started to format and lint your first file, or Editor setup to use Arity in your editor.
