Add automatic update checks

This commit is contained in:
sunguosheng
2026-06-17 21:07:04 +08:00
parent 26265cbb10
commit 692a31303e
7 changed files with 193 additions and 2 deletions
+24
View File
@@ -93,6 +93,30 @@ python -m nlprog models show deepseek
python -m nlprog models remove deepseek
```
## 自动更新
NLProg 默认在每次启动时检查更新。如果发现新版本,会询问是否立即更新。
手动检查更新:
```powershell
python -m nlprog update check
```
手动更新:
```powershell
python -m nlprog update self
```
关闭自动检测更新:
```powershell
python -m nlprog config set auto_update_check false
```
重新开启自动检测更新:
```powershell
python -m nlprog config set auto_update_check true
```
## 使用 opencode
先确认 opencode 已经登录: