Перейти до вмісту

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.

CPU ArchitectureWindowsmacOSLinuxLinux (musl)
arm64win32-arm64darwin-arm64 (M1 or newer)linux-arm64linux-arm64-musl
x64win32-x64darwin-x64linux-x64linux-x64-musl

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

Terminal window
brew install biome

Biome is available as a winget package for Windows users.

Terminal window
winget install BiomeJs.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

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.1.2/biome-darwin-arm64 -o biome
chmod +x biome
# Linux (x86_64)
curl -L https://github.com/biomejs/biome/releases/download/@biomejs/biome@2.1.2/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.1.2/biome-win32-x64.exe" -OutFile "biome.exe"

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

Follow our Getting Started guide.