packages/_changeset-cli/README.md
Custom changeset CLI for managing versioning and changelogs in the Mastra monorepo. This tool provides an interactive interface for creating changesets with automatic detection of modified packages and intelligent version bump suggestions.
This package is internal to the Mastra monorepo and is installed as part of the workspace dependencies:
pnpm install
Run the CLI interactively to select version bumps for changed packages:
pnpm start --filter=@internal/changeset-cli
The CLI will:
.changeset/Skip the interactive prompts by specifying version bumps directly:
# Specify version bumps for specific packages
pnpm mastra-changeset --major @mastra/core --minor @mastra/cli --patch @mastra/memory
# Add a custom message
pnpm mastra-changeset --message "Breaking changes to core API" --major @mastra/core
# Skip all prompts (auto-patch all changed packages)
pnpm mastra-changeset --skipPrompt
| Option | Alias | Description |
|---|---|---|
--message | -m | Changeset message (opens editor if not provided) |
--skipPrompt | -s | Skip interactive prompts and use defaults |
--major | Package(s) to bump major version | |
--minor | Package(s) to bump minor version | |
--patch | Package(s) to bump patch version |
The CLI uses git to identify packages that have been modified compared to the main branch:
origin/main (or main if remote unavailable)If no explicit version bump is specified, changed packages default to patch bumps.
After selecting version bumps, the CLI:
Creates a changeset file in .changeset/ with: