github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/doc/installation-instructions/installation-instructions-v6.md (about) 1 ### Downloading the latest V6 CF CLI 2 3 #### Installing using a package manager 4 5 **Mac OS X** and **Linux** using [Homebrew](https://brew.sh/) via the [cloudfoundry tap](https://github.com/cloudfoundry/homebrew-tap): 6 7 ```sh 8 brew install cloudfoundry/tap/cf-cli@6 9 ``` 10 11 **Note:** `cf` tab completion requires `bash-completion` to be installed properly in order to work. 12 13 **Debian** and **Ubuntu** based Linux distributions: 14 15 ```sh 16 # ...first add the Cloud Foundry Foundation public key and package repository to your system 17 wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - 18 echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list 19 # ...then, update your local package index, then finally install the cf CLI 20 sudo apt-get update 21 sudo apt-get install cf-cli 22 ``` 23 24 **Enterprise Linux** and **Fedora** systems (RHEL6/CentOS6 and up): 25 ```sh 26 # ...first configure the Cloud Foundry Foundation package repository 27 sudo wget -O /etc/yum.repos.d/cloudfoundry-cli.repo https://packages.cloudfoundry.org/fedora/cloudfoundry-cli.repo 28 # ...then, install the cf CLI (which will also download and add the public key to your system) 29 sudo yum install cf-cli 30 ``` 31 32 #### Installers and compressed binaries 33 34 35 | | Mac OS X 64 bit | Windows 64 bit | Linux 64 bit | 36 | :---------------: | :---------------: |:---------------:| :------------:| 37 | Installers | [pkg](https://packages.cloudfoundry.org/stable?release=macosx64&source=github&version=v6) |[zip](https://packages.cloudfoundry.org/stable?release=windows64&source=github&version=v6) | [rpm](https://packages.cloudfoundry.org/stable?release=redhat64&source=github&version=v6) / [deb](https://packages.cloudfoundry.org/stable?release=debian64&source=github&version=v6) | 38 | Binaries | [tgz](https://packages.cloudfoundry.org/stable?release=macosx64-binary&source=github&version=v6) | [zip](https://packages.cloudfoundry.org/stable?release=windows64-exe&source=github&version=v6) | [tgz](https://packages.cloudfoundry.org/stable?release=linux64-binary&source=github&version=v6) | 39 40 Release notes, and 32 bit releases can be found [here](https://github.com/cloudfoundry/cli/releases). 41 42 **Download examples** with curl for Mac OS X and Linux binaries 43 ```sh 44 # ...download & extract Mac OS X binary 45 curl -L "https://packages.cloudfoundry.org/stable?release=macosx64-binary&source=github&version=v6" | tar -zx 46 # ...or Linux 64-bit binary 47 curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&source=github&version=v6" | tar -zx 48 # ...move it to /usr/local/bin or a location you know is in your $PATH 49 mv cf /usr/local/bin 50 # ...copy tab completion file on Ubuntu (takes affect after re-opening your shell) 51 sudo curl -o /usr/share/bash-completion/completions/cf https://raw.githubusercontent.com/cloudfoundry/cli-ci/main/ci/installers/completion/cf 52 # ...and to confirm your cf CLI version 53 cf version 54 ``` 55 56 ##### Edge binaries 57 Edge binaries are *not intended for wider use*; they're for developers to test new features and fixes as they are 'pushed' and passed through the CI. 58 Follow these download links for [Mac OS X 64 bit](https://packages.cloudfoundry.org/edge?arch=macosx64&source=github&version=v6), [Windows 64 bit](https://packages.cloudfoundry.org/edge?arch=windows64&source=github&version=v6) and [Linux 64 bit](https://packages.cloudfoundry.org/edge?arch=linux64&source=github&version=v6).