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