mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-09 17:29:12 +00:00
docs(reference): fix kimi web to document background-daemon behavior (#871)
* docs(reference): 修正 kimi web 为后台守护进程运行 kimi web 实际复用 server run 的后台守护进程流程(web-alias.ts 中 defaultOpen 置为 true),原文档误写为前台运行。改为后台启动、命令返回, 并补充 --foreground 示例。 * docs(reference): 与文档站参考手册版本对齐 kimi web 说明
This commit is contained in:
parent
15cc4ab256
commit
90745abc29
2 changed files with 14 additions and 8 deletions
|
|
@ -194,14 +194,17 @@ The loopback host, chosen port, and log level are recorded to `~/.kimi-code/serv
|
|||
|
||||
#### `kimi web`
|
||||
|
||||
Alias for `kimi server run` with `--open` defaulted to `true` — runs the server in the foreground and opens the web UI in the default browser once it is healthy. Use `--no-open` to skip the browser launch (effectively turning it back into `kimi server run`).
|
||||
Opens Kimi's graphical session in the browser as an alternative to the terminal TUI.
|
||||
|
||||
Equivalent to `kimi server run --open`: it starts a local Kimi server in the background (reusing one already running), opens the web UI in the default browser, and returns, leaving the server resident in the background. The only difference from `kimi server run` is that `--open` is enabled by default (auto-launches the browser); all other behavior is identical.
|
||||
|
||||
```sh
|
||||
kimi web # foreground + open browser
|
||||
kimi web --no-open # equivalent to `kimi server run`
|
||||
kimi web # start the server in the background and open the browser (reuses a running one)
|
||||
kimi web --no-open # don't open the browser; same as `kimi server run`
|
||||
kimi web --foreground # run attached to the current terminal and open the browser
|
||||
```
|
||||
|
||||
The same `--port`, `--log-level`, and `--debug-endpoints` flags work as on `kimi server run`.
|
||||
Stop the server with `kimi server kill` and list active connections with `kimi server ps`; `--port`, `--log-level`, and the other flags match `kimi server run`.
|
||||
|
||||
### `kimi doctor`
|
||||
|
||||
|
|
|
|||
|
|
@ -194,14 +194,17 @@ kimi server status # 查看安装与运行状态
|
|||
|
||||
#### `kimi web`
|
||||
|
||||
`kimi server run --open` 的别名:前台跑服务,健康后立即用默认浏览器打开 web UI。加 `--no-open` 等价于纯 `kimi server run`。
|
||||
在浏览器中打开 Kimi 的图形会话界面,作为终端 TUI 的替代入口。
|
||||
|
||||
等价于 `kimi server run --open`:在后台启动本地 Kimi 服务(若已运行则复用),用默认浏览器打开 web UI,随后命令返回,服务驻留后台。与 `kimi server run` 的唯一区别是默认启用 `--open`(自动打开浏览器),其余行为一致。
|
||||
|
||||
```sh
|
||||
kimi web # 前台 + 自动打开浏览器
|
||||
kimi web --no-open # 等价于 `kimi server run`
|
||||
kimi web # 后台启动服务并打开浏览器(已运行则复用)
|
||||
kimi web --no-open # 不打开浏览器,等同 `kimi server run`
|
||||
kimi web --foreground # 在当前终端前台运行,同时打开浏览器
|
||||
```
|
||||
|
||||
`--port`、`--log-level`、`--debug-endpoints` 与 `kimi server run` 完全一致。
|
||||
停止服务使用 `kimi server kill`,查看活动连接使用 `kimi server ps`;`--port`、`--log-level` 等选项与 `kimi server run` 一致。
|
||||
|
||||
### `kimi doctor`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue