# Install mastra with npm

cli for mastra. Version 1.13.0 via npm; verified 2026-06-19.

## Install

```sh
sudo av install npm:mastra
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g mastra
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:mastra
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/mastra>
- **Version:** 1.13.0
- **Source summary:** cli for mastra
- **Homepage:** <https://mastra.ai>
- **Repository:** <https://github.com/mastra-ai/mastra>
- **Upstream docs:** <https://mastra.ai>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/mastra/-/mastra-1.13.0.tgz>
- **Issue tracker:** <https://github.com/mastra-ai/mastra/issues>
- **Published:** 2026-06-12T02:20:51.240Z
- **Last updated:** 2026-06-19T05:52:10.742Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- mastra (cli)
- mastra (alias)

## Dependencies

- @babel/parser
- @babel/types
- @clack/prompts
- @expo/devcert
- @mastra/deployer
- @mastra/loggers
- archiver
- commander
- dotenv
- execa
- fs-extra
- get-port
- local-pkg
- openapi-fetch
- picocolors
- posthog-node
- semver
- serve
- serve-handler
- shell-quote
- strip-json-comments
- tinyglobby
- yocto-spinner

## Build dependencies

- @commander-js/extra-typings
- @internal/lint
- @internal/playground
- @internal/types-builder
- @mastra/core
- @types/archiver
- @types/fs-extra
- @types/node
- @types/semver
- @types/serve-handler
- @types/shell-quote
- @vitest/coverage-v8
- @vitest/ui
- eslint
- memfs
- rollup
- tsup
- tsx
- type-fest
- typescript
- vitest
- zod

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.13.0
- Package-manager updated: 2026-06-19
- Local data: ok
- Upstream repository: https://github.com/mastra-ai/mastra
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for mastra. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** 1.x Tester: 0.0.0-1.x-tester-20251106141102, A B Demo: 0.0.0-a-b-demo-20260526202724, A2a: 0.0.0-a2a-20250421213654, A2a Vnext: 0.0.0-a2a-vnext-20260424123427, Add Crumb Action: 0.0.0-add-crumb-action-20251028111500, Add Libsql Changeset: 0.0.0-add-libsql-changeset-20250910154739, Add Runtime Context To Openai Realtime: 0.0.0-add-runtime-context-to-openai-realtime-20250516201052, Add Save Score Validation On Stores: 0.0.0-add-save-score-validation-on-stores-20250911031242, Add Stepgraph To Run Exec Result: 0.0.0-add-stepgraph-to-run-exec-result-20251112113541, After Tool Execute: 0.0.0-afterToolExecute-20250415041527, Ag Example: 0.0.0-ag-example-20260516005230, Agent Chat Ui: 0.0.0-agent-chat-ui-20260305212602, Agent Error Handling: 0.0.0-agent-error-handling-20251023180025, Agui: 0.0.0-agui-20250501191909, Ai Sdk Network Text Delta: 0.0.0-ai-sdk-network-text-delta-20251017172601, Ai Sdk Workflow Route: 0.0.0-ai-sdk-workflow-route-20251010135341, Ai Telementry Ui: 0.0.0-ai-telementry-ui-20250908102126, Ai V5: 0.0.0-ai-v5-20250813235735, Allow To Pass A Mastra URL Instance: 0.0.0-allow-to-pass-a-mastra-url-instance-20251105224938, Alpha: 1.13.0-alpha.4, Alternative Angelfish F7665c: 0.0.0-alternative-angelfish-f7665c-20260119184917, Apricot Manager: 0.0.0-apricot-manager-20260327095430, Async Hooks Fix: 0.0.0-async-hooks-fix-20260405155845, Auth And Authz: 0.0.0-auth-and-authz-20260203062537
- **Version Count:** 1,324
- **Maintainers:** smthomas, abhiaiyer, taofeeq-deru, ehindero, calcsam, rase-, wardpeet, tylerbarnes, nikaiyer, ifedayo, adeleke5140
- **Publisher:** GitHub Actions
- **Engines:** Node: >=22.13.0
- **Peer Dependencies:** @mastra/core
- **Integrity:** sha512-SCWEUORoL7wdN3RK2hXosF2ogFaE8Z1cpRay43HDYwv+TnF8lU/lb8r4VczIlYGyIyNg5b7YCQd0gHUG+Cl38w==
- **Shasum:** 3d56851e7ea9454512f599a591dba98d04533012
- **Unpacked Size:** 11,776,429
- **File Count:** 0
- **Created At:** 2024-09-21T20:36:31.862Z
- **Latest Published At:** 2026-06-12T02:20:51.240Z
- **Modified At:** 2026-06-12T21:25:36.994Z


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [claude-mem](https://www.automicvault.com/pkg/npm/claude-mem/) - Both packages touch the same language runtime or ecosystem. Shared terms: agent, ai, clack, cli, developer.
- [alpic](https://www.automicvault.com/pkg/npm/alpic/) - Both packages touch the same language runtime or ecosystem. Shared terms: agent, agents, ai, clack, cli.
- [lost-pixel](https://www.automicvault.com/pkg/npm/lost-pixel/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, execa, extra.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
