Command line

Run the package without installing it globally:

ANTHROPIC_API_KEY=... npx spareparts-changelog generate \
  --provider anthropic \
  --from v1.0.0 \
  --to HEAD \
  --title v1.1.0

The default updates CHANGELOG.md. Repeating the same title and range replaces the managed section instead of appending a duplicate.

Render Markdown to standard output without touching the working tree:

npx spareparts-changelog generate \
  --provider anthropic \
  --from v1.0.0 \
  --to HEAD \
  --title v1.1.0 \
  --no-write \
  --output markdown

Use --instructions to pass the same audience and tone guidance supported by the Action. Provider selection accepts anthropic, openai, gemini, or an explicit vendor:model pair. The corresponding provider API key must be in the environment.

The command never commits or pushes. Repository publication remains an explicit Git operation owned by you or the surrounding CI workflow.