How can I get the WP-CLI eval-file command to report errors to stderr?
Adding the following lines to the top of your script, as recommended in Github issue, should report any runtime errors: ini_set( ‘display_errors’, 1 ); error_reporting(E_ALL); However, it will not report syntax errors, which is a big headache as you try to write your script. This is my workaround for that: Add following line to bottom … Read more