update-buildpack - Cloud Foundry CLI Reference Guide


名稱

update-buildpack - 更新建置套件

用法

cf update-buildpack BUILDPACK [-p PATH | -s STACK | --assign-stack NEW_STACK] [-i POSITION] [--rename NEW_NAME] [--enable|--disable] [--lock|--unlock]

TIP

Path should be a zip file, a url to a zip file, or a local directory. Position is a positive integer, sets priority, and is sorted from lowest to highest. Use --assign-stack with caution. Associating a buildpack with a stack that it does not support may result in undefined behavior. Additionally, changing this association once made may require a local copy of the buildpack.

選項

--assign-stack

將堆疊指派給沒有堆疊關聯的建置套件

--disable

停止使用建置套件進行編譯打包

--enable

啟用要用於編譯打包的建置套件

--lock

鎖定建置套件,以防止更新

--path, -p

目錄或 zip 檔案的路徑

--position, -i

建置套件自動偵測期間的建置套件檢查順序

--rename

重新命名現有的建置套件

--stack, -s

指定堆疊以釐清具有相同名稱的建置套件

--unlock

解除鎖定建置套件,以啟用更新

另請參閱

buildpacks, create-buildpack, delete-buildpack