diff --git a/README.md b/README.md index a0a95c88b1..ae671e153c 100644 --- a/README.md +++ b/README.md @@ -46,15 +46,13 @@ Qwen Code is an open-source AI agent for the terminal, optimized for Qwen series #### Linux / macOS ```bash -bash -c "$(curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh)" +curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash ``` -#### Windows (Run as Administrator) +#### Windows -Works in both Command Prompt and PowerShell: - -```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')" +```powershell +irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex ``` > **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 a40753d760..c9ed58196c 100644 --- a/docs/users/overview.md +++ b/docs/users/overview.md @@ -10,19 +10,19 @@ ### Install Qwen Code: The recommended installer uses a standalone archive when one is available for -your platform. If it falls back to npm, Node.js 20 or later with npm must be +your platform. If it falls back to npm, Node.js 22 or later with npm must be available on PATH. **Linux / macOS** ```sh -curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh | bash +curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash ``` **Windows** -```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')" +```powershell +irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex ``` > [!note] diff --git a/docs/users/quickstart.md b/docs/users/quickstart.md index 1d9fc203e7..10bc4da31f 100644 --- a/docs/users/quickstart.md +++ b/docs/users/quickstart.md @@ -21,13 +21,13 @@ To install Qwen Code, use one of the following methods: **Linux / macOS** ```sh -curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh | bash +curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash ``` -**Windows (Run as Administrator)** +**Windows** -```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')" +```powershell +irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex ``` > [!note] diff --git a/docs/users/support/Uninstall.md b/docs/users/support/Uninstall.md index f8970c8830..96a654381a 100644 --- a/docs/users/support/Uninstall.md +++ b/docs/users/support/Uninstall.md @@ -1,6 +1,6 @@ # Uninstall -Your uninstall method depends on how you ran the CLI. Follow the instructions for either npx or a global npm installation. +Your uninstall method depends on how you installed the CLI. ## Method 1: Using npx @@ -40,3 +40,21 @@ npm uninstall -g @qwen-code/qwen-code ``` This command completely removes the package from your system. + +## Method 3: Standalone Install + +If you installed via the standalone installer (`curl ... | bash` or `irm ... | iex`), use the dedicated uninstall script. + +**Linux / macOS** + +```bash +curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/uninstall-qwen-standalone.sh | bash +``` + +**Windows** + +```powershell +irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/uninstall-qwen-standalone.ps1 | iex +``` + +The uninstaller removes the standalone runtime, generated `qwen` wrapper, and installer-managed PATH changes. Your Qwen Code configuration (`~/.qwen`) is preserved by default. diff --git a/scripts/installation/INSTALLATION_GUIDE.md b/scripts/installation/INSTALLATION_GUIDE.md index e2d863e328..b92075e49b 100644 --- a/scripts/installation/INSTALLATION_GUIDE.md +++ b/scripts/installation/INSTALLATION_GUIDE.md @@ -46,11 +46,6 @@ standalone release. The `standalone` suffix intentionally avoids overwriting the existing production `install-qwen.sh` / `install-qwen.bat` OSS objects during the staged rollout. -Public installation documentation intentionally continues to use the existing -production installer in this PR. Update README and other public quick-install -instructions in a follow-up after the standalone-suffixed hosted installers and -release archive sync have been validated in production. - Hosted installer assets are staged separately from GitHub Release archives: - `install-qwen-standalone.sh` is the Linux/macOS hosted entrypoint.