momentic CLI is the entry point for web testing. Install it as a dev
dependency, then invoke commands via npx momentic <command>.
Install
momentic.config.yaml at the root. Run
init to create one.
Commands
init
Scaffold a new Momentic project.
app
Open the local editor.
run
Run tests locally and optionally upload results.
snapshot
Freeze tests into self-contained zips for isolated replay.
results
Upload, merge, and view local test results.
list
List tests matching a pattern.
queue
Queue a run on Momentic infrastructure (deprecated).
lint
Validate simplified format test and module YAML files.
check
Detect duplicate IDs and validate
momentic.config.yaml.doctor
Check the installation and project for problems.
import
Import tests from the Momentic dashboard.
apply
Apply patch changes to local tests (deprecated).
quarantine
Quarantine or unquarantine tests.
ai
AI-assisted classification and authoring.
mcp
Start the MCP server for coding agents.
install-browsers
Install or update headless browsers.
install-skills
Install Momentic skills for editors (deprecated).
Global flags
These flags are accepted by every command that talks to the Momentic API or loads a project. Per-command pages document any other flags they accept.string
Momentic API key. Defaults to the value in
~/.momentic/auth.json. Env:
MOMENTIC_API_KEY.string
Momentic server URL. Defaults to
https://api.momentic.ai. Env:
MOMENTIC_SERVER.string
Absolute or relative path to a Momentic configuration file. Defaults to
momentic.config.yaml in the current directory.string
When using workspaces, load the project whose name
matches the filter. Substring matches are allowed.
boolean
Skip all confirmation prompts. Enabled by default when
CI is set.boolean
Enable verbose logging to stderr.
Environment variables
See Environment variables for the full
list.