Town CLI

town init

初始化 Town 全局运行文件

town init

初始化 Town 全局运行基础设施。

用法

town init

行为

  • 确保 ~/.downcity/ 可用于 Town 运行文件
  • 生成 ~/.downcity/schema/downcity.schema.json(编辑器 schema)

说明

  • 这是 Town 级命令,不依赖 agent 项目路径。
  • 后续项目级配置请使用 town config
  • town init 不会创建或更新模型。模型由City AIService 暴露。

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

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

$ town init
town v1.0.0
Console base initialized
Console initialized
$ town init
town v1.0.0
Console base initialized
Console initialized