Back to Mise

`mise fmt`

docs/cli/fmt.md

2026.9.21.1 KB
Original Source
<!-- @generated by usage-cli from usage spec -->

mise fmt

  • Usage: mise fmt [FLAGS]
  • Effect: modifies state
  • Source code: src/cli/fmt.rs

Format mise TOML configuration

Sorts keys and normalizes whitespace using TOML 1.1 syntax, including multiline inline tables. By default, formats config files in the current directory; --all includes every loaded config. Use --check in CI or --stdin to format a supplied document without rewriting a file.

Flags

  • -a --all — Format every config file mise currently loads, not just those in the current directory
  • -c --check — Check whether the configs are formatted without rewriting them; exits 1 if any are not
  • -s --stdin — Read config from stdin and write its formatted version into stdout
  • -h --help — Print help

Examples

mise fmt
mise fmt --check
cat mise.toml | mise fmt --stdin
<!-- generated reference navigation -->