Installing the cf Command Line Interface

Page last updated: October 15, 2015

To install the Cloud Foundry command line interface (cf CLI), download it from https://github.com/cloudfoundry/cli#downloads and follow the instructions for your operating system.

Uninstall cf CLI v5

If you previously used the cf CLI v5 Ruby gem, you must uninstall this gem before installing cf CLI v6.

To uninstall, run gem uninstall cf.

Note: To ensure that your Ruby environment manager registers the change, close and reopen your terminal.

Windows Installation

To install the cf CLI on Windows:

  1. Unpack the zip file.
  2. Double click the cf CLI executable.
  3. When prompted, click Install, then Close.

Mac OS X and Linux Installation

  1. Open the .pkg file.
  2. In the installer wizard, click Continue.
  3. Select an install destination and click Continue.
  4. When prompted, click Install.

Note: If you are using the default Security Settings on your machine, a signing issue appears when you download the .pkg file. Refer to the Apple documentation for instructions for resolving this issue.

Next Steps

To verify your installation, open a terminal window and type cf. If your installation was successful, the cf CLI help listing appears.

For more information about cf CLI version 6, see Getting Started with cf CLI v6.