Pushing an Application with Multiple Buildpacks
Page last updated:
This topic describes how developers can push an application with multiple buildpacks.
For more information about pushing applications to Cloud Foundry, see the Deploy an Application topic.
To push an application with multiple buildpacks using the Cloud Foundry Command Line Interface (cf CLI), perform the following procedure:
- Run the following command to ensure that you are using the cf CLI v6.34.1 or later:
$ cf versionFor more information about upgrading the cf CLI, see Installing the cf CLI.
- Push the application with the binary buildpack with the
$ cf push YOUR-APP --no-start -b binary_buildpackThis command pushes the application but does not start it.
- Upgrade the application to multiple buildpacks, and specify the buildpacks:
$ cf v3-push YOUR-APP -b BUILDPACK-NAME-1 -b BUILDPACK-NAME-2This command changes the buildpack and starts the application. To see a list of available buildpacks, run
Note: The two-push workflow is currently required because only
v3-push supports multiple buildpacks.
For more information about V3 commands, see the Using Experimental cf CLI Commands topic. The
v3-push command has the following restrictions:
v3-pushcurrently only supports a subset of features of
push. In particular, it does not support the following:
- application manifests
- flags to set the stack or modify the default mapped route
- If you use an application manifest, you cannot include the
buildpackkey or future pushes will not function properly.
- You can use the following commands to update the configuration of an application started with
For more information about V3 commands, see the Using Experimental cf CLI Commands topic.
For more information about using the cf CLI, see the Cloud Foundry Command Line Interface topic.