Skip to content

Manual installation

Using Biome’s standalone CLI binary can be a great choice if you aren’t already using Node.js or npm (or any other package manager). Or in other words, Biome shouldn’t be the only reason for you to have a package.json.

You have to pick the correct binary for your platform for Biome work. The following table should help you do so.

Platformarm64x64
Windowswin32-arm64win32-x64
macOSdarwin-arm64 (M1 or newer)darwin-x64
Linuxlinux-arm64linux-x64
Linux (musl)linux-arm64-musllinux-x64-musl

Biome is available as a Homebrew formula for macOS and Linux users.

Terminal window
brew install biome

Biome is available as a community maintained package from the Winget repository for Windows users.

Terminal window
winget install biomejs.biome

Biome is available as a community maintained binary from the Arch Linux Extra repository.

[extra]
Include = /etc/pacman.d/mirrorlist

To install Biome run:

Terminal window
pacman -S biome

Biome publishes official Docker images that support the amd64 and arm64 architectures for all Biome versions starting from v1.7.0.

ghcr.io/biomejs/biome:{major}
ghcr.io/biomejs/biome:{major}.{minor}
ghcr.io/biomejs/biome:{major}.{minor}.{patch}

Here are a couple examples on how to use the Docker image:

Terminal window
# Lint files
docker run -v $(pwd):/code ghcr.io/biomejs/biome lint
docker run -v $(pwd):/code ghcr.io/biomejs/biome lint --write
# Format files
docker run -v $(pwd):/code ghcr.io/biomejs/biome format
docker run -v $(pwd):/code ghcr.io/biomejs/biome format --write

The installer downloads the latest stable binary to ${XDG_BIN_HOME:-$HOME/.local/bin} and adds it to your PATH:

Terminal window
curl -fsSL https://biomejs.dev/install | bash

To install a specific version, pass --version:

Terminal window
curl -fsSL https://biomejs.dev/install | bash -s -- --version 2.5.9

You can also set BIOME_INSTALL_DIR to override the installation directory or pass --no-modify-path to leave your shell configuration unchanged. Pass --force to download and reinstall a version that is already installed.

The PowerShell installer downloads the latest stable binary to %LOCALAPPDATA%\Biome\bin and adds it to your user and current process PATH:

Terminal window
irm https://biomejs.dev/install.ps1 | iex

To install a specific version, set BIOME_VERSION first:

Terminal window
$env:BIOME_VERSION = "2.5.9"
irm https://biomejs.dev/install.ps1 | iex

You can also set BIOME_INSTALL_DIR to override the installation directory or pass -NoModifyPath to leave your PATH unchanged. Pass -Force to download and reinstall a version that is already installed.

To install Biome, grab the executable for your platform from the latest CLI release on GitHub and give it execution permission.

Terminal window
# macOS arm (M1 or newer)
curl -L https://github.com/biomejs/biome/releases/download/@biomejs/biome@2.5.15/biome-darwin-arm64 -o biome
chmod +x biome
# Linux (x86_64)
curl -L https://github.com/biomejs/biome/releases/download/@biomejs/biome@2.5.15/biome-linux-x64 -o biome
chmod +x biome
# Windows (x86_64, Powershell)
Invoke-WebRequest -Uri "https://github.com/biomejs/biome/releases/download/@biomejs/biome@2.5.15/biome-win32-x64.exe" -OutFile "biome.exe"

Now you can use Biome by simply running ./biome.

Follow our Getting Started guide.