CX CLEAR
GitHub
文档命令行工具
命令行工具

安装

npm 与 PowerShell 脚本两种安装方式。

CLI 是给 AI 和自动化用的无界面版本,stdout 只输出 JSON,人看的提示走 stderr。

npm 安装

需要 Node.js 22 或以上(Windows x64):

powershell
npm install -g @moumoum/cxclear
cxclear --version

安装脚本

不装 Node 也可以用 PowerShell 安装脚本,会同时装好命令行:

powershell
irm https://raw.githubusercontent.com/moumoum0/cx-clear/main/install.ps1 | iex

静默模式:

powershell
$env:CXCLEAR_SILENT = '1'; irm https://raw.githubusercontent.com/moumoum0/cx-clear/main/install.ps1 | iex

验证

bash
cxclear --version
cxclear status

接着看 使用方式 里的命令一览和 JSON 输出格式。