@snapcommit/cli
Version:
Instant AI commits. Beautiful progress tracking. Never write commit messages again.
163 lines (107 loc) ⢠4.01 kB
Markdown
# SnapCommit
**Snap. Commit. Track.**
Instant AI commits. Beautiful progress tracking. Never write commit messages again.
[](https://www.npmjs.com/package/snapcommit)
[](https://opensource.org/licenses/MIT)
## What is SnapCommit?
SnapCommit is a CLI tool that makes Git & GitHub effortless:
1. **ā” Instant AI Commits** - Professional messages in one command (`snap`)
2. **š Natural Language** - Just say what you want: "create a PR", "merge main"
3. **š Beautiful Stats** - Track your coding journey with gorgeous analytics
4. **š„ Streak Tracking** - Gamification to keep you motivated
5. **š Universal** - Works everywhere (any IDE, any terminal, any OS)
## Quick Start
```bash
# Install globally
npm install -g snapcommit
# Set up (adds aliases)
snapcommit setup
# Make your first commit
snap # That's it!
```
## Installation
### Option 1: npm (Recommended)
```bash
npm install -g snapcommit
```
### Option 2: Install Scripts
**macOS / Linux:**
```bash
curl -fsSL https://snapcommit.dev/install.sh | bash
```
**Windows (PowerShell):**
```powershell
iwr https://snapcommit.dev/install.ps1 | iex
```
## Setup
After installation, run setup to integrate with your shell:
```bash
snapcommit setup
```
This adds `snap` and `sc` aliases. Restart your terminal and you're ready!
## Usage
### Interactive Mode
Type `snap` to enter interactive mode:
```bash
$ snap
ā” SnapCommit Interactive Mode
snap> commit my authentication work
ā
feat(auth): implement user authentication system
snap> create a PR
ā
PR #42 created
snap> check ci
ā
All checks passed
```
### Just Talk to It š¬
SnapCommit is **Cursor for Git** - no commands to memorize. Just describe what you want:
```bash
snap> commit my authentication work
ā
feat(auth): implement user authentication system
snap> I messed up, go back to how it was before
ā
Reverted last commit
snap> open a pull request for this feature
ā
PR #42 created
snap> did the tests pass?
ā
All CI checks passed
```
**That's the whole point** - talk naturally, like you would to a teammate. SnapCommit figures out what you mean.
## Authentication
**SnapCommit includes built-in AI models!** No API keys needed.
1. **Sign up at:** https://snapcommit.dev/login
2. **Subscribe:** $9.99/month or $100/year
3. **Get your token:** From your dashboard
4. **Authenticate CLI:** Enter token when prompted
After installing, the CLI will guide you through authentication on first use.
## Features
- ā
**AI Commit Messages** - Claude 4.5 Sonnet generates perfect commits
- ā
**Natural Language Git** - No more memorizing commands
- ā
**GitHub Integration** - PRs, CI checks, workflows, releases
- ā
**Progress Tracking** - Streaks, heatmaps, milestones
- ā
**Multi-Repo Support** - Switch between projects seamlessly
- ā
**Conflict Resolution** - AI-guided merge conflict solving
- ā
**Smart Error Handling** - Auto-retry with intelligent fixes
- ā
**Privacy First** - Local-first, minimal data sent to AI
- ā
**Cross-Platform** - macOS, Linux, Windows
## Pricing
- **Monthly:** $9.99/month - Unlimited AI commits, all features
- **Yearly:** $100/year - Save 17% (best value!)
## Supported Platforms
- ā
macOS (zsh, bash, fish)
- ā
Linux (zsh, bash, fish)
- ā
Windows (PowerShell, Git Bash, WSL)
- ā
Any terminal, any IDE
## Requirements
- Node.js 18+
- Git installed
- API keys (we'll help you get them)
## Documentation
Full docs at [snapcommit.dev/docs](https://snapcommit.dev/docs)
## Support
- š¦ [Follow on X/Twitter](https://x.com/Arjun06061)
- š§ [Email support](mailto:support@snapcommit.dev)
- š” [Suggestions & Feedback](https://x.com/Arjun06061)
## License
MIT Ā© SnapCommit Team
---
**Made with ā¤ļø for developers who want to focus on building, not git messages.**
[Website](https://snapcommit.dev) ⢠[X/Twitter](https://x.com/Arjun06061)