You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use wpCLI from @wp-playground/client but regardless of what command I use it always returns "Hello World!". In the examples below, the post is not created, the siteurl option is not returned nor is the plugin list displayed so it seems like wpCLI is not executing the commands properly. It appears to be working fine with the blueprint wp-cli step but not working through the @wp-playground/client wpCLI.
Code I have tried:
awaitwpCLI(client,{"command": "wp post create --post_title='Test post' --post_excerpt='Some content'"});awaitwpCLI(client,{"command": "wp option get siteurl"});awaitwpCLI(client,{"command": "wp plugin list"});
I am trying to use wpCLI from
@wp-playground/client
but regardless of what command I use it always returns"Hello World!"
. In the examples below, the post is not created, the siteurl option is not returned nor is the plugin list displayed so it seems like wpCLI is not executing the commands properly. It appears to be working fine with the blueprint wp-cli step but not working through the @wp-playground/client wpCLI.Code I have tried:
Always returns:
Docs: https://wordpress.github.io/wordpress-playground/api/client/function/wpCLI
The text was updated successfully, but these errors were encountered: