Getting lazycommit up and running takes less than a minute. Let's walk through it.
Prerequisites
- Node.js (v18 or higher)
- Git installed and configured
- A Groq API key from Groq Console
Quick Install
Install lazycommit globally using your package manager of choice.
npm
That's it! You can now use lazycommit (or the lzc alias) from anywhere in your terminal.
API Key Setup
lazycommit needs a Groq API key to generate commit messages. Set the key so lazycommit can use it:
lazycommit config set GROQ_API_KEY=<your token>This will create a .lazycommit file in your home directory.
Note: If you haven't already, you'll need to create an account at Groq Console and get your API key.
Verify Installation
Check that lazycommit is installed correctly:
lazycommit --versionYou should see the current version number. If you do, you're all set!
Upgrading
Check the installed version with:
lazycommit --versionIf it's not the latest version, run:
npm update -g lazycommittOr if you installed via Homebrew:
brew upgrade lazycommitHaving trouble? Check out our FAQ or open an issue on GitHub.