A professional, interactive CLI that helps teams create clean, consistent Conventional Commits directly from the terminal.
Commit Conventional streamlines commit creation by guiding developers through a structured prompt flow and validating each part of the message before committing.
It is designed for reliability, clarity, and day-to-day developer productivity in real Git workflows.
- Interactive terminal-first commit workflow
- Enforces Conventional Commit structure and standards
- Built-in validation for type, scope, subject, body, and breaking changes
- Safe by design: never stages files automatically
- Supports preview mode before creating a commit
Consistent commit history improves:
- Team collaboration and code review quality
- Changelog generation and release automation
- Long-term repository maintainability
This tool reduces ambiguity and helps teams adopt a disciplined commit culture with minimal friction.
- Node.js 18+
- Git
- Interactive terminal session
Use directly without global install:
npx commit-conventionalOr install locally / globally:
npm install --save-dev commit-conventional
npm install --global commit-conventional- Stage your changes:
git add .- Run the CLI:
npx commit-conventional- Review and confirm the generated message.
Tip: run
git diff --cachedbefore confirming to verify exactly what is staged.
-h, --help Show help.
-v, --version Show the installed version.
--dry-run Print the generated message without creating a commit.
-n, --no-verify Bypass Git hooks for this commit.
--dry-runpreviews the commit message without creating a commit.- Git hooks run by default.
- Use
--no-verifyonly when intentionally bypassing hooks.
<type>(<optional scope>)<optional !>: <subject>
<optional body>
<optional BREAKING CHANGE footer>
Supported commit types:
build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test
const { buildCommitMessage } = require("commit-conventional");
const message = buildCommitMessage({
type: "fix",
scope: "api",
subject: "handle expired sessions",
});npm ci
npm test
npm pack --dry-runnpm test runs a strict TypeScript build and the Node.js test suite.
ISC