Skip to main content
momentic-mobile migrate simplified-format rewrites every legacy mobile *.test.yaml / *.module.yaml file in the project through the simplified format serializer and sets fileFormat: v2 on momentic.config.yaml. It does not change the rest of the project config (agent versions, ai.useMemory, ai.failureRecovery) and does not upgrade your installed CLI version. If you want the file rewrite plus a CLI version bump and recommended config defaults, use momentic-mobile upgrade instead.
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 reported error and rerun the command; the migration does not resume where it stopped.

Options

string
Path to the Momentic configuration file. Defaults to momentic.config.yaml in the current directory.

Examples

Migrate every legacy mobile test and module in the project: