The fastest way to download Biome is to use npm or your preferred package manager. The CLI is also available as a standalone executable if you want to use Biome without installing Node.js.
To install Biome, run the following commands in a directory containing a package.json file.
npm
yarn
pnpm
bun
Terminal window
npminstall--save-dev--save-exact@biomejs/biome
Terminal window
yarnadd--dev--exact@biomejs/biome
Terminal window
pnpmadd--save-dev--save-exact@biomejs/biome
Terminal window
bunadd--dev--exact@biomejs/biome
It’s highly recommended not to use range operators when installing Biome.
Check the versioning page for more information.
We recommend creating a biome.json configuration file for each project.
It eliminates the need to repeat the CLI options every time you run a command and ensures that Biome applies the same configuration in your editor. If you’re happy with Biome’s defaults, you don’t have to create the configuration.
To create the configuration, run the init command in the root folder of your project:
npm
yarn
pnpm
bun
deno
Terminal window
npx@biomejs/biomeinit
Terminal window
yarndlx@biomejs/biomeinit
Terminal window
pnpmdlx@biomejs/biomeinit
Terminal window
bunx@biomejs/biomeinit
Terminal window
denorun-Anpm:@biomejs/biomeinit
After running the init command, you’ll now have a new biome.json file in your directory:
If you’re using Node.js, the recommended way to run Biome in CI is to use your favourite package manager.
This ensures that your CI pipeline uses the same version of Biome as you do inside the editor or when running local CLI commands.