This post explains how to emulate a real request in a WP CLI shell so that all global variables are populated correctly — the same way as if you requested that URL in the browser.
How to Emulate a Request in WP CLI Shell
![How to Emulate a Request in WP CLI Shell How to Emulate a Request in WP CLI Shell](https://wildwolf.name/wp-content/uploads/2022/09/wp-cli-logo.png)
This post explains how to emulate a real request in a WP CLI shell so that all global variables are populated correctly — the same way as if you requested that URL in the browser.