원클릭으로
claude-version
Manage Claude Code CLI versions across official installer and npm global installs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Manage Claude Code CLI versions across official installer and npm global installs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Enforces explicit user approval before implementing any plan. Use when presenting a plan, receiving plan feedback, or about to delegate implementation.
CharlieBot repo structure, architecture, and development conventions. Use when modifying charlie-bot code.
How to write effective improve loop goal prompts — for the master CC agent that writes the --goal-file content.
methodology for iterative improve loop workers.
CharlieBot skill directory layout, sync rules, and CLI tool mappings. Use when creating, installing, or syncing skills across Claude Code, Codex, Gemini, OpenCode, and Antigravity.
This skill should be used when the user asks to read, create, or edit Feishu/Lark documents, search docs in their Feishu workspace, or fetch content from a Feishu wiki or docx URL.
| name | claude-version |
| description | Manage Claude Code CLI versions across official installer and npm global installs. |
| version | 1.0.0 |
Manage Claude Code CLI versions — install, switch, rollback, list.
| Method | How it works | Version switch |
|---|---|---|
Official installer (curl -fsSL https://claude.ai/install.sh | sh) | Standalone binary at ~/.local/share/claude/versions/<ver>, symlinked from ~/.local/bin/claude | Re-point the symlink |
npm global (npm i -g @anthropic-ai/claude-code) | Lives in the active Node prefix ($(npm prefix -g)/bin/claude) | npm i -g @anthropic-ai/claude-code@<ver> |
Detect which method is in use:
which claude # ~/.local/bin/claude → official installer
# ~/.nvm/.../bin/claude → npm global
file $(readlink -f $(which claude)) # ELF = binary install, script/symlink = npm
| Path | Purpose |
|---|---|
~/.local/bin/claude | Symlink → active version |
~/.local/share/claude/versions/<ver> | Binary (≥ ~2.1.80) or wrapper script |
~/.local/share/claude/versions/<ver>-node/ | Unpacked npm package (for older Node-based versions) |
ls ~/.local/share/claude/versions/ # installed versions
readlink ~/.local/bin/claude # active version
claude --version
ln -sf ~/.local/share/claude/versions/<VERSION> ~/.local/bin/claude
Recent versions (≥ ~2.1.80) are standalone ELF binaries. Older versions are Node.js packages and need a wrapper. Requires Node ≥ 18.
# 1. Download & extract
npm pack @anthropic-ai/claude-code@<VERSION> --pack-destination /tmp/
mkdir -p ~/.local/share/claude/versions/<VERSION>-node
tar xzf /tmp/anthropic-ai-claude-code-<VERSION>.tgz -C /tmp
cp -r /tmp/package/* ~/.local/share/claude/versions/<VERSION>-node/
# 2. Create wrapper script
cat > ~/.local/share/claude/versions/<VERSION> << 'EOF'
#!/bin/bash
exec "$HOME/.nvm/versions/node/$(ls "$HOME/.nvm/versions/node" | sort -V | tail -1)/bin/node" \
"$HOME/.local/share/claude/versions/<VERSION>-node/cli.js" "$@"
EOF
chmod +x ~/.local/share/claude/versions/<VERSION>
# 3. Activate
ln -sf ~/.local/share/claude/versions/<VERSION> ~/.local/bin/claude
claude --version
Each binary release is ~220 MB. Remove old ones with:
rm ~/.local/share/claude/versions/<OLD>
rm -rf ~/.local/share/claude/versions/<OLD>-node # if Node-based
npm i -g @anthropic-ai/claude-code@<VERSION>
claude --version
Same command with the older version number.
npm view @anthropic-ai/claude-code versions --json | tail -20
$PATH order determines which claude binary wins.