Mastra CLI

The mastra CLI scaffolds projects (`npm create mastra`), runs the local dev server with hot reload, opens the Studio playground, generates types, runs migrations on memory stores, deploys to Mastra Cloud, and runs evals. Installable as @mastra/cli.

API entry from apis.yml

apis.yml Raw ↑
aid: mastra-ai:mastra-cli
name: Mastra CLI
description: The mastra CLI scaffolds projects (`npm create mastra`), runs the local dev server with hot
  reload, opens the Studio playground, generates types, runs migrations on memory stores, deploys to Mastra
  Cloud, and runs evals. Installable as @mastra/cli.
humanURL: https://mastra.ai/docs/cli/overview
tags:
- CLI
- Developer Tools
properties:
- type: Documentation
  url: https://mastra.ai/docs/cli/overview
- type: SourceCode
  url: https://github.com/mastra-ai/mastra/tree/main/packages/cli
- type: PackageManager
  url: https://www.npmjs.com/package/mastra