Ir al contenido

Install Biome

Esta página aún no está disponible en tu idioma.

Biome is distributed as an npm package and as a standalone executable. Install it with your package manager if your project already has one, or use the standalone executable when you do not use Node.js or when Biome would be the only reason to have a package.json.

Install @biomejs/biome as a development dependency with a package manager, or use the install script:

npm i -D -E @biomejs/biome

After you install Biome, run it through your package manager, or run biome directly if you used the install script. For example, biome check runs the formatter, the linter, and assist actions on your project:

npx biome check

The standalone executable does not need Node.js. After you install it, run it as biome directly.

Pick the binary that matches your operating system and architecture:

Platform arm64 x64
Windows win32-arm64 win32-x64
macOS darwin-arm64 (Apple silicon) darwin-x64
Linux linux-arm64 linux-x64
Linux (musl) linux-arm64-musl linux-x64-musl
Android (Termux) android-arm64 android-x64

The install script downloads the latest stable binary and adds it to your PATH. Run it with the macOS / Linux or Windows tab of the install command at the top of this page. It installs to ${XDG_BIN_HOME:-$HOME/.local/bin} on macOS and Linux, and to %LOCALAPPDATA%\Biome\bin on Windows.

To install a specific version, pass it to the installer:

Ventana de terminal
curl -fsSL https://biomejs.dev/install | bash -s -- --version 2.6.10

The installer also accepts these options:

Goal bash PowerShell
Override the installation directory BIOME_INSTALL_DIR environment variable BIOME_INSTALL_DIR environment variable
Leave your shell configuration or PATH unchanged --no-modify-path -NoModifyPath
Reinstall a version that is already installed --force -Force

Biome is available as a Homebrew formula for macOS and Linux:

Terminal window
brew install biome

Biome is available as a community-maintained package in the Winget repository for Windows:

Terminal window
winget install biomejs.biome

Biome is available as a community-maintained package in the Arch Linux Extra repository:

Terminal window
pacman -S biome

The extra repository is enabled by default in /etc/pacman.conf. If it is disabled, uncomment these lines:

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

Biome publishes official Docker images for the amd64 (x64) and arm64 architectures. Tags are available for every major, minor, and patch version:

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

The image’s working directory is /code. Mount your project there and pass any Biome command:

Terminal window
docker run -v $(pwd):/code ghcr.io/biomejs/biome check
docker run -v $(pwd):/code ghcr.io/biomejs/biome check --write

Download the binary for your platform from the latest release on GitHub and make it executable:

Ventana de terminal
# macOS (Apple silicon)
curl -L https://github.com/biomejs/biome/releases/download/@biomejs/biome@2.6.10/biome-darwin-arm64 -o biome
chmod +x biome
# Linux (x64)
curl -L https://github.com/biomejs/biome/releases/download/@biomejs/biome@2.6.10/biome-linux-x64 -o biome
chmod +x biome
# Windows (x64, PowerShell)
Invoke-WebRequest -Uri "https://github.com/biomejs/biome/releases/download/@biomejs/biome@2.6.10/biome-win32-x64.exe" -OutFile "biome.exe"

Run it as ./biome, or move it to a directory on your PATH to run it as biome.

To upgrade Biome to a new version, and to find the upgrade guide for each major version, see Upgrade Biome.