Menu
Page last updated:
This topic describes how to install and uninstall the Cloud Foundry Command Line Interface (cf CLI).
- How to install the Azure CLI on macOS.
- Azure Command-Line Interface (CLI) documentation. The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
Article we introduce you to some Microsoft Azure fundamentals and show you how you can use Linux or Mac OS to: Set up a Microsoft Azure account. Download the correct SDK for your preferred development language. Use the Microsoft Azure Management Portal Use the command line interface (CLI) to perform basic VM operations. See all products; Documentation; Pricing Azure pricing Get the best value at every stage of your cloud journey; Azure cost optimization Learn how to manage and optimize your cloud spending; Azure pricing calculator Estimate costs for Azure products and services; Total cost of ownership calculator Estimate the cost savings of migrating to Azure.
Overview
The cf CLI is the official command line client for Cloud Foundry.
The procedures in this topic describe how to install the cf CLI on your operating system. You can install the cf CLI with a package manager, an installer, or a compressed binary.
For more information about how to use the cf CLI, see Getting Started with cf CLI.
To learn when cf CLI updates are released and to download a new binary or installer, see Releases in the Cloud Foundry CLI repository on GitHub.
There are currently two major versions of the cf CLI, v6 and v7. See the README to decide which version to use.
Prerequisites
If you previously used the cf CLI Ruby gem, you must uninstall the gem before installing the cf CLI.
To uninstall the gem:
- Run:
- Verify that your Ruby environment manager uninstalled the gem by closing and reopening your terminal.
Install the cf CLI Using a Package Manager
These sections describe how to install the cf CLI using a package manager. You can install the cf CLI using a package manager on Mac OS X and Linux operating systems.
Linux Installation
There are two ways to install the cf CLI using a package manager, depending on your Linux distribution.
To install the cf CLI on Debian and Ubuntu-based Linux distributions:
- Add the Cloud Foundry Foundation public key and package repository to your system by running:
- Update your local package index by running:
- To install cf CLI v6, run:
- To install cf CLI v7, run:
To install the cf CLI on Enterprise Linux and Fedora RHEL6/CentOS6 and later distributions:
- Configure the Cloud Foundry Foundation package repository by running:
- To install cf CLI v6, run:
- To install cf CLI v7, run:This also downloads and adds the public key to your system.
Mac OS X Installation
You can install the cf CLI on Mac OS X operating systems using the Homebrew package manager.
To install the cf CLI for Mac OS X using Homebrew:
- Install Homebrew. For instructions, see Install Homebrew on the Homebrew website.
- To install cf CLI v6, run:
- To install cf CLI v7, run:
Install Azure Cli Mac
Install the cf CLI Using a Compressed Binary
You can install the cf CLI using a compressed binary on Windows, Mac OS X, and Linux operating systems.
For more information about downloading and installing a compressed binary for cf CLI v6, see Installers and compressed binaries.
For more information about downloading and installing a compressed binary for cf CLI v7, see Installers and compressed binaries.
Verify Installation
To verify the installation of the cf CLI:
- Close and reopen the command prompt. Or, open a new tab in the command prompt.
- Run:
If your installation was successful, the cf CLI help listing appears.
Uninstall the cf CLI
These sections describe how to uninstall the cf CLI. The method for uninstalling the cf CLI differs depending on the installation method.
Package Manager
What Is Azure Cli
If you installed the cf CLI with a package manager, follow the instructions specific to your package manager.
Installer
If you installed the cf CLI with an installer, follow the procedure in this section that is specific to your operating system.
To uninstall the cf CLI on Mac OS X:
- Delete the binary
/usr/local/bin/cf
. - Delete the directory
/usr/local/share/doc/cf-cli
.
To uninstall the cf CLI on Windows:
- Navigate to the Control Panel and click Programs and Features.
- Select Cloud Foundry CLI VERSION.
- Click Uninstall.
Binary
To uninstall the cf CLI after installing it with a binary:
Azure Cli Mac Os
- Navigate to the location where you copied the binary.
- Delete the binary.
Cyberduck for the command line interface (CLI).
The universal file transfer tool duck which runs in your shell on Linux and OS X or your Windows command line prompt. Edit files on remote servers, download, upload and copy between servers with FTP, SFTP or WebDAV plus support for cloud storage Amazon S3 & OpenStack Swift deployments.
Get access to your Cryptomator vaults from the command line. Transparent, client-side encryption support in Cyberduck and Mountain Duck to secure your data on any server or cloud storage. Based on the excellent concepts and work of Cryptomator. Encryption for data at rest prevents unauthorized access regardless of the server or cloud storage infrastructure. Version 6
Installation
Requires Homebrew. See other installation options to download a OS X installer package.
Cli For Mac
Requires Chocolatey. See other installation options to download the MSI installer for Windows.
Azure Cli 2.0 Download
Requires Yum Package Manager. See other installation options to download DEB and RPM packages.
Requires APT. See other installation options to download DEB and RPM packages.