@oh-my-commit/cli
TypeScript icon, indicating that this package has built-in type declarations

0.27.8 • Public • Published

@oh-my-commit/cli

Command-line interface for Oh My Commit - an AI-powered Git commit message generator.

Installation

⚠️ Note: This package is currently under development and not yet published to npm registry.

Local Development

# 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

After Release

Once the package is published to npm, you will be able to install it via:

Global Installation

npm install -g @oh-my-commit/cli
# or
yarn global add @oh-my-commit/cli
# or
pnpm add -g @oh-my-commit/cli

Local Installation

npm install @oh-my-commit/cli
# or
yarn add @oh-my-commit/cli
# or
pnpm add @oh-my-commit/cli

Usage

If installed globally:

omc # Generate commit message for staged changes

If installed locally:

npx omc # Using npx
# or
./node_modules/.bin/omc # Direct path
# or via package.json scripts:
# "scripts": {
#   "commit": "omc"
# }
pnpm commit

Features

  • AI-powered commit message generation
  • Supports custom AI providers
  • Integrates seamlessly with your Git workflow
  • Compatible with the Oh My Commit VSCode extension

Development

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

Dependencies

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @oh-my-commit/cli

Weekly Downloads

19

Version

0.27.8

License

none

Unpacked Size

1.94 MB

Total Files

10

Last publish

Collaborators

  • markshawn