New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-mastra

Package Overview
Dependencies
Maintainers
0
Versions
51
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.1.4
  • npm
  • Socket score

Version published
Weekly downloads
2K
increased by297.78%
Maintainers
0
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 npx:

npx create-mastra@latest

Using npm:

npm create mastra@latest

Using yarn:

yarn create mastra

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, or groq)
  • -e, --example - Include example code

Examples

bash:packages/create-mastra/README.md 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

FAQs

Package last updated on 22 Feb 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc