Town CLIAgent
town agent restart
重启指定 agent 进程
town agent restart
重启指定 agent 的 runtime。
这页保留为命令入口。更完整的说明见 CLI / restart 和 安全重启 Agent。
用法
town agent restart [path] [options]常用参数
-h, --host <host>:服务主机
行为说明
path默认当前目录.。- 目标 agent 需要已登记在受管 agent registry。
- 流程是先停后起,端口由 Town runtime 重新自动分配。
相关命令
示例输出(基于当前实现)
以下示例直接对齐 cli/town/src 当前命令实现(含默认输出模式与字段结构),示例值使用占位符表示。
$ town agent restart .
town v1.0.0
✅ Downcity daemon restarted
pid: <pid>
log: <daemonLogPath>$ town agent restart .
town v1.0.0
❌ Failed to restart daemon: <error>