Install Cloud Foundry CLI in a M1 chip MacBook

Viewed 797

tl;dr The Cloud Foundry CLI fails to install in an M1 chip MacBook Pro.

Following the official instructions, using Homebrew in the command:

$ brew install cloudfoundry/tap/cf-cli@8

The output is:

cf-cli@8: The x86_64 architecture is required for this software.
Error: cf-cli@8: An unsatisfied requirement failed this build.

Found no binary for the ARM-based architecture of the Apple M1 chip. The same trying with cf-cli@7, or just cf-cli.

How can the Cloud Foundry CLI be installed in an ARM-based architecture?

3 Answers

The official GitHub project cloudfoundry/cli includes binaries for many architectures, including ARM-based.

Search in the official Releases page, Assets section, and download the binary of the item named cf-cli_osx_arm (currently v8.3.0). Once downloaded, move/rename to any folder included in your PATH environment variable.

Related