Mosaic CLI 文档 EN

安装

安装 Mosaic CLI

按平台选择安装方式。release 资产不可用时,优先使用源码安装脚本。

macOS (Homebrew)

brew tap ooiai/mosaic https://github.com/ooiai/mosaic
brew install mosaic
mosaic --help

Linux / macOS(源码安装脚本)

curl -fsSL https://raw.githubusercontent.com/ooiai/mosaic/main/cli/install.sh |
bash -s -- --from-source
mosaic --help

Windows(PowerShell)

irm https://raw.githubusercontent.com/ooiai/mosaic/main/cli/install.ps1 -OutFile install.ps1
powershell -ExecutionPolicy Bypass -File .\install.ps1 -FromSource
mosaic --help
提示:若提示命令不存在,请把 $HOME/.cargo/bin 加入 PATH 并重启终端。

安装验证

mosaic --version
mosaic --help