Changesets CLI
$ changeset Community Med RiskManages semantic versioning and changelogs across multi-package JavaScript/TypeScript monorepos using Markdown intent files in .changeset/. Supports non-interactive changeset status --output and changeset version, though changeset add prompts interactively unless --empty is used.
npm install -D @changesets/cli Operates directly on workspace package.json files and .changeset/*.md entries; no MCP server is needed.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
status --output=<file> exports JSON and version is headless, but changeset add is interactive and lacks CLI flags for package/bump selection.
changeset status --outputemits structured JSONchangeset addrelies on interactive terminal prompts
Decouples local version bumps from remote publish, though changeset publish pushes directly to npm registries.
- Two-phase workflow separates local
versionfrompublish - Reads
NPM_TOKEN/.npmrconly duringpublish
Standard npm devDependency running anywhere Node.js is installed.
- Cross-platform Node.js CLI via
@changesets/cli
De-facto standard for coordinating cross-package bumps and changelogs in pnpm/yarn/npm monorepos.
- Handles workspace dependency graph propagation automatically
Established MIT project widely adopted by major JS monorepos.
- Maintained under
changesets/changesets
Clear markdown docs in the repository covering commands and monorepo workflows.
- Official docs under
changesets/changesets/docs
Security, Auth & Guardrails
Version and status commands require no auth; changeset publish reads npm auth from ~/.npmrc or NPM_TOKEN.
MIT open-source npm package; completely free.
# Changesets CLI (changeset) Agent Rules - Avoid bare `changeset add` (it launches interactive TUI prompts); write `.changeset/<id>.md` directly or pass `--empty`. - Inspect upcoming bumps with `changeset status --verbose` before running `changeset version`. - Never run `changeset publish` without explicit user approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx changeset status --output=.changeset/status.json
Writes pending changesets and computed package version bumps to a JSON file without modifying packages.
Controlled Writes & Previews
npx changeset version
Consumes .changeset/*.md files to bump package.json versions and update CHANGELOG.md locally.
Strengths for Agents
- +
changeset status --outputgives agents an exact JSON plan of upcoming version bumps. - + Clean separation between authoring
.changeset/*.md, bumping versions locally, and publishing. - + Propagates peer/workspace dependency version bumps across monorepos automatically.
Caveats & Pitfalls
- !
changeset addcannot be driven purely by CLI flags and hangs on interactive prompts unless agents write.changeset/*.mdfiles directly. - ! Requires a Node.js runtime and workspace package manager.