## Lesson — Synchronous file operations are often preferable in CLI

**Tags:** performance, curated
**Pattern:** \bfs\.(promises|readFile|writeFile|readdir|mkdir|rm|stat|access|appendFile|copyFile|rename|unlink)\b|['"]fs/promises['"]
**Engine:** regex
**Scope:** packages/cli/**/*.ts, packages/cli/**/*.js, bin/**/*.ts, bin/**/*.js
**Severity:** warning

Synchronous file operations are often preferable in CLI.
