Command-line interface for Oh My Commit - an AI-powered Git commit message generator.
⚠️ Note: This package is currently under development and not yet published to npm registry.
# Clone the repository
git clone https://github.com/oh-my-commit/oh-my-commit.git
cd oh-my-commit
# Install dependencies
pnpm install
# Build the package
pnpm build
# Link the package globally (optional)
cd packages/cli
pnpm link --global # Create a global link
cd ../.. # Return to project root
Once the package is published to npm, you will be able to install it via:
npm install -g @oh-my-commit/cli
# or
yarn global add @oh-my-commit/cli
# or
pnpm add -g @oh-my-commit/cli
npm install @oh-my-commit/cli
# or
yarn add @oh-my-commit/cli
# or
pnpm add @oh-my-commit/cli
omc # Generate commit message for staged changes
npx omc # Using npx
# or
./node_modules/.bin/omc # Direct path
# or via package.json scripts:
# "scripts": {
# "commit": "omc"
# }
pnpm commit
- AI-powered commit message generation
- Supports custom AI providers
- Integrates seamlessly with your Git workflow
- Compatible with the Oh My Commit VSCode extension
This package is part of the Oh My Commit monorepo. To develop locally:
# Install dependencies
pnpm install
# Build the package
pnpm build
# Watch mode during development
pnpm dev
- oh-my-commit-vscode - Core extension functionality
- @oh-my-commit/shared - Shared utilities and types
- commander - Command-line interface
- inquirer - Interactive command line prompts
- simple-git - Git operations
- chalk - Terminal styling
MIT