WP CLI is a command line tool for working with WordPress. You can setup new installs, install plugins, update settings all from your terminal window. However for MAMP users it won’t work out of the box, so this is how you fix it:
Copy to Clipboard
1
vi ~/.zshrc
Copy and past on .zshrc file and make sure that source it. Happy Learning
Copy to Clipboard
x
1
export PATH=/Applications/MAMP/Library/bin:$PATH
2
PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1`
3
export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH
4
Copy to Clipboard
1
1
source ~/.zshrc
Leave A Comment