kf wrap-v2-buildpack


kf wrap-v2-buildpack - Create a V3 buildpack that wraps a V2 buildpack.


kf wrap-v2-buildpack NAME V2_BUILDPACK_URL [flags]


Creates a V3 buildpack that wraps a V2 buildpack.

The resulting buildpack can then be used with other V3 buildpacks by creating a builder. See https://buildpacks.io/docs/operator-guide/create-a-builder/ for more information.

A V3 buildpack is packaged as an OCI container. If the --publish flag is provided, then the container will be published to the corresponding container repository.

This command uses other CLIs under the hood. This means the following CLIs need to be available on the path: * go * git * pack

We recommend using Cloud Shell to ensure these CLIs are available and the correct version.


kf wrap-v2-buildpack gcr.io/some-project/some-name https://github.com/some/buildpack



Builder repo to use. (default "code.cloudfoundry.org/buildpackapplifecycle/builder")


Stack(s) this buildpack will be compatible with. (default [google])


Version of the resulting buildpack. (default "0.0.1")

-h, --help

help for wrap-v2-buildpack


Launcher repo to use. (default "code.cloudfoundry.org/buildpackapplifecycle/launcher")


Output directory for the buildpack data (before it's packed). If left empty, a temp dir will be used.


Publish the buildpack image.

Inherited flags

These flags are inherited from parent commands.


Username to impersonate for the operation.


Group to impersonate for the operation. Include this flag multiple times to specify multiple groups.


Path to the Kf config file to use for CLI requests.


Path to the kubeconfig file to use for CLI requests.


Log HTTP requests to standard error.


Space to run the command against. This flag overrides the currently targeted Space.