Wrong output order when mixing WP_CLI::API and php-cli-tools July 6, 2022 by Tarik Billa Updating from WordPress 4.1 to 4.2.1 appears to have fixed this (in both WP-CLI v0.18.0 and 0.19.0.) I do not know why.