Technical Articles
How to Install Stack Auditor on Your Local System (MAC, Windows, Linux) or SAP Business Application Studio: A Step-by-Step Guide
Introduction:
Cloud Foundry Stack Auditor is a useful BTP cf CLI plug-in that allows you to manage apps and their stacks, migrate apps to new stacks, and delete stacks.
For example, a typical use for Stack Auditor is migrating a large number of apps to a new stack such as Cloud Foundry Runtime Stack Switch from cflinuxfs3 to cflinuxfs4.
You can read more about Stack Auditor here .
In this blog post, I will show you how to install Stack Auditor on your local system or SAP Business Application Studio.
#1 ) Downloading and Installing Stack Auditor on Your Local System (MAC, Windows, Linux):
To install Stack Auditor, follow these steps:
- Download the latest Stack Auditor binary for as per your Operating System from Releases in the Stack Auditor repository on GitHub at the following URL: https://github.com/cloudfoundry/stack-auditor/releases
- Unzip the binary file you downloaded. Unpack the archive on your local system either using a file explorer or using tar xvzf <archive> [-C <directory>].
- Install the plug-in with the cf CLI by executing the command:
cf install-plugin <path_to_binary>
cf install-plugin stack-auditor-darwin-amd64

#2) Installing Stack Auditor on SAP Business Application Studio
While it’s possible that stack-auditor might become available in SAP Business Application Studio without requiring any manual installation in the future, currently, this is not the case. Therefore, in this blog post, I will demonstrate how to install Stack Auditor on SAP Business Application Studio
Note: If you don’t have BTP SAP Business Application Studio, you can follow the Article to get set up SAP Business Application Studio on BTP Trial account.
or
- Download the stack-auditor-linux-32 binary from Releases in the Stack Auditor repository on GitHub at the following URL: https://github.com/cloudfoundry/stack-auditor/releases
- Extract the archive you downloaded into your local system. Unpack the archive on your local system either using a file explorer or using
tar xvzf <archive> [-C <directory>]
. - Open the desired Project DevSpace of SAP Business Application Studio or create a new DevSpace. Note that currently, you need to install this plug-in for every DevSpace but this may change in the future.
- Upload the stack-auditor-linux-32 file to any folder in SAP Business Application Studio.
- Install the plug-in with the cf CLI by executing the following command from the terminal:
cf install-plugin stack-auditor-linux-32
Once you have installed Stack Auditor, you can change the stack using the following command:
cf change-stack your-app-name cflinuxfs4
If you would like to switch your Cloud Foundry Runtime Stack to the latest version, cflinuxfs4, you may find my blog post helpful as a reference.
Request for Feedback and Support:
Thanks for reading! If you found this post helpful, please consider ‘‘Like’ ,‘Share’ it with your network. Your support helps me create more valuable content. I welcome any feedback or suggestions – feel free to comment . Don’t forget to ‘Follow’ me for more content like this.
Your support means a lot to me!
About me :
LinkedIn > Showkath
Hi Showkath,
thank you for this tip. Can you please check the formatting of your post. Something breaks the layout.
Best Regards
Gregor
Hi Gregor Wolf ,