The mastra lint
command validates your Mastra project structure and code.
Usage
mastra lint [options]
Options
Option | Description |
---|---|
-d, --dir <path> | Path to your Mastra folder |
-r, --root <path> | Path to your root folder |
-t, --tools <toolsDirs> | Comma-separated list of paths to tool files to include |
Advanced usage
Disable telemetry
To disable CLI analytics while running linting (and other commands) set
MASTRA_TELEMETRY_DISABLED=1
:
MASTRA_TELEMETRY_DISABLED=1 mastra lint