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
.
Supported platforms
Section titled Supported platformsYou have to pick the correct binary for your platform for Biome work. The following table should help you do so.
CPU Architecture | Windows | macOS | Linux | Linux (musl) |
---|---|---|---|---|
arm64 | win32-arm64 | darwin-arm64 (M1 or newer) | linux-arm64 | linux-arm64-musl |
x64 | win32-x64 | darwin-x64 | linux-x64 | linux-x64-musl |
Homebrew
Section titled HomebrewBiome is available as a Homebrew formula for macOS and Linux users.
brew install biome
Docker
Section titled DockerBiome 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:
# Lint filesdocker run -v $(pwd):/code ghcr.io/biomejs/biome lintdocker run -v $(pwd):/code ghcr.io/biomejs/biome lint --write
# Format filesdocker run -v $(pwd):/code ghcr.io/biomejs/biome formatdocker run -v $(pwd):/code ghcr.io/biomejs/biome format --write
Using a published binary
Section titled Using a published binaryTo install Biome, grab the executable for your platform from the latest CLI release on GitHub and give it execution permission.
# macOS arm (M1 or newer)curl -L https://github.com/biomejs/biome/releases/download/cli%2Fv<version>/biome-darwin-arm64 -o biomechmod +x biome
# Linux (x86_64)curl -L https://github.com/biomejs/biome/releases/download/cli%2Fv<version>/biome-linux-x64 -o biomechmod +x biome
# Windows (x86_64, Powershell)Invoke-WebRequest -Uri "https://github.com/biomejs/biome/releases/download/cli%2Fv<version>/biome-win32-x64.exe" -OutFile "biome.exe"
Now you can use Biome by simply running ./biome
.
Next Steps
Section titled Next StepsFollow our Getting Started guide.