bun outdated CLI 用法
bash
bun outdated <filter>常規選項
-c, --configstring 指定配置文件路徑(
bunfig.toml) --cwdstring 設置特定的當前工作目錄
-h, --helpboolean 打印此幫助菜單
-F, --filterstring 顯示每個匹配工作空間的過時依賴
輸出與日志
--silentboolean 不記錄任何內容
--verboseboolean 過度詳細的日志記錄
--no-progressboolean 禁用進度條
--no-summaryboolean 不打印摘要
依賴范圍與目標
-p, --productionboolean 不安裝開發依賴
--omitstring 從安裝中排除
dev、optional 或 peer 依賴 -g, --globalboolean 全局安裝
鎖文件與 package.json
-y, --yarnboolean 寫入
yarn.lock 文件(yarn v1) --no-saveboolean 不更新
package.json 或保存鎖文件 --saveboolean default: true 保存到
package.json(默認為 true) --frozen-lockfileboolean 不允許更改鎖文件
--save-text-lockfileboolean 保存基於文本的鎖文件
--lockfile-onlyboolean 生成鎖文件而不安裝依賴
--trustboolean 添加到項目的
package.json 中的 trustedDependencies 並安裝包 網絡與注冊表
--castring 提供證書頒發機構簽名證書
--cafilestring 與
--ca 相同,但使用證書的文件路徑 --registrystring 默認使用特定注冊表,覆蓋
.npmrc、bunfig.toml 和環境變量 --network-concurrencynumber default: 48 最大並發網絡請求數(默認 48)
緩存
--cache-dirstring 從特定目錄路徑存儲和加載緩存數據
--no-cacheboolean 完全忽略清單緩存
執行行為
--dry-runboolean 不安裝任何內容
-f, --forceboolean 始終從注冊表請求最新版本並重新安裝所有依賴
--no-verifyboolean 跳過驗證新下載包的完整性
--ignore-scriptsboolean 跳過項目的
package.json 中的生命周期腳本(依賴腳本永遠不會運行) --backendstring default: clonefile 特定於平台的依賴安裝優化。可能的值:
clonefile(默認)、hardlink、symlink、copyfile--concurrent-scriptsnumber default: 5 生命周期腳本的最大並發作業數(默認 5)