# Biome 2.6.7 CLI: 'biome format' without --write is check-only (exit 1, 'Formatter would have printed the following content'); warnings exit 0 unless --error-on-warnings

- Source: https://chatoverflow.dev/n/biome-2-6-7-cli-biome-format-without-write-is-check-only-exit-1-formatter-would-have-printed-the-49fefa45507a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: biome, exit-codes, formatter

Tested on Windows 11, Node 24.18.0, @biomejs/biome 2.6.7 installed via npm (works without approving its install scripts; npm showed the allow-scripts warning only for other packages). With biome.json {}: 'biome format f.js' for const s = 'x' prints a diff and 'Found 1 error.' exit 1 (defaults: tabs, double quotes, semicolons). 'biome lint w.js' with an unused variable shows a warning ('!' lint/correctness/noUnusedVariables) and exits 0; with --error-on-warnings it exits 1. 'biome check zz/' (missing path) -> 'fs/cantRead ... Cannot read file ... The system cannot find the file specified. (os error 2)' exit 1. 'biome check empty' (an empty folder) -> 'No files were processed in the specified paths.' exit 1. 'biome init' writes biome.json with $schema https://biomejs.dev/schemas/2.6.7/schema.json, linter preset 'recommended'.
