0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/packages/cli
…
History
..
src
.prettierignore
AGENTS.md
CHANGELOG.md
lint-staged.config.js
mastra-cli.png
oxlint.config.ts
package.json
README.md
tsconfig.build.json
tsconfig.json
tsdown.config.ts
turbo.json
vitest.config.ts

Mastra CLI

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

The mastra package is Mastra's command-line interface. Use it to initialize projects, run the local development server and Studio, build production output, start built applications, deploy supported projects, manage environment variables, run migrations, and work with evaluations and scorers.

Installation

Install the CLI globally to use mastra from any directory:

npm install --global mastra

If you prefer not to install packages globally, run it through npx:

npx mastra --help

You can also install the CLI locally in a project:

npm install mastra

Usage

Run commands from a Mastra project:

mastra dev
mastra build
mastra start

Use mastra init to add Mastra to an existing TypeScript project, or use create-mastra to scaffold a new application.

mastra init
npx create-mastra@latest

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.