Skip to main content
Launches the local Momentic web editor for the project defined by momentic.config.yaml. Use it to author, edit, and debug tests locally.

Common flags

string
Path to the Momentic configuration file. When omitted, Momentic searches the current directory and its parents for momentic.config.yaml or a workspace configuration. Use this flag to select a project when discovery finds more than one.
number
Port for the local editor server. Defaults to 58888. Env: PORT.
number
Device pixel ratio for the editor’s browser. Set to 2 on macOS Retina or other HiDPI displays. Defaults to the detected screen DPR.

Caching

boolean
Disable step caches entirely for the session. Steps run without cached data and no caches are saved after runs.
boolean
Always save updated step caches after successful runs, even on the main and other protected Git branches. See cache saving eligibility for the default behavior.
boolean
Start from an empty step cache state for the session. Saving still follows the normal branch rules; add --save-cache to save on protected branches. Use it to refresh caches after a config change.

Examples

Open the editor for the current project:
Open the editor using a config in a sibling directory: