JSPM

commit-ai-cli

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q32943F
  • License MIT

A CLI tool for generating commit messages using AI, supporting OpenAI, Anthropic, and Google AI

Package Exports

  • commit-ai-cli
  • commit-ai-cli/bin/cli.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (commit-ai-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

commit-ai-cli

A powerful CLI tool for generating commit messages using AI, with support for multiple providers:

  • OpenAI (GPT-4, GPT-3.5)
  • Anthropic (Claude)
  • Google (Gemini)

Installation

npm install -g commit-ai-cli

Quick Start

  1. Run the setup wizard:
commit-ai setup
  1. Follow the interactive prompts to:

    • Choose your preferred AI provider
    • Configure your API key
    • Select your preferred model
  2. Generate commit messages:

commit-ai
# or
commit-ai generate

Commands

  • commit-ai setup - Interactive setup wizard
  • commit-ai generate - Generate a commit message
  • commit-ai diff - Show current git changes
  • commit-ai ai --test - Test your API key configuration

Options

  • -y, --yes - Skip confirmation and commit directly
  • --show-diff - Show diff before generating commit message
  • -d, --debug - Enable debug mode

Aliases

The following commands are equivalent:

  • commit-ai
  • aig
  • aic

API Keys

You can get your API keys from:

Features

  • 🤖 Multiple AI Provider Support
    • OpenAI's GPT models
    • Anthropic's Claude models
    • Google's Gemini models
  • 🎯 Conventional Commits Format
  • 💡 Smart Context Analysis
  • 🔒 Secure API Key Storage
  • 🎨 Beautiful CLI Interface
  • ⚡ Fast and Efficient

Requirements

  • Node.js >= 14.16
  • Git

License

MIT