Skip to content

Commit e6a2e80

Browse files
committed
docs: swap Installation and Features section order in READMEs
1 parent 684155c commit e6a2e80

File tree

2 files changed

+180
-180
lines changed

2 files changed

+180
-180
lines changed

README.md

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,96 @@ cc-switch --app gemini prompts list # List Gemini prompts
118118
# Supported apps: `claude` (default), `codex`, `gemini`
119119
```
120120

121-
See the "Features" section below for full command list.
121+
See the "Features" section for full command list.
122+
123+
---
124+
125+
## 📥 Installation
126+
127+
### Method 1: Download Pre-built Binaries (Recommended)
128+
129+
Download the latest release from [GitHub Releases](https://github.com/saladday/cc-switch-cli/releases).
130+
131+
#### macOS
132+
133+
```bash
134+
# Download Universal Binary (recommended, supports Apple Silicon + Intel)
135+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-darwin-universal.tar.gz
136+
137+
# Extract
138+
tar -xzf cc-switch-cli-darwin-universal.tar.gz
139+
140+
# Add execute permission
141+
chmod +x cc-switch
142+
143+
# Move to PATH
144+
sudo mv cc-switch /usr/local/bin/
145+
146+
# If you encounter "cannot be verified" warning
147+
xattr -cr /usr/local/bin/cc-switch
148+
```
149+
150+
#### Linux (x64)
151+
152+
```bash
153+
# Download
154+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-x64-musl.tar.gz
155+
156+
# Extract
157+
tar -xzf cc-switch-cli-linux-x64-musl.tar.gz
158+
159+
# Add execute permission
160+
chmod +x cc-switch
161+
162+
# Move to PATH
163+
sudo mv cc-switch /usr/local/bin/
164+
```
165+
166+
#### Linux (ARM64)
167+
168+
```bash
169+
# For Raspberry Pi or ARM servers
170+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-arm64-musl.tar.gz
171+
tar -xzf cc-switch-cli-linux-arm64-musl.tar.gz
172+
chmod +x cc-switch
173+
sudo mv cc-switch /usr/local/bin/
174+
```
175+
176+
#### Windows
177+
178+
```powershell
179+
# Download the zip file
180+
# https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-windows-x64.zip
181+
182+
# After extracting, move cc-switch.exe to a PATH directory, e.g.:
183+
move cc-switch.exe C:\Windows\System32\
184+
185+
# Or run directly
186+
.\cc-switch.exe
187+
```
188+
189+
### Method 2: Build from Source
190+
191+
**Prerequisites:**
192+
- Rust 1.85+ ([install via rustup](https://rustup.rs/))
193+
194+
**Build:**
195+
```bash
196+
git clone https://github.com/saladday/cc-switch-cli.git
197+
cd cc-switch-cli/src-tauri
198+
cargo build --release
199+
200+
# Binary location: ./target/release/cc-switch
201+
```
202+
203+
**Install to System:**
204+
```bash
205+
# macOS/Linux
206+
sudo cp target/release/cc-switch /usr/local/bin/
207+
208+
# Windows
209+
copy target\release\cc-switch.exe C:\Windows\System32\
210+
```
122211

123212
---
124213

@@ -268,95 +357,6 @@ cc-switch update --version v4.7.2 # Update to a specific version
268357

269358
---
270359

271-
## 📥 Installation
272-
273-
### Method 1: Download Pre-built Binaries (Recommended)
274-
275-
Download the latest release from [GitHub Releases](https://github.com/saladday/cc-switch-cli/releases).
276-
277-
#### macOS
278-
279-
```bash
280-
# Download Universal Binary (recommended, supports Apple Silicon + Intel)
281-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-darwin-universal.tar.gz
282-
283-
# Extract
284-
tar -xzf cc-switch-cli-darwin-universal.tar.gz
285-
286-
# Add execute permission
287-
chmod +x cc-switch
288-
289-
# Move to PATH
290-
sudo mv cc-switch /usr/local/bin/
291-
292-
# If you encounter "cannot be verified" warning
293-
xattr -cr /usr/local/bin/cc-switch
294-
```
295-
296-
#### Linux (x64)
297-
298-
```bash
299-
# Download
300-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-x64-musl.tar.gz
301-
302-
# Extract
303-
tar -xzf cc-switch-cli-linux-x64-musl.tar.gz
304-
305-
# Add execute permission
306-
chmod +x cc-switch
307-
308-
# Move to PATH
309-
sudo mv cc-switch /usr/local/bin/
310-
```
311-
312-
#### Linux (ARM64)
313-
314-
```bash
315-
# For Raspberry Pi or ARM servers
316-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-arm64-musl.tar.gz
317-
tar -xzf cc-switch-cli-linux-arm64-musl.tar.gz
318-
chmod +x cc-switch
319-
sudo mv cc-switch /usr/local/bin/
320-
```
321-
322-
#### Windows
323-
324-
```powershell
325-
# Download the zip file
326-
# https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-windows-x64.zip
327-
328-
# After extracting, move cc-switch.exe to a PATH directory, e.g.:
329-
move cc-switch.exe C:\Windows\System32\
330-
331-
# Or run directly
332-
.\cc-switch.exe
333-
```
334-
335-
### Method 2: Build from Source
336-
337-
**Prerequisites:**
338-
- Rust 1.85+ ([install via rustup](https://rustup.rs/))
339-
340-
**Build:**
341-
```bash
342-
git clone https://github.com/saladday/cc-switch-cli.git
343-
cd cc-switch-cli/src-tauri
344-
cargo build --release
345-
346-
# Binary location: ./target/release/cc-switch
347-
```
348-
349-
**Install to System:**
350-
```bash
351-
# macOS/Linux
352-
sudo cp target/release/cc-switch /usr/local/bin/
353-
354-
# Windows
355-
copy target\release\cc-switch.exe C:\Windows\System32\
356-
```
357-
358-
---
359-
360360
## 🏗️ Architecture
361361

362362
### Core Design

README_ZH.md

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,96 @@ cc-switch --app gemini prompts list # 列出 Gemini 提示词
124124
# 支持的应用:`claude`(默认)、`codex`、`gemini`
125125
```
126126

127-
完整命令列表请参考下方「功能特性」章节。
127+
完整命令列表请参考「功能特性」章节。
128+
129+
---
130+
131+
## 📥 安装
132+
133+
### 方法 1:下载预编译二进制(推荐)
134+
135+
[GitHub Releases](https://github.com/saladday/cc-switch-cli/releases) 下载最新版本。
136+
137+
#### macOS
138+
139+
```bash
140+
# 下载 Universal Binary(推荐,支持 Apple Silicon + Intel)
141+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-darwin-universal.tar.gz
142+
143+
# 解压
144+
tar -xzf cc-switch-cli-darwin-universal.tar.gz
145+
146+
# 添加执行权限
147+
chmod +x cc-switch
148+
149+
# 移动到 PATH
150+
sudo mv cc-switch /usr/local/bin/
151+
152+
# 如遇 "无法验证开发者" 提示
153+
xattr -cr /usr/local/bin/cc-switch
154+
```
155+
156+
#### Linux (x64)
157+
158+
```bash
159+
# 下载
160+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-x64-musl.tar.gz
161+
162+
# 解压
163+
tar -xzf cc-switch-cli-linux-x64-musl.tar.gz
164+
165+
# 添加执行权限
166+
chmod +x cc-switch
167+
168+
# 移动到 PATH
169+
sudo mv cc-switch /usr/local/bin/
170+
```
171+
172+
#### Linux (ARM64)
173+
174+
```bash
175+
# 适用于树莓派或 ARM 服务器
176+
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-arm64-musl.tar.gz
177+
tar -xzf cc-switch-cli-linux-arm64-musl.tar.gz
178+
chmod +x cc-switch
179+
sudo mv cc-switch /usr/local/bin/
180+
```
181+
182+
#### Windows
183+
184+
```powershell
185+
# 下载 zip 文件
186+
# https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-windows-x64.zip
187+
188+
# 解压后将 cc-switch.exe 移动到 PATH 目录,例如:
189+
move cc-switch.exe C:\Windows\System32\
190+
191+
# 或者直接运行
192+
.\cc-switch.exe
193+
```
194+
195+
### 方法 2:从源码构建
196+
197+
**前提条件:**
198+
- Rust 1.85+([通过 rustup 安装](https://rustup.rs/)
199+
200+
**构建:**
201+
```bash
202+
git clone https://github.com/saladday/cc-switch-cli.git
203+
cd cc-switch-cli/src-tauri
204+
cargo build --release
205+
206+
# 二进制位置:./target/release/cc-switch
207+
```
208+
209+
**安装到系统:**
210+
```bash
211+
# macOS/Linux
212+
sudo cp target/release/cc-switch /usr/local/bin/
213+
214+
# Windows
215+
copy target\release\cc-switch.exe C:\Windows\System32\
216+
```
128217

129218
---
130219

@@ -274,95 +363,6 @@ cc-switch update --version v4.7.2 # 更新到指定版本
274363

275364
---
276365

277-
## 📥 安装
278-
279-
### 方法 1:下载预编译二进制(推荐)
280-
281-
[GitHub Releases](https://github.com/saladday/cc-switch-cli/releases) 下载最新版本。
282-
283-
#### macOS
284-
285-
```bash
286-
# 下载 Universal Binary(推荐,支持 Apple Silicon + Intel)
287-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-darwin-universal.tar.gz
288-
289-
# 解压
290-
tar -xzf cc-switch-cli-darwin-universal.tar.gz
291-
292-
# 添加执行权限
293-
chmod +x cc-switch
294-
295-
# 移动到 PATH
296-
sudo mv cc-switch /usr/local/bin/
297-
298-
# 如遇 "无法验证开发者" 提示
299-
xattr -cr /usr/local/bin/cc-switch
300-
```
301-
302-
#### Linux (x64)
303-
304-
```bash
305-
# 下载
306-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-x64-musl.tar.gz
307-
308-
# 解压
309-
tar -xzf cc-switch-cli-linux-x64-musl.tar.gz
310-
311-
# 添加执行权限
312-
chmod +x cc-switch
313-
314-
# 移动到 PATH
315-
sudo mv cc-switch /usr/local/bin/
316-
```
317-
318-
#### Linux (ARM64)
319-
320-
```bash
321-
# 适用于树莓派或 ARM 服务器
322-
curl -LO https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-linux-arm64-musl.tar.gz
323-
tar -xzf cc-switch-cli-linux-arm64-musl.tar.gz
324-
chmod +x cc-switch
325-
sudo mv cc-switch /usr/local/bin/
326-
```
327-
328-
#### Windows
329-
330-
```powershell
331-
# 下载 zip 文件
332-
# https://github.com/saladday/cc-switch-cli/releases/latest/download/cc-switch-cli-windows-x64.zip
333-
334-
# 解压后将 cc-switch.exe 移动到 PATH 目录,例如:
335-
move cc-switch.exe C:\Windows\System32\
336-
337-
# 或者直接运行
338-
.\cc-switch.exe
339-
```
340-
341-
### 方法 2:从源码构建
342-
343-
**前提条件:**
344-
- Rust 1.85+([通过 rustup 安装](https://rustup.rs/)
345-
346-
**构建:**
347-
```bash
348-
git clone https://github.com/saladday/cc-switch-cli.git
349-
cd cc-switch-cli/src-tauri
350-
cargo build --release
351-
352-
# 二进制位置:./target/release/cc-switch
353-
```
354-
355-
**安装到系统:**
356-
```bash
357-
# macOS/Linux
358-
sudo cp target/release/cc-switch /usr/local/bin/
359-
360-
# Windows
361-
copy target\release\cc-switch.exe C:\Windows\System32\
362-
```
363-
364-
---
365-
366366
## 🏗️ 架构
367367

368368
### 核心设计

0 commit comments

Comments
 (0)