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 |
| 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 ~/.bashrcRun the up command to update all tools:
upChecking current versions...
Fetching apt upgrade info...
Starting system and package updates...
--- Update Report ---
Package | Old -> New
------------------------------------------------------------------------
npm:@google/gemini-cli | 0.39.1 -> 0.39.1
npm:@openai/codex | 0.125.0 -> 0.125.0
npm:cline | 2.15.0 -> 2.17.0
npm:@bitwarden/cli | -> 2026.4.1
npm:@github/copilot | 1.0.11 -> 1.0.38
claude | 2.1.121 -> 2.1.121
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)
MIT