Socket
Book a DemoInstallSign in
Socket

create-mastra

Package Overview
Dependencies
Maintainers
11
Versions
312
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-mastra

Create Mastra apps with one command

0.11.3
alpha
latest
Source
npmnpm
Version published
Weekly downloads
1.3K
-37.22%
Maintainers
11
Weekly downloads
 
Created
Source

Create Mastra

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

Usage

Using npm:

npx create-mastra@latest

Using yarn:

yarn dlx create-mastra@latest

Using pnpm:

pnpm create mastra

Options

  • --default - Quick start with defaults (src directory, OpenAI, no examples)
  • -c, --components <components> - Comma-separated list of components (agents, tools, workflows)
  • -l, --llm <model-provider> - Default model provider (openai, anthropic, groq, google, or cerebras)
  • -e, --example - Include example code

Examples

Create a new project with default settings npx create-mastra@latest --default Create a project with specific components and LLM provider npx create-mastra@latest -c agents,tools -l anthropic Create a project with example code npx create-mastra@latest --example

What's included?

The generated project will have:

  • A configured Mastra setup in the src directory
  • Selected components (agents, tools, workflows)
  • Environment configuration for your chosen LLM provider
  • TypeScript configuration
  • Example code (if selected)

System Requirements

  • Node.js 20 or later
  • MacOS, Windows, and Linux are supported

Keywords

mastra

FAQs

Package last updated on 04 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.