Claude Code CLIを使う
私の備忘録なので、正確には公式サイトをご覧ください。無保証です。
powershellのirmやcmdでインストールできなかったので、wingetを使いました。
>winget install Anthropic.ClaudeCode
Microsoft Windows [Version 10.0.22631.6199]
(c) Microsoft Corporation. All rights reserved.
C:\Users\test\Desktop>winget install Anthropic.ClaudeCode
見つかりました Claude Code [Anthropic.ClaudeCode] バージョン 2.1.224
このアプリケーションは所有者からライセンス供与されます。
Microsoft はサードパーティのパッケージに対して責任を負わず、ライセンスも付与しません。
ダウンロード中 https://downloads.claude.ai/claude-code-releases/2.1.224/win32-x64/claude.exe
██████████████████████████████ 271 MB / 271 MB
インストーラーハッシュが正常に検証されました
パッケージのインストールを開始しています...
パス環境変数が変更されました; 新しい値を使用するにはシェルを再起動してください。
コマンド ライン エイリアスが追加されました: "claude"
インストールが完了しました
念のため、これが一般的な方法
macOS, Linux, WSL:
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell:
irm https://claude.ai/install.ps1 | iex
Windows CMD:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
このブログへのコメントはmuragonユーザー限定です。