Skip to content

mise generate config ​

  • Usage: mise generate config [FLAGS] [PATH]
  • Effect: destructive — may delete or irreversibly overwrite
  • Source code: src/cli/generate/config.rs

Generate a mise.toml file

Same as mise edit, which has the details. It opens the interactive editor, or without an interactive terminal (or with --yes) writes a commented starter template. If PATH already exists it stops with an error rather than replace the file; pass --force to replace it.

Arguments ​

  • [PATH] — Config file to edit or create; defaults to mise.toml

Flags ​

  • -g --global — Generate the global config file (~/.config/mise/config.toml)
  • -n --dry-run — Print the result instead of writing it to the file
  • -f --force — Replace an existing file with the starter template when not opening the editor
  • -t --tool-versions <FILE> — Copy the tools from this .tool-versions file into the config, without opening the editor
  • -h --help — Print help

Examples ​

Edit mise.toml in the current directory

mise generate config

Print the result instead of writing it

mise generate config -n
MIT LicenseCopyright © 2026jdx.dev