Back to Mise

`mise fmt`

docs/cli/fmt.md

2026.8.12592 B
Original Source
<!-- @generated by usage-cli from usage spec -->

mise fmt

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

Formats mise.toml

Sorts keys and cleans up whitespace in mise.toml

Flags

  • -a --all — Format all files from the current directory
  • -c --check — Check if the configs are formatted, no formatting is done
  • -s --stdin — Read config from stdin and write its formatted version into stdout
  • -h --help — Print help

Examples:

mise fmt