How to reload environment within wp shell

When running wp shell and as an example, I call get_option(), I get value A, as expected. When I then modify the site via browser and set that option via dashboard to B, wp shell environment still reports value as A. If I relaunch the shell by exiting and running wp shell again, value is now B.

Is there a way to reinit the whole WP app state within wp shell without having to exit?

Source link