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?