2.3 KiB
2.3 KiB
📁 Your files:
Config: /root/.hermes/config.yaml
API Keys: /root/.hermes/.env
Data: /root/.hermes/cron/, sessions/, logs/
Code: /usr/local/lib/hermes-agent
─────────────────────────────────────────────────────────
🚀 Commands:
hermes Start chatting
hermes setup Configure API keys & settings
hermes config View/edit configuration
hermes config edit Open config in editor
hermes gateway install Install gateway service (messaging + cron)
hermes update Update to latest version
─────────────────────────────────────────────────────────
⚡ 'hermes' was linked into /usr/local/bin and is ready to use — no shell reload needed.
root@LAX-VPS-qgefis2a:~#
有,最接近“恢复刚安装时配置”的命令是:
hermes setup --reset
我在代码里确认了:--reset 会把 config.yaml 写回 DEFAULT_CONFIG,然后继续进入交互式 setup 向导。位置在 hermes_cli/setup.py,命令注册在 hermes_cli/main.py。
几个相关命令也可以按场景用:
hermes setup
重新跑完整配置向导,已有配置会作为默认值展示。
hermes setup model
hermes setup terminal
hermes setup gateway
hermes setup tools
hermes setup agent
只重配某一块。
hermes setup --quick
只补缺失配置,不完整重配。
hermes --ignore-user-config chat
临时忽略 ~/.hermes/config.yaml,按内置默认配置启动;不会改文件。
注意:hermes setup --reset 只重置 config.yaml,不会清空 .env 里的 API key、token,也不会删 sessions、skills、logs。真正“全部恢复干净”只有更危险的:
hermes uninstall --full
这个会删配置和数据,属于卸载级别。建议重置前先跑:
hermes backup --quick
另外 hermes setup --reset 自己也会给旧 config.yaml 做一个 .bak 备份。