docs: update installation instructions with quick install and manual install options

This commit is contained in:
joeytoday 2026-02-28 10:52:49 +08:00
parent ec178b782f
commit ef55909cc3
2 changed files with 36 additions and 17 deletions

View file

@ -7,25 +7,24 @@
## Get started in 30 seconds
Prerequisites:
- A [Qwen Code](https://chat.qwen.ai/auth?mode=register) account
- Requires [Node.js 20+](https://nodejs.org/zh-cn/download), you can use `node -v` to check the version. If it's not installed, use the following command to install it.
### Install Qwen Code:
**NPM**(recommended)
**Linux / macOS**
```bash
npm install -g @qwen-code/qwen-code@latest
```sh
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh | bash
```
**Homebrew**(macOS, Linux)
**Windows (Run as Administrator CMD)**
```bash
brew install qwen-code
```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
```
> [!note]
>
> It's recommended to restart your terminal after installation to ensure environment variables take effect. If the installation fails, please refer to [Manual Installation](./quickstart#manual-installation) in the Quickstart guide.
### Start using Qwen Code:
```bash