Update README

This commit is contained in:
hkfires
2025-09-06 10:24:48 +08:00
parent 7b546ea2ee
commit e074e957d1
2 changed files with 18 additions and 8 deletions

View File

@@ -499,10 +499,15 @@ docker run --rm -p 8317:8317 -v /path/to/your/config.yaml:/CLIProxyAPI/config.ya
1. Create a `config.yaml` from `config.example.yaml` and customize it. 1. Create a `config.yaml` from `config.example.yaml` and customize it.
2. Build and start the services using Docker Compose: 2. Build and start the services using the build scripts:
```bash - For Windows (PowerShell):
docker compose up -d --build ```powershell
``` ./docker-build.ps1
```
- For Linux/macOS:
```bash
bash docker-build.sh
```
3. To authenticate with providers, run the login command inside the container: 3. To authenticate with providers, run the login command inside the container:
- **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login` - **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login`

View File

@@ -512,10 +512,15 @@ docker run --rm -p 8317:8317 -v /path/to/your/config.yaml:/CLIProxyAPI/config.ya
1. 从 `config.example.yaml` 创建一个 `config.yaml` 文件并进行自定义。 1. 从 `config.example.yaml` 创建一个 `config.yaml` 文件并进行自定义。
2. 使用 Docker Compose 构建并启动服务: 2. 使用构建脚本构建并启动服务:
```bash - Windows (PowerShell):
docker compose up -d --build ```powershell
``` ./docker-build.ps1
```
- Linux/macOS:
```bash
bash docker-build.sh
```
3. 要在容器内运行登录命令进行身份验证: 3. 要在容器内运行登录命令进行身份验证:
- **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login` - **Gemini**: `docker compose exec cli-proxy-api /CLIProxyAPI/CLIProxyAPI -no-browser --login`