Install WP-CLI with 🍺 Homebrew to maintain WordPress with the least use of time. The easiest path would be Homebrew when you need WP-CLI on Mac OS. After installing Homebrew type the following commands:
This will connect you to the third-party Homewbrev repository with the required formula. Then issue the command
brew install wp-cli
That’s all. Now you are ready to install and maintain WordPress on your Mac using Terminal or another client for the command line