update-ai-tools
v1.5.0
Published
CLI to update AI npm tools (Claude, Gemini, Copilot, Codex, Kilo Code)
Maintainers
Readme
update-ai-tools
A simple CLI tool to update AI npm tools (Claude, Gemini, Copilot, Codex, Kilo Code) with a single command. No installation required - just use npx!
Usage
Run directly with npx - no global installation needed:
Update all AI tools
npx update-ai-tools
# or
npx update-ai-tools allUpdate specific tools
npx update-ai-tools claude
npx update-ai-tools gemini
npx update-ai-tools copilot
npx update-ai-tools codex
npx update-ai-tools kilocodeCheck installed versions
npx update-ai-tools checkSupported Tools
- Claude -
@anthropic-ai/claude-code - Gemini -
@google/gemini-cli - Copilot -
@github/copilot - Codex -
@openai/codex - Kilo Code -
@kilocode/cli
Features
- ✅ No installation required - run with
npx - ✅ Smart version checking - only updates packages when newer versions are available
- ✅ Version comparison - shows local vs remote versions before updating
- ✅ User confirmation - asks permission before installing new packages
- ✅ Smart detection - distinguishes between updates and new installations
- ✅ Update all AI tools at once
- ✅ Update individual tools
- ✅ Check installed versions with update availability
- ✅ Intelligent error handling - detects and fixes npm cache issues automatically
- ✅ Automatic cache cleaning - clears npm cache when corruption is detected
- ✅ Detailed feedback - shows installation summary and troubleshooting tips
- ✅ Simple and intuitive CLI interface
Examples
# Update everything (with smart version checking)
$ npx update-ai-tools
� Checking package versions...
�📦 claude: 1.2.0 → 1.2.3 (update available)
✅ copilot: 3.4.5 (up to date)
📦 gemini: not installed (latest: 2.1.0)
✅ Already up to date (1 packages):
- copilot
🔄 Packages with updates available (1 packages):
- claude (@anthropic-ai/claude-code)
📦 New packages to install (1 packages):
- gemini (@google/gemini-cli)
❓ Do you want to install the new packages? (y/N): y
🚀 Processing 2 package(s)...
✅ All packages installed successfully!
# If everything is up to date
$ npx update-ai-tools
� Checking package versions...
✅ claude: 1.2.3 (up to date)
✅ copilot: 3.4.5 (up to date)
✅ gemini: 2.1.0 (up to date)
✅ Already up to date (3 packages):
- claude
- copilot
- gemini
🎉 All packages are up to date! No updates needed.
# Check versions with update availability
$ npx update-ai-tools check
🔎 Checking installed versions and updates...
claude: 1.2.0 → 1.2.3 available ⬆️
gemini: 2.0.5 → 2.1.0 available ⬆️
copilot: 3.4.5 ✅
codex: not installed (latest: 1.0.0) ❌
# Update just Claude (will check if update is needed)
$ npx update-ai-tools claude
📦 Updating claude...
� Checking package versions...
📦 claude: 1.2.0 → 1.2.3 (update available)
🔄 Packages with updates available (1 packages):
- claude (@anthropic-ai/claude-code)
🚀 Processing 1 package(s)...
✅ claude installed successfullyRequirements
- Node.js (ES modules support)
- npm (comes with Node.js)
License
MIT © Yanai Edri
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Issues
If you encounter any issues or have suggestions, please open an issue.
