英語原文を表示
CLAUDE_CODE_USE_POWERSHELL_TOOL=0.変更後
どのプロバイダーを使用していても、Windows上での標準的なコマンド実行環境がすぐに整います。
PowerShell ツールを制御する。Git Bash がない Windows ではツールは自動的に有効になり、0 を設定すると無効化できる。Git Bash がインストールされている Windows では、claude.ai アカウントと Console アカウントでは既定でツールが有効であり、Amazon Bedrock・Google Cloud の Agent Platform・Microsoft Foundry のセッションで有効にするには 1 を、無効にするには 0 を設定する。Linux・macOS・WSL では有効にする場合に 1 を設定し、pwsh が PATH 上に必要である。Windows で有効にすると、Claude は Git Bash を経由せず PowerShell コマンドをネイティブに実行できる。
Controls the PowerShell tool. On Windows without Git Bash, the tool is enabled automatically; set to 0 to disable it. On Windows with Git Bash installed, the tool is on by default for claude.ai and Console accounts; set to 1 to enable it in Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry sessions, or 0 to turn it off. On Linux, macOS, and WSL, set to 1 to enable it, which requires pwsh on your PATH. When enabled on Windows, Claude can run PowerShell commands natively instead of routing through Git Bash. See PowerShell tool
CLAUDE_CODE_USE_POWERSHELL_TOOL=0.変更後
どのプロバイダーを使用していても、Windows上での標準的なコマンド実行環境がすぐに整います。
CLAUDE_CODE_USE_POWERSHELL_TOOL=1を設定することで、macOS/Linuxでもpwsh経由で利用可能です。CLAUDE_CODE_USE_POWERSHELL_TOOL. On Linux and macOS, enable with CLAUDE_CODE_USE_POWERSHELL_TOOL=1 (requires pwsh on PATH)変更後
Windows環境での開発において、OSの機能をフルに活用した高度な自動化やトラブルシューティングが可能になります。