- Download the latest stack-auditor from the release section of this repository.
- Unpack the archive on your local box using
tar xvzf <archive> [-C <directory>]or use a file explored.
- Install the plugin with
cf install-plugin <path_to_binary>.
Alternative: Compile from source
Prerequisite: Have a working golang environment with correctly set
go get github.com/cloudfoundry/stack-auditor cd $GOPATH/src/github.com/cloudfoundry/stack-auditor ./scripts/build.sh
Install the plugin with
cf install-plugin <path_to_binary> or use the shell scripts
- Audit cf applications using
- Change stack association using
cf change-stack <app> <stack> [--v3]. Setting the
--v3flag will attempt to perform a zero downtime restart. Make sure to target the space that contains the app you want to re-associate.
- Delete a stack using
cf delete-stack <stack> [--force | -f]
Run the Tests
Target a cloudfoundry and run: