AI Tools Updater
A shell function that updates all your AI coding assistants and tools in one command.
• Updates multiple AI coding tools via npm and native CLI commands
• Shows before/after version comparison for all tools
• Handles both npm packages and standalone CLI tools
• Supports apt system package upgrades
Tool │ Package │ Description
────────────────────────────────────┼────────────────────────────────────┼───────────────────────────────────
Qwen Code │ @qwen-code/qwen-code │ Alibaba's AI coding assistant
Cline │ cline │ Autonomous coding agent
Claude │ claude (CLI) │ Anthropic's Claude Code
Gog │ gog (CLI) │ Google Workspace CLI
Gemini CLI │ @google/gemini-cli │ Google's AI assistant
Codex │ @openai/codex │ OpenAI's code model
Crush │ @charmland/crush │ AI coding tool
OpenCode AI │ opencode-ai │ AI code generator
Bitwarden │ @bitwarden/cli │ Password manager CLI
GitHub Copilot │ @github/copilot │ GitHub AI pair programmer
Add the up() function to your ~/.bashrc or ~/.bash_aliases :
# Clone or copy the up.sh content
curl -o ~/.up.sh https://gist.githubusercontent.com/zonca/9a782adfefe29af8d68558b206517f64/raw/up.sh
# Add to your shell config
echo 'source ~/.up.sh' >> ~/.bashrc
source ~/.bashrc
Run the up command to update all tools:
up
Edit the npm_pkgs array in the function to add or remove packages:
local npm_pkgs=("@google/gemini-cli" "@openai/codex" "opencode-ai" "@charmland/crush" "@qwen-code/qwen-code"
"cline" "@bitwarden/cli" "@github/copilot")
• Node.js/npm (for npm packages)
• curl/wget (for installation)
• gh CLI (for gogcli updates)
MIT