@yarnpkg/cliyarn config get在此頁面上yarn config get讀取組態設定。 用法 $ yarn config get <name> 範例 列印一個簡單的組態設定 yarn config get yarnPath 列印一個複雜的組態設定 yarn config get packageExtensions 列印組態中的巢狀欄位 yarn config get 'npmScopes["my-company"].npmRegistryServer' 列印組態中的權杖 yarn config get npmAuthToken --no-redacted 將組態設定列印為 JSON yarn config get packageExtensions --json 詳細資料 此指令會列印組態設定。 預設會從輸出中刪除機密(例如權杖)。如果不需要這種行為,請設定 --no-redacted 以取得未轉換的值。 選項 定義說明--why列印設定具有其值的說明--json將輸出格式化為 NDJSON 串流--no-redacted不要從輸出中刪除機密(例如權杖)