Pushing an Application with Multiple Buildpacks

Page last updated:

This topic describes how developers can push an application with multiple buildpacks.

Note: As an alternative to the cf CLI procedure below, you can specify multiple buildpacks in your application manifest. This is not compatible with Deprecated App Manifest Features.

For more information about pushing applications to Pivotal Web Services (PWS), see the Deploy an Application topic.

Specifying Buildpacks with the cf CLI

To push an application with multiple buildpacks using the Cloud Foundry Command Line Interface (cf CLI), perform the following procedure:

Note: You must use cf CLI v6.38 or later.

  1. Run the following command to ensure that you are using the cf CLI v6.38 or later:
    $ cf version
    For more information about upgrading the cf CLI, see Installing the cf CLI.
  2. To push your app with multiple buildpacks, specify each buildpack with a -b flag:
    The last buildpack you specify is the final buildpack, which can modify the launch environment and set the start command.

    To see a list of available buildpacks, run cf buildpacks.

For more information on multi-buildpack order, see the Understanding Buildpacks topic.

For more information about using the cf CLI, see the Cloud Foundry Command Line Interface topic.

Create a pull request or raise an issue on the source for this page in GitHub