Options available across most Biome commands for controlling output, diagnostics, logging, and behavior.
Control markup formatting and color output.
--colors <off|force>Values:
off - Plain text output without ANSI color codesforce - Force ANSI colors even if output destination doesn't support themUsage Examples:
# Disable colors
biome check --colors=off
# Force colors (e.g., when piping to files)
biome check --colors=force
# CI mode forces colors by default
biome ci
biome ci --colors=off # Override to disableBehavior:
NO_COLOR environment variable also disables colorsbiome ci) forces colors on by defaultSpecify path to configuration file or directory.
--config-path <PATH>Arguments:
<PATH> - Path to biome.json/biome.jsonc file or directory containing oneUsage Examples:
# Use specific configuration file
biome check --config-path=/path/to/biome.json
# Use configuration in specific directory
biome check --config-path=/path/to/project
# Combine with other options
biome check --write --config-path=./configs/biome.jsonBehavior:
biome.json or biome.jsonc in that directoryBIOME_CONFIG_PATH environment variableEnvironment Variable:
export BIOME_CONFIG_PATH=/path/to/biome.json
biome checkControl how much information Biome outputs.
Print additional diagnostics and processed files.
--verboseUsage Examples:
# Show detailed processing information
biome check --verbose
# Verbose CI output
biome ci --verboseOutput Includes:
Cap the number of diagnostics displayed.
--max-diagnostics <none|NUMBER>Arguments:
<NUMBER> - Maximum number of diagnostics to shownone - Remove the limit and show all diagnosticsDefault: 20
Usage Examples:
# Show only first 5 diagnostics
biome check --max-diagnostics=5
# Show all diagnostics
biome check --max-diagnostics=none
# Default behavior (20 diagnostics)
biome checkBehavior:
Set minimum diagnostic level to display.
--diagnostic-level <info|warn|error>Values:
info - Show informational, warning, and error diagnosticswarn - Show warning and error diagnostics (default)error - Show only error diagnosticsDefault: warn
Usage Examples:
# Show all diagnostics including info
biome check --diagnostic-level=info
# Show only errors
biome check --diagnostic-level=error
# Default (warnings and errors)
biome checkBehavior:
Control how Biome handles errors and edge cases.
Skip files with syntax errors instead of emitting error diagnostics.
--skip-parse-errorsUsage Examples:
# Skip files with syntax errors
biome check --skip-parse-errors
# Format valid files only
biome format --write --skip-parse-errorsBehavior:
Exit with error code when warnings are emitted.
--error-on-warningsUsage Examples:
# Treat warnings as errors in CI
biome check --error-on-warnings
# Strict mode for formatting
biome format --error-on-warningsBehavior:
Don't error when no files are processed.
--no-errors-on-unmatchedUsage Examples:
# Don't fail if no files match
biome check --no-errors-on-unmatched "src/**/*.ts"
# Useful in CI with conditional file patterns
biome check --changed --no-errors-on-unmatchedBehavior:
Change how diagnostics and summaries are reported.
--reporter <REPORTER>Values:
json - Machine-readable JSON outputjson-pretty - Formatted JSON output with indentationgithub - GitHub Actions workflow commands formatjunit - JUnit XML format for CI integrationsummary - Grouped summary by category and filegitlab - GitLab Code Quality report formatcheckstyle - Checkstyle XML formatrdjson - Reviewdog JSON diagnostic formatUsage Examples:
# JSON output for parsing
biome check --reporter=json
# Formatted JSON for readability
biome check --reporter=json-pretty
# GitHub Actions annotations
biome ci --reporter=github
# JUnit XML for CI
biome ci --reporter=junit > report.xml
# GitLab Code Quality
biome ci --reporter=gitlab > gl-code-quality-report.json
# Checkstyle XML
biome ci --reporter=checkstyle > checkstyle-report.xmlMachine-readable JSON output without formatting.
Output Structure:
{
"diagnostics": [
{
"severity": "error",
"location": {
"path": "src/index.ts",
"span": { "start": 100, "end": 105 }
},
"message": "Diagnostic message",
"code": "lint/correctness/noUnusedVariables"
}
],
"summary": {
"errors": 5,
"warnings": 10,
"filesProcessed": 50
}
}Formatted JSON with indentation for human readability.
Same structure as JSON reporter but with indentation and newlines.
GitHub Actions workflow commands format for PR annotations.
Output Format:
::error file=src/index.ts,line=10,col=5::Diagnostic message
::warning file=src/utils.ts,line=20,col=10::Warning messageBehavior:
JUnit XML format for CI integration.
Output Format:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="biome" tests="50" failures="5">
<testcase name="src/index.ts">
<failure message="Diagnostic message" />
</testcase>
</testsuite>
</testsuites>Usage:
Grouped summary format organized by category and file.
Output:
Errors:
src/index.ts:
- Line 10: Unused variable 'x'
- Line 20: Missing semicolon
Warnings:
src/utils.ts:
- Line 5: Prefer const over let
Summary: 2 errors, 1 warning in 2 filesGitLab Code Quality report format.
Output Format:
[
{
"description": "Diagnostic message",
"fingerprint": "abc123",
"severity": "major",
"location": {
"path": "src/index.ts",
"lines": { "begin": 10 }
}
}
]Usage:
Checkstyle XML format.
Output Format:
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="4.3">
<file name="src/index.ts">
<error line="10" column="5" severity="error" message="Diagnostic message" />
</file>
</checkstyle>Reviewdog diagnostic format for code review.
Output Format:
{
"source": {
"name": "biome"
},
"diagnostics": [
{
"message": "Diagnostic message",
"location": {
"path": "src/index.ts",
"range": {
"start": { "line": 10, "column": 5 }
}
},
"severity": "ERROR"
}
]
}Control internal logging for debugging and diagnostics.
Redirect log messages to a file.
--log-file <PATH>Default: stdout
Usage Examples:
# Write logs to file
biome check --log-file=biome.log
# Use with log level
biome check --log-file=debug.log --log-level=debugSet logging verbosity.
--log-level <none|debug|info|warn|error>Values:
none - No logging (default)debug - Verbose debug informationinfo - Informational messageswarn - Warning messages onlyerror - Error messages onlyDefault: none
Usage Examples:
# Debug logging
biome check --log-level=debug
# Info logging
biome check --log-level=info --log-file=biome.log
# Error logging only
biome check --log-level=errorOutput:
Set log format style.
--log-kind <pretty|compact|json>Values:
pretty - Human-readable with colors and formatting (default)compact - Condensed single-line formatjson - JSON format for machine parsingDefault: pretty
Usage Examples:
# Pretty logging (default)
biome check --log-level=debug --log-kind=pretty
# Compact logging
biome check --log-level=info --log-kind=compact
# JSON logging for parsing
biome check --log-level=debug --log-kind=json --log-file=debug.jsonConnect to a running Biome daemon server instead of starting a new process.
--use-serverUsage Examples:
# Start daemon server
biome start
# Use server for commands
biome check --use-server --write
biome format --use-server --write
biome lint --use-server --write
# Stop daemon server
biome stopBehavior:
--use-server specified)Performance Benefits:
Use Cases:
Control the number of threads used for parallel processing (available in ci command).
--threads <NUMBER>Arguments:
<NUMBER> - Number of threads to use for parallel file processingUsage Examples:
# Limit threads in CI environment
biome ci --threads=2
# Single-threaded processing
biome ci --threads=1
# Use 4 threads
biome ci --threads=4 --writeBehavior:
BIOME_THREADS environment variableUse Cases:
Note: This option is primarily used with the ci command but can be controlled globally via the BIOME_THREADS environment variable for all commands.
Global options can be combined with command-specific options:
# Multiple global options
biome check \
--write \
--config-path=./configs/biome.json \
--verbose \
--max-diagnostics=50 \
--reporter=json-pretty \
--log-level=info \
--log-file=biome.log \
--colors=force
# CI with strict settings
biome ci \
--reporter=github \
--error-on-warnings \
--max-diagnostics=none \
--no-errors-on-unmatched
# Development with server mode
biome check \
--write \
--use-server \
--verbose \
--stagedWhen the same setting can be specified multiple ways:
Example:
# Environment variable
export BIOME_CONFIG_PATH=/path/to/config.json
# CLI option overrides environment variable
biome check --config-path=/other/path/config.json