Town CLI

town status

查看 Town runtime、Console 与托管 agent 状态

town status

查看 Town runtime、Console 与当前托管 agent 概览。

用法

town status

相关命令

示例输出(基于当前实现)

以下示例直接对齐 cli/town/src 当前命令实现(含默认输出模式与字段结构),示例值使用占位符表示。

$ town status
town v1.0.0
┌─────────────────────────────────────────────────────────┐
│ OK town status                                   │
│   state    : running                                    │
│   pid      : <pid>                                      │
│   pid_file : <bayPidPath>                              │
│   log      : <bayLogPath>                              │
│   registry : <consoleRegistryPath>                      │
└─────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────┐
│ OK console status                                │
│   state    : running                               │
│   pid      : <consolePid>                          │
│   url      : http://127.0.0.1:5315                 │
│   pid_file : <consolePidPath>                      │
│   log      : <consoleLogPath>                      │
└────────────────────────────────────────────────────┘