@pkpkpkddea/devdash
v1.0.2
Published
CLI tool for generating commit messages using AI
Readme
DevDash CLI
AI-powered commit message generator for your git workflow
Features
- 🤖 Generate descriptive commit messages using Google's Gemini AI
- 📝 Analyzes your staged git changes automatically
- ⚡ Simple CLI interface
- 🔐 Secure API key storage in your home directory
- 🎨 Beautiful, formatted commit messages
Installation
npm install -g @pkpkpkddea/devdashQuick Start
Stage your changes:
git add .Generate commit message:
devdash commitOn first run, you'll be prompted to enter your Google Gemini API key:
🔑 Google Gemini API Key not found. Get your free API key at: https://aistudio.google.com/app/apikey Enter your Google Gemini API Key:Review the generated message and use it:
git commit -m "Your generated message"
Commands
devdash commit
Generate a commit message from your staged changes.
devdash commitdevdash config
Manage your DevDash configuration.
Set API key:
devdash config --set-key YOUR_API_KEYSet AI model:
devdash config --set-model gemini-2.5-proShow current configuration:
devdash config --showGetting Your API Key
- Visit Google AI Studio
- Sign in with your Google account
- Click "Create API key"
- Copy the generated key
- Run
devdash commitand paste the key when prompted
The API key is free for typical personal usage.
Configuration
Your configuration is stored in ~/.devdash/config.json:
{
"apiKey": "your-api-key",
"model": "gemini-2.0-flash"
}Available Models
gemini-2.0-flash(default, recommended)gemini-2.5-flashgemini-2.5-progemini-2.0-flash-litegemini-flash-latestgemini-pro-latest
Example Output
$ devdash commit
🤖 Generating commit message...
📝 Suggested commit message:
──────────────────────────────────────────────────
Add user authentication and update API endpoints
- Implemented JWT-based authentication system
- Updated user login endpoint to return tokens
- Added middleware for protected routes
- Refactored error handling in auth module
──────────────────────────────────────────────────
To use this message, run:
git commit -m "Add user authentication and update API endpoints"Requirements
- Node.js >= 18.0.0
- Git installed and accessible in PATH
- Google Gemini API key
License
MIT
Author
pkpkpkddea
Contributing
Issues and pull requests are welcome!
