Pushing an Application with Multiple Buildpacks

Page last updated:

Warning: Pivotal Cloud Foundry (PCF) v2.4 is no longer supported because it has reached the End of General Support (EOGS) phase as defined by the Support Lifecycle Policy. To stay up to date with the latest software and security updates, upgrade to a supported version.

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 , see the Pushing an App 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 How Buildpacks Work in Cloud Foundry topic.

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