1
votes

In Cloud Foundry, is there a way to tell which buildpack (and which version of that buildpack) has staged a given application?

I am thinking there must be a way because I can see it on the Bluemix web console, but I can't find the same information from the cf cli (tried both cf apps and cf app APPNAME).

2

2 Answers

4
votes
cf curl /v2/apps

Find your app and look at the block of data within. If you wanted to get fancy you could filter on your app name like so cf curl /v2/apps?q=name:<appname>

4
votes

In the Bluemix web console, under "Files and Logs", you should have a file called staging_info.yml. The contents of that file will tell you the buildpack that was detected. Here's an example:


buildpack_path: /var/vcap/data/dea_next/admin_buildpacks/5186873d-27b5-4033-ba97-a2db19d387a2_2dcb9b37027cd39d9742223e2690f16f079a0792 detected_buildpack: Liberty for Java(TM) (WAR, liberty-2015.4.0_0, ibmjdk-1.7.1_sr2fp11ifx-20150312, env) start_command: .liberty/initial_startup.rb