Find MAMP's installed PHP version(s) you want to use the PHP CLI for:
$ ls -l /Applications/MAMP/bin/php/
- First, open your local user's
.bash_profile
in edit mode, in order to add aliases for accessing the PHP CLI locally
$ pico ~/.bash_profile