-
Notifications
You must be signed in to change notification settings - Fork 117
/
use-multiple-buildpacks.html.md.erb
51 lines (34 loc) · 1.85 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
title: Pushing an app with multiple buildpacks
owner: Buildpacks
---
You can push an app with multiple buildpacks using the Cloud Foundry Command Line Interface (cf CLI).
As an alternative to the cf CLI procedure, you can specify multiple
buildpacks in your app manifest. This is not compatible with deprecated app manifest features. For more information, see <a href="../devguide/deploy-apps/manifest.html">Deploying with App Manifests</a>.
For more information about pushing apps, see [Pushing an App](../devguide/deploy-apps/deploy-app.html).
## <a id='cfcli'></a> Specifying buildpacks with the cf CLI
To push an app with multiple buildpacks using the cf CLI:
<p class="note">
You must use cf CLI v6.38 or later.</p>
1. Ensure that you are using the cf CLI v6.38 or later by running:
```console
cf version
```
For more information about upgrading the cf CLI, see [Installing the cf CLI](../cf-cli/install-go-cli.html).
2. To push your app with multiple buildpacks, specify each buildpack with a `-b` flag by running:
```console
cf push YOUR-APP -b BUILDPACK-NAME-1 -b BUILDPACK-NAME-2 ... -b BUILDPACK-NAME-3
```
Where:
<ul>
<li><code>YOUR-APP</code> is the name of your app.</li>
<li><code>BUILDPACK-NAME-1</code>, <code>BUILDPACK-NAME-2</code>, and <code>BUILDPACK-NAME-3</code> are the names of the buildpacks you want to push with your app.</li>
</ul>
The last buildpack you specify is the **final buildpack**, which modifies the launch environment and sets the start command.
<br>
To see a list of available buildpacks, run:
```console
cf buildpacks
```
For more information on multi buildpack order, see [How buildpacks work](understand-buildpacks.html).
For more information about using the cf CLI, see [Using the cf CLI Cloud Foundry command line interface](../cf-cli/index.html).