Skip to main content

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.

Applies a generated patch to the local copy of a test. Use it to roll changes suggested by the Momentic dashboard back into version control.
npx momentic apply patch --from <patchId> --to <testName>

patch

Apply a saved patch to a test.

Common flags

-c, --config <config>
string
Path to the Momentic configuration file. Defaults to momentic.config.yaml in the current directory.
-f, --filter <filter>
string
When using workspaces, load the project whose name matches the filter.

Patch selection

--from <from>
string
Patch identifier, formatted as three dash-separated words like potato-apple-cherry.
--to <to>
string
Name of the test the patch should be applied to.

Examples

Apply a patch named potato-apple-cherry to checkout-happy-path:
npx momentic apply patch --from potato-apple-cherry --to checkout-happy-path