Skip to main content
Static checks over the local project. Use these in pre-commit hooks or CI to catch duplicate IDs and config drift before runs. For schema, file-reference, and entity ID validation of simplified format YAML, see momentic lint.

duplicate-ids

Detect duplicate step and command IDs across tests and modules. For simplified format projects, this delegates to momentic lint.
npx momentic check duplicate-ids

Options

--fix
boolean
Rename duplicate IDs in place to make them unique.

duplicate-names

Detect duplicate test and module names so every entity is uniquely identifiable.
npx momentic check duplicate-names

unused

Report modules that are not referenced by any test, directly or transitively through other modules. Useful for finding .module.yaml files left orphaned after tests are deleted or refactored. Exits non-zero when unused modules are found.
npx momentic check unused

config

Validate momentic.config.yaml against the configuration schema.
npx momentic check config

Common flags

-c, --config <config>
string
Path to the Momentic configuration file. Defaults to momentic.config.yaml in the current directory.

Examples

Detect and auto-fix duplicate IDs:
npx momentic check duplicate-ids --fix