Biome commands

One toolchain for your web project

32 commands

Core Workflows

  • biome check <path>

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

  • biome check --write <path>

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

  • biome check --unsafe <path>

    Run checks and automatically apply both safe and unsafe fixes

  • biome ci <path>

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

  • biome format <path>

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

  • biome format --write <path>

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

  • biome lint <path>

    Run only the linter on the specified paths

  • biome lint --write <path>

    Run the linter and automatically apply safe code fixes

  • biome lint --unsafe <path>

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

Project & Configuration

  • biome init

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

  • biome migrate

    Update the Biome configuration file to match the latest schema version

  • biome migrate prettier

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

  • biome migrate eslint

    Migrate existing ESLint configuration to Biome

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

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

Version Control & Git

  • biome check --staged

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

  • biome check --changed

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

  • biome check --since=<ref>

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

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

    Explicitly specify the version control client to use for integration

Information & Diagnostics

  • biome explain <rule>

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

  • biome --version

    Print the installed Biome version

  • biome --help

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

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

    Cap the maximum number of diagnostics displayed in the terminal

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

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

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

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

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

    Force or disable colorized output in the terminal

File Handling & Execution

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

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

  • biome check --ignore-unknown

    Ignore files with unknown extensions instead of throwing an error

  • biome check --no-errors-on-unmatched

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

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

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

Daemon & Server

  • biome start

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

  • biome stop

    Stop the running Biome daemon server

  • biome lsp-proxy

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