macOS 卸载教程
⚠️ 删除配置目录会清除所有会话、记忆、权限设置、API Key 配置。卸载前建议备份:
cp -r ~/.hermes ~/.hermes.bak
第一步:使用自带卸载命令(推荐)
hermes uninstall --full --yes
如果只想卸载但保留配置,去掉
--full参数:hermes uninstall
第二步:手动清理残留
如果卸载命令不可用,手动执行:
停止所有 Hermes 进程:
hermes gateway stop
pkill -f hermes
删除配置和数据目录:
rm -rf ~/.hermes/
卸载 Python 包:
pip3 uninstall hermes-agent -y
pipx uninstall hermes-agent 2>/dev/null
删除可执行文件:
rm -f ~/.local/bin/hermes
清理缓存:
rm -rf ~/.cache/pip/
rm -rf ~/.local/share/pipx/venvs/hermes-agent/
清理 Shell 配置(可选):
# 检查是否有 hermes 相关内容
grep -n "hermes\|HERMES" ~/.zshrc ~/.bash_profile 2>/dev/null
# 如果有,手动编辑删除相关行
nano ~/.zshrc
保存后重新加载:
source ~/.zshrc
第三步:验证卸载完成
which hermes # 应该输出空或提示 not found
ls ~/.hermes # 应该提示 No such file or directory
卸载完成。如需重装,请参考 Hermes Agent 安装与配置完全指南。
Windows 卸载教程
⚠️ 删除配置目录会清除所有会话、记忆、权限设置、API Key 配置。卸载前建议备份:
cp -r ~/.hermes ~/.hermes.bak
第一步:使用自带卸载命令(推荐)
打开 PowerShell(以管理员身份运行),执行:
hermes uninstall --full --yes
如果只想卸载但保留配置,去掉
--full参数:hermes uninstall
第二步:手动清理残留
如果卸载命令不可用,手动执行:
停止所有 Hermes 进程:
hermes gateway stop
taskkill /F /IM hermes.exe 2>$null
删除配置和数据目录:
Remove-Item -Recurse -Force "$env:USERPROFILE\.hermes"
卸载 npm 全局包:
npm uninstall -g hermes-agent
清理环境变量:
- 按
Win + R,输入sysdm.cpl,回车 - 点击 高级 → 环境变量
- 在 用户变量 中检查是否有 Hermes 相关的 PATH 条目
- 如果有,选中并删除
- 点击确定保存
第三步:验证卸载完成
where hermes # 应该提示找不到文件
Test-Path "$env:USERPROFILE\.hermes" # 应该输出 False
卸载完成。如需重装,请参考 Hermes Agent 安装与配置完全指南。
Linux 卸载教程(Ubuntu / Debian)
⚠️ 删除配置目录会清除所有会话、记忆、权限设置、API Key 配置。卸载前建议备份:
cp -r ~/.hermes ~/.hermes.bak
第一步:使用自带卸载命令(推荐)
hermes uninstall --full --yes
如果只想卸载但保留配置,去掉
--full参数:hermes uninstall
第二步:手动清理残留
如果卸载命令不可用,手动执行:
停止所有 Hermes 进程:
hermes gateway stop
pkill -f hermes
删除配置目录:
rm -rf ~/.hermes/
第三步:验证卸载完成
# 应该提示 command not found
which hermes
# 应该提示 No such file or directory
ls ~/.hermes
卸载完成。如需重装,请参考 Hermes Agent 安装与配置完全指南。
📚 常用管理命令
| 命令 | 作用 |
|---|---|
hermes uninstall --full |
完全卸载(删除所有数据) |
hermes uninstall |
卸载但保留配置 |
hermes gateway stop |
停止 Gateway |
hermes gateway status |
查看 Gateway 状态 |
hermes status |
查看运行状态 |
评论 (0)