> ## 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-mobile migrate simplified-format

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

`momentic-mobile migrate simplified-format` is the narrow file-only migration.
It rewrites every legacy mobile `*.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-mobile upgrade`](/cli-reference/momentic-mobile/commands/upgrade)
instead.

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

The command runs against the CLI version installed in your project. If that
version is older than `momentic-mobile@latest`, the command warns you and points
at `npx momentic-mobile@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 mobile test and module in the project:

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