pip install cf cli code example
Example 1: script to install cf cli in linux
sudo apt-get install cf-cli
Example 2: script to install cf cli in linux
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list