Skip to main content
Run the fmt script for every selected package and module that declares one. The command is standalone and keeps its own cache for format runs.

Usage

Examples

Format every package and module that has a fmt script:
Format only selected modules and packages:
Show failed task output in the report:
Force every selected format task to run again:
Run formatting from another workspace directory:

Options

Execution

fmt discovers workspace targets, applies the package and module filters, sorts the selected targets, and builds a task group from targets that declare fmt. Targets without a fmt script are left out. If no selected target declares the script, the command prints Skipped fmt (no such script) and exits successfully. For a target with a package.json, the task runs bun run fmt. For a recognized Rust or Python target without a package.json, it runs that target’s default format command directly.
workspace:run --commands=fmt delegates to this standalone command, so the cache and behavior match talos fmt.

Caching

Format entries live in var/cache/fmt. fmt uses its own fingerprint cache, separate from build, lint, test, and workspace runs. Pass --no-cache to bypass both reads and writes.

Output

The command prints the task count before running, then a Fmt report with one row per task that ran or replayed from cache. Cached tasks are marked cached. Failed tasks appear under Failing tasks; use --logs to include their captured output.