Skip to Content
ReferenceCLImastra lint

mastra lint

The mastra lint command validates the structure and code of your Mastra project to ensure it follows best practices and is error-free.

Usage

mastra lint [options]

Options

--dir?:

string
Path to your Mastra folder

--root?:

string
Path to your root folder

--tools?:

string
Comma-separated list of paths to tool files to include

--help?:

boolean
display help for command

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