跳到正文
本頁目錄

lip uninstall

卸載包。

概要

shell
lip uninstall <PACKAGES> [options]

參數

參數說明
<PACKAGES>要卸載的包,可以是包名(例如 LegacyMoney,不區分大小寫),也可以是安裝時使用的 <path> 或 <path>#<variant>(例如 github.com/LiteLDev/LegacyMoney)。以 <path>#<variant> 安裝的 tooth.json 包,其包名即 <path>#<variant>。不帶 variant 的路徑匹配所有變體,除非它本身就是某個已安裝包的包名(例如 tooth.json 包的無標籤變體)。

包名可通過 lip list 查看。

說明

刪除包擁有的文件,並執行其卸載腳本。除非指定 --no-dependencies,否則只能卸載顯式安裝的包。

不再被任何顯式安裝的包需要的依賴也會被卸載。仍被其他包需要的包會保留,並改為依賴。

選項

選項說明
-n, --dry-run僅模擬執行,不做實際更改。
--ignore-scripts跳過執行 preUninstall 和 postUninstall 腳本(tooth.json 包為 pre_uninstall、uninstall 和 post_uninstall)。
--no-dependencies只卸載給定的包(依賴也可以),不移除其他依賴。這可能導致工作區損壞。
--rid <RID>工作區的 .NET RID,例如 win-x64。