docs: make English the default docs language and fix link paths

This commit is contained in:
zhayujie
2026-05-31 17:52:22 +08:00
parent 126649f70f
commit 7bf4ef3d05
231 changed files with 8999 additions and 8974 deletions

View File

@@ -1,28 +1,28 @@
---
title: 进程管理
description: 使用 cow 命令管理 CowAgent 进程的启动、停止、重启、更新等操作
title: Process Management
description: Manage CowAgent process lifecycle with cow commands
---
进程管理命令用于控制 CowAgent 后台进程的生命周期。这些命令仅在终端中可用。
Process management commands control the CowAgent background process. These commands are only available in the terminal.
## start
启动 CowAgent 服务。默认以后台进程方式运行,并自动跟踪日志输出。
Start the CowAgent service. Runs as a background daemon by default and automatically tails logs.
```bash
cow start
```
**选项:**
**Options:**
| 选项 | 说明 |
| Option | Description |
| --- | --- |
| `-f`, `--foreground` | 前台运行,不以后台守护进程方式启动 |
| `--no-logs` | 启动后不自动跟踪日志 |
| `-f`, `--foreground` | Run in foreground, not as a background daemon |
| `--no-logs` | Don't tail logs after starting |
## stop
停止正在运行的 CowAgent 服务。
Stop the running CowAgent service.
```bash
cow stop
@@ -30,97 +30,86 @@ cow stop
## restart
重启 CowAgent 服务(先停止再启动)。
Restart the CowAgent service (stop then start).
```bash
cow restart
```
**选项:**
**Options:**
| 选项 | 说明 |
| Option | Description |
| --- | --- |
| `--no-logs` | 重启后不自动跟踪日志 |
| `--no-logs` | Don't tail logs after restart |
## update
更新代码并重启服务。自动执行以下流程:
Update code and restart the service. Automatically performs:
1. 拉取最新代码(`git pull`
2. 停止当前服务
3. 更新 Python 依赖
4. 重新安装 CLI
5. 启动服务
1. Pull latest code (`git pull`)
2. Stop current service
3. Update Python dependencies
4. Reinstall CLI
5. Start service
```bash
cow update
```
<Warning>
如果 `git pull` 失败(如存在本地未提交的修改),更新会中止,服务不受影响。
If `git pull` fails (e.g., uncommitted local changes), the update aborts and the service remains unaffected.
</Warning>
## status
查看 CowAgent 服务运行状态,包括进程信息、版本号、当前配置的模型和通道。
Check CowAgent service status, including process info, version, and current model/channel configuration.
```bash
cow status
```
输出示例:
```
🐮 CowAgent Status
Status: ● Running (PID: 12345)
Version: 2.0.4
Channel: web
Model: MiniMax-M2.5
Mode: agent
```
## logs
查看服务日志。
View service logs.
```bash
cow logs
```
**选项:**
**Options:**
| 选项 | 说明 | 默认值 |
| Option | Description | Default |
| --- | --- | --- |
| `-f`, `--follow` | 持续跟踪日志输出 | |
| `-n`, `--lines` | 显示最近 N 行 | 50 |
| `-f`, `--follow` | Continuously tail log output | No |
| `-n`, `--lines` | Show last N lines | 50 |
示例:
Examples:
```bash
# 查看最近 100 行日志
# View last 100 lines
cow logs -n 100
# 持续跟踪日志
# Continuously tail logs
cow logs -f
```
## install-browser
安装 Playwright Chromium 浏览器,用于启用 [浏览器工具](/tools/browser)
Install Playwright and Chromium browser for the [browser tool](/tools/browser).
```bash
cow install-browser
```
<Tip>
仅在需要使用浏览器工具(如网页浏览、截图等)时才需要安装。
Only needed when using browser tools (web browsing, screenshots, etc.).
</Tip>
## run.sh 兼容
## run.sh Compatibility
如果未安装 Cow CLI,也可以使用 `run.sh` 脚本管理服务:
If Cow CLI is not installed, you can use `run.sh` to manage the service:
| cow 命令 | run.sh 等效命令 |
| cow command | run.sh equivalent |
| --- | --- |
| `cow start` | `./run.sh start` |
| `cow stop` | `./run.sh stop` |
@@ -130,5 +119,5 @@ cow install-browser
| `cow logs` | `./run.sh logs` |
<Note>
推荐使用 `cow` 命令,它提供更简洁的语法和更丰富的功能。通过一键安装脚本部署时 `cow` 命令会自动安装。
The `cow` command is recommended — it provides cleaner syntax and richer features. It is automatically installed via the one-click install script.
</Note>