diff --git a/README.md b/README.md index 3e31f6053..72ccccd48 100644 --- a/README.md +++ b/README.md @@ -49,10 +49,12 @@ Qwen Code is an open-source AI agent for the terminal, optimized for Qwen series bash -c "$(curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh)" ``` -#### Windows (Run as Administrator CMD) +#### Windows (Run as Administrator) + +Works in both Command Prompt and PowerShell: ```cmd -curl -fsSL -o %TEMP%\install-qwen.bat https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.bat && %TEMP%\install-qwen.bat +powershell -Command "Invoke-WebRequest 'https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.bat' -OutFile (Join-Path $env:TEMP 'install-qwen.bat'); & (Join-Path $env:TEMP 'install-qwen.bat')" ``` > **Note**: It's recommended to restart your terminal after installation to ensure environment variables take effect. diff --git a/docs/users/overview.md b/docs/users/overview.md index b61e8aa80..2572ff67f 100644 --- a/docs/users/overview.md +++ b/docs/users/overview.md @@ -15,10 +15,10 @@ curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh | bash ``` -**Windows (Run as Administrator CMD)** +**Windows (Run as Administrator)** -```sh -curl -fsSL -o %TEMP%\install-qwen.bat https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.bat && %TEMP%\install-qwen.bat +```cmd +powershell -Command "Invoke-WebRequest 'https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.bat' -OutFile (Join-Path $env:TEMP 'install-qwen.bat'); & (Join-Path $env:TEMP 'install-qwen.bat')" ``` > [!note] diff --git a/docs/users/quickstart.md b/docs/users/quickstart.md index 4d9e561e4..457a29fa9 100644 --- a/docs/users/quickstart.md +++ b/docs/users/quickstart.md @@ -24,10 +24,10 @@ To install Qwen Code, use one of the following methods: curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh | bash ``` -**Windows (Run as Administrator CMD)** +**Windows (Run as Administrator)** -```sh -curl -fsSL -o %TEMP%\install-qwen.bat https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.bat && %TEMP%\install-qwen.bat +```cmd +powershell -Command "Invoke-WebRequest 'https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.bat' -OutFile (Join-Path $env:TEMP 'install-qwen.bat'); & (Join-Path $env:TEMP 'install-qwen.bat')" ``` > [!note]