Skip to main content
Validate simplified format test and module YAML files: schema, local file references (modules, JS steps, JSON files), and entity ID conflicts. Applies only to files with fileType: momentic/test/v2 or fileType: momentic/module/v2. Lint runs automatically before starting the local app and before executing tests, so normal app and test runs already block invalid YAML. Use this command for fast standalone validation in pre-commit hooks, in CI, or after agent-authored edits.

Arguments

string
Path to a single file to lint. Defaults to the entire project, which can take several seconds in large workspaces.

Options

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.

Examples

Lint the entire project:
Lint a single test file: