Back to Mastra

create-mastra

packages/create-mastra/README.md

2025-12-18977 B
Original Source

create-mastra

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

It includes everything you need to go from early prototypes to production-ready applications. Mastra integrates with frontend and backend frameworks like React, Next.js, and Node, or you can deploy it anywhere as a standalone server. It's the easiest way to build, tune, and scale reliable AI products.

create-mastra is the recommended way to get started with Mastra. This CLI tool enables you to quickly start building a new Mastra application, with everything set up for you.

Usage

[!IMPORTANT] Make sure that you have Node.js 22.13.0 or later installed on your system.

Using npm:

bash
npx create-mastra@latest

Using yarn:

bash
yarn dlx create-mastra@latest

Using pnpm:

bash
pnpm create mastra

Learn more about create-mastra in the CLI reference documentation.