命令行参考

通用约定与常用命令

Windows YWTool阅读约 1 分钟

通用约定

  • 主程序:engine\ywtool.exe,查看帮助:ywtool --help。
  • 资源型命令统一使用 list / add / update / del / status,旧版 delete 仅作兼容别名。
  • 需要连接引擎的命令会输出“正在……请稍等...”,表示正在采集数据,不是卡死。

系统概览

.\ywtool.exe overview info
.\ywtool.exe overview info --json
.\ywtool.exe overview all --skip-slow
参数 含义
--json 以 JSON 输出,方便脚本读取
--skip-slow 跳过硬件资产、监听端口、系统补丁等慢采集项

平台服务

.\ywtool.exe service list
.\ywtool.exe service list --kind http,dhcp
.\ywtool.exe service del --kind dhcp
命令 参数 含义
service list --kind 按服务类型过滤,多个用逗号分隔
service del --id 按服务 ID 停止一个实例
service del --kind 停止同类全部服务