Biome
Biome

Core Workflows

Run the formatter, linter, and import sorting on the specified paths

$biome check <path>

Run checks and automatically apply safe fixes, formatting, and import sorting

$biome check --write <path>

Run checks and automatically apply both safe and unsafe fixes

$biome check --unsafe <path>

Run checks for CI environments, failing the build if any files require changes

$biome ci <path>

Run only the formatter on the specified paths, printing results to standard output

$biome format <path>

Run the formatter and write the formatted code directly to the files

$biome format --write <path>

Run only the linter on the specified paths

$biome lint <path>

Run the linter and automatically apply safe code fixes

$biome lint --write <path>

Run the linter and automatically apply both safe and unsafe code fixes

$biome lint --unsafe <path>

Project & Configuration

Bootstraps a new biome.json configuration file in the current directory

$biome init

Update the Biome configuration file to match the latest schema version

$biome migrate

Migrate existing Prettier configuration (.prettierrc, .prettierignore) to Biome

$biome migrate prettier

Migrate existing ESLint configuration to Biome

$biome migrate eslint

Run checks using a biome.json configuration file located in a specific directory

$biome check --config-path=<dir>

Version Control & Git

Run checks only on files that are staged in the version control system

$biome check --staged

Run checks only on files that have changed in the working tree

$biome check --changed

Run checks only on files changed since the specified Git reference (e.g., main)

$biome check --since=<ref>

Explicitly specify the version control client to use for integration

$biome check --vcs-client-kind=<git>

Information & Diagnostics

Print detailed documentation and examples for a specific lint rule (e.g., noVar)

$biome explain <rule>

Print the installed Biome version

$biome --version

Print the global help message and a list of all available commands

$biome --help

Cap the maximum number of diagnostics displayed in the terminal

$biome check --max-diagnostics=<number>

Filter the output to only show diagnostics of the specified severity or higher

$biome check --diagnostics-level=<info|warn|error>

Change the format of the output diagnostics (e.g., for GitHub Actions)

$biome check --reporter=<json|summary|github>

Force or disable colorized output in the terminal

$biome check --colors=<off|force>

File Handling & Execution

Format code passed via standard input, pretending it has the specified file name/extension

$biome format --stdin-file-path=<file>

Ignore files with unknown extensions instead of throwing an error

$biome check --ignore-unknown

Do not exit with a non-zero error code if no files were matched by the path

$biome check --no-errors-on-unmatched

Set the maximum allowed size for a file to be processed (in bytes)

$biome check --files-max-size=<size>

Daemon & Server

Start the Biome daemon server in the background for faster subsequent executions

$biome start

Stop the running Biome daemon server

$biome stop

Start the Biome Language Server Protocol (LSP) proxy for editor integrations

$biome lsp-proxy