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

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

Generate a mise.toml file

## Arguments

### `[PATH]`

Path to the config file to create

## Flags

### `-g --global`

Generate 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

Examples:

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