WP CLI (category)

WP_CLI::error()

Outputs an error message prefixed with "Error:" to STDERR and terminates the process with exit code 1.