forked from cloudfoundry/docs-buildpacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuse-multiple-buildpacks.html.md.erb
34 lines (23 loc) · 1.79 KB
/
use-multiple-buildpacks.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: Pushing an Application with Multiple Buildpacks
owner: Buildpacks
---
This topic describes how developers can push an application with multiple buildpacks.
<p class="note"><strong>Note</strong>: As an alternative to the cf CLI procedure below, you can specify multiple buildpacks in your <a href="../devguide/deploy-apps/manifest.html#buildpack">application manifest</a>. This is not compatible with <a href="..//devguide/deploy-apps/manifest.html#deprecated">Deprecated App Manifest Features</a>.</p>
For more information about pushing applications to <%= vars.product_full %>, see the [Deploying an Application](../devguide/deploy-apps/deploy-app.html) topic.
##<a id='cfcli'></a> 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:
<p class="note"><strong>Note</strong>: You must use cf CLI v6.38 or later.</p>
1. Run the following command to ensure that you are using the cf CLI v6.38 or later:
<pre class="terminal">$ cf version
</pre>
For more information about upgrading the cf CLI, see [Installing the cf CLI](../cf-cli/install-go-cli.html).
1. To push your app with multiple buildpacks, specify each buildpack with a `-b` flag:
<pre class="terminal">
$ cf push YOUR-APP -b BUILDPACK-NAME-1 -b BUILDPACK-NAME-2 ... -b FINAL-BUILDPACK-NAME
</pre>
The last buildpack you specify is the **final buildpack**, which can modify the launch environment and set the start command.
<br><br>
To see a list of available buildpacks, run `cf buildpacks`.
For more information on multi-buildpack order, see the [Buildpacks](understand-buildpacks.html) topic.
For more information about using the cf CLI, see the [Cloud Foundry Command Line Interface](../cf-cli/index.html) topic.