This application serves as an example for cf CLI training.
bundle install
bundle exec ruby app.rb -o 0.0.0.0
# in another console
curl http://localhost:4567
# Add the Cloud Foundry Foundation public key and package repository to your system
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb http://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
# Update your local package index, then finally install the cf CLI
sudo apt-get update
sudo apt-get install cf-cli
brew install cloudfoundry/tap/cf-cli
cf help
# cf <COMMAND> --help
# e.g.
cf target --help
Have a look at the scripts directory README file.
cd scripts
less README.md