# Settings need migrating

What "which is now called" and "these files need migrating" mean and how to fix them.

```text
error: axle.toml sets env at line 3, column 7, which is now called globalEnv at the root
hint: Run axle migrate to update axle.toml, or rename the key yourself.
```

```text
error: these files need migrating: axle.toml, config/axle.toml
hint: Run axle migrate, then commit the files it changes.
```

## Why it happens

A setting in `axle.toml`, or in a preset it extends, was renamed or changed shape in this version of Axle. Axle stops rather than read it the old way. When the file comes from a package in `node_modules`, the hint says to update that package, or to ask its authors to rename the key. The second message comes from [`axle migrate --check`](https://axlers.dev/docs/reference/migrate.md), which found files `axle migrate` would change, including the settings of plugins that can migrate them. With `--upgrade`, it also counts the files plugins would change to [upgrade their tools](https://axlers.dev/docs/reference/migrate.md#upgrading-tools), and the hint says to run `axle migrate --upgrade`.

## How to fix it

Run `axle migrate`, or `axle migrate --upgrade` when the hint says so, check the changes, and commit them. `--dry-run` shows them first. The [list of migrations](https://axlers.dev/docs/reference/migrate.md#migrations) says what each old setting is now called, if you'd rather change it yourself.
