WP-CLI unable to recongnise PHP server / environment variables on Ubuntu July 19, 2022 by Tarik Billa You would need to define the global URL parameter in wp-cli.yml or in the command like --url=https://example.com