<!-- @generated by usage-cli from usage spec -->
# `mise edit`

- **Usage:** `mise edit [FLAGS] [PATH]`
- **Effect:** modifies state
- **Source code:** [`src/cli/edit.rs`](https://github.com/jdx/mise/blob/main/src/cli/edit.rs)

Edit mise.toml interactively

## Arguments
- **`[PATH]`** — Path to the config file to create

## Flags
- **`-g --global`** — Edit the global config file (~/.config/mise/config.toml)
- **`-n --dry-run`** — Show what would be generated without writing to file
- **`-t --tool-versions <TOOL_VERSIONS>`** — Path to a .tool-versions file to import tools from
- **`-h --help`** — Print help

Examples:

```
mise edit             # edit mise.toml interactively
mise edit .mise.toml  # edit a specific file
mise edit -g          # edit the global config file
mise edit -y          # skip interactive editor
mise edit -n          # preview without writing
```
