#Bootstrap EE in PHP CLI
Use the bootstrapper and php auto-prepend your bootstrap file:
In my .profile I have this alias.
alias ee='php -a -d auto_prepend_file="/path/to/your/bootstrap.php"'
Now in the terminal I enter the command ee
and I have an interactive PHP cli with access to my local EE environment. If you are using virtual hosts and have many local EE environments, use multiple aliases/bootstrap files.