Using wp-env 11.4.0 , with wp-cli 2.12.0, on ubuntu 24.04 x64, with PHP 8.3.I have to use a specific version of wordpress 6.8.1.
Is there a reliable way to activate a specific custom theme from the command line when using wp-env?
I'm able to use wp-admin Dasbboard to activate the custom theme, but I seek instead to automate this step for new disposable dev environments.
My custom theme is present in ./themes/myTheme , and it shows MYTHEME in the Dashboard and allows activate.
My config file
.wp-env.jsonalso specifies "themes": [ "./themes/myTheme"].But when I tried:
wp-env run cli wp theme activate myTheme(also tried absolute/relative pathnames to myTheme directory)
the result is that there is no output, and the default theme twentytwentyfive remains activated, even after a stop/start.
Any suggestions for getting this to work, or troubleshooting it? (wordpress newbie here).