最新版に更新したい
15. トラブルシューティングコマンド / 機能
claude update概要
Claude Code を最新バージョンに更新します。新機能の追加、バグ修正、セキュリティアップデートを適用できます。
設定例
# 現在のバージョンを確認
claude --version
# claude-code v1.0.15
# 最新版に更新
claude update
# または npm で更新
npm update -g @anthropic-ai/claude-code
# 特定のバージョンにアップデート
npm install -g @anthropic-ai/[email protected]
# ベータ版を試す
npm install -g @anthropic-ai/claude-code@beta
# 更新後の確認
claude --version
claude /doctor # 動作確認
# 更新で問題が発生した場合
# 前のバージョンに戻す
npm install -g @anthropic-ai/[email protected]
# キャッシュをクリアして再インストール
npm cache clean --force
npm install -g @anthropic-ai/claude-codeこんな時に使う
- 新機能を使いたい時
- バグ修正を適用したい時
使い方
- 1claude --version で現在のバージョンを確認
- 2claude update または npm update で更新
- 3claude /doctor で動作を確認
Tips
- 更新前に重要な作業を保存しておく
- 問題が発生したら前のバージョンに戻せる
- リリースノートで変更内容を確認