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 2026-11-12 21:12:29 +00:00
..
src feat(playground): show the built-in MCP server in Studio (#29932) 2026-11-12 13:40:02 -05:00
.prettierignore feat(cli): Add api subcommand (#16128) 2026-05-07 09:49:55 +09:00
AGENTS.md chore: enforce AGENTS.md token limits (#15464) 2026-04-18 19:12:37 -07:00
CHANGELOG.md chore: version - exit prerelease mode 2026-11-12 21:12:29 +00:00
lint-staged.config.js refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
mastra-cli.png feat: update image for readme 2024-11-26 18:25:33 +01:00
oxlint.config.ts feat(cli): add Factory API commands (#23226) 2026-09-08 12:07:25 +02:00
package.json chore: version - exit prerelease mode 2026-11-12 21:12:29 +00:00
README.md chore(*): Update/unify/add READMEs (#22858) 2026-09-02 14:36:59 +02:00
tsconfig.build.json cli playground (#6892) 2025-08-22 11:48:18 +02:00
tsconfig.json refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
tsdown.config.ts build(cli): stop rebuilding Factory UI inside the CLI build (#28717) 2026-10-28 15:22:55 +01:00
turbo.json fix(create-mastra): Bundle deps (#23972) 2026-09-15 12:20:46 +02:00
vitest.config.ts use exact hash matching (#16873) 2026-05-21 15:22:11 +02:00

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.