> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# momentic migrate simplified-format

> Rewrite local web tests and modules from legacy YAML to the simplified format.

`momentic migrate simplified-format` is the narrow file-only migration. It
rewrites every legacy `*.test.yaml` / `*.module.yaml` in the project through the
simplified format serializer and flips `fileFormat: v2` on
`momentic.config.yaml`. It does not touch the rest of the project config (agent
versions, `ai.useMemory`, `ai.failureRecovery`) and does not upgrade your
installed CLI version.

If you want the overarching upgrade (file rewrite plus CLI version bump plus
recommended config defaults), use
[`momentic upgrade`](/cli-reference/momentic/commands/upgrade) instead.

```bash theme={null}
npx momentic migrate simplified-format
```

The command runs against the CLI version installed in your project. If that
version is older than `momentic@latest`, the command warns you and points at
`npx momentic@latest upgrade` so you can install the newest serializers before
rewriting your files.

The first file that fails to migrate aborts the run. Resolve the surfaced error
and rerun the command; the migration is not designed to be resumable.

## Options

<ParamField path="-c, --config <config>" type="string">
  Path to the Momentic configuration file. Defaults to `momentic.config.yaml` in
  the current directory.
</ParamField>

## Examples

Migrate every legacy web test and module in the project:

```bash theme={null}
npx momentic migrate simplified-format
```
