How to prevent WP-CLI shell from exiting when an exception occurs?
This is the default behavior of WP-CLI’s built-in PHP REPL. If you look at the wp shell documentation, it shows that you can also use the Boris or PsySH PHP REPLs. The Boris REPL does not seem to be actively maintained; however the PsySH REPL has fairly recent maintenance, and it fixes the problem that … Read more