Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
The Mastra CLI enables you to get up and running with mastra quickly. It is not required to use mastra, but helpful for getting started and more advanced use cases.
npm i -g mastra
mastra init
Mastra's data syncing infrastructure is designed for Next.js sites running on serverless hosting providers like Vercel or Netlify.
Logs are stored in Upstash.
Full deployment docs here.
mastra init
This creates a mastra directory under src
containing an index.ts
entrypoint and an agent
directory containing two sample agents.
project-root/
├── src/
├── app/
└── mastra/
├── agents/
│ └── agents.ts
└── index.ts
mastra agent new
This creates a new agent.
mastra agent list
This lists all available agents.
mastra engine add
This installs the @mastra/engine
dependency to your project.
mastra engine generate
Generates the Drizzle database client and TypeScript types.
mastra engine migrate
This migrates the database forward. You might need to run this after updating mastra.
mastra engine up
This is a shortcut that runs the docker-compose up
command using the mastra-pg.docker-compose.yaml
file. This will spin up any local docker containers that mastra needs.
It is useful for cases where you don't have a dockerized postgres
db setup.
mastra dev
This spins up REST
endpoints for all agents, all workflows, and memory.
pnpm i
to install depsThis CLI collects anonymous usage data to help improve the tool. We collect:
No personal or sensitive information is collected.
To opt-out of telemetry:
NO_MASTRA_TELEMETRY=1
to commandsFAQs
cli for mastra
The npm package mastra receives a total of 760 weekly downloads. As such, mastra popularity was classified as not popular.
We found that mastra demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.