> ## 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.

# momentic lint

> Validate Momentic simplified format test and module YAML files.

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 workflows already block invalid YAML. Use this
command for fast standalone validation in pre-commit hooks, in CI, or after
agent-authored edits.

```bash theme={null}
npx momentic lint
```

## Arguments

<ParamField path="[path]" type="string">
  Path to a single file to lint. Defaults to the entire project, which can take
  several seconds in large workspaces.
</ParamField>

## Options

<ParamField path="-c, --config <config>" type="string">
  Path to the Momentic configuration file. Defaults to `momentic.config.yaml` in
  the current directory.
</ParamField>

## Examples

Lint the entire project:

```bash theme={null}
npx momentic lint
```

Lint a single test file:

```bash theme={null}
npx momentic lint tests/checkout/happy-path.yaml
```
