安装
npm 与 PowerShell 脚本两种安装方式。
CLI 是给 AI 和自动化用的无界面版本,stdout 只输出 JSON,人看的提示走 stderr。
npm 安装
需要 Node.js 22 或以上(Windows x64):
npm install -g @moumoum/cxclear
cxclear --version安装脚本
不装 Node 也可以用 PowerShell 安装脚本,会同时装好命令行:
irm https://raw.githubusercontent.com/moumoum0/cx-clear/main/install.ps1 | iex静默模式:
$env:CXCLEAR_SILENT = '1'; irm https://raw.githubusercontent.com/moumoum0/cx-clear/main/install.ps1 | iex验证
cxclear --version
cxclear status接着看 使用方式 里的命令一览和 JSON 输出格式。