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 want to use WP CLI on Windows. When I open a shell by clicking Studio's 'Terminal' button, the environment variables needed to run WP CLI are not set correctly.
Steps to reproduce
Start the Studio App on Windows
Start an existing WordPress project
Click on the 'Open in Terminal' button to open a shell
enter a command, e.g., wp user list
What you expected to happen
WP CLI should launch and execute the desired command
What actually happened
because PATH is not set correctly, the wp command is not found. Also, in order to successfully execute C:\Users\[username]\AppData\Local\studio\app-1.0.5\resources\bin\wp.bat, the variable STUDIO_APP_PATH must be set.
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform
Windows
Logs or notes
A possible workaround is to:
set STUDIO_APP_PATH to C:\Users\[username]\AppData\Local\studio\app-1.0.5\Studio.exe
set PATH to include C:\Users\[username]\AppData\Local\studio\app-1.0.5\resources\bin
The text was updated successfully, but these errors were encountered:
Quick summary
I want to use WP CLI on Windows. When I open a shell by clicking Studio's 'Terminal' button, the environment variables needed to run WP CLI are not set correctly.
Steps to reproduce
wp user list
What you expected to happen
WP CLI should launch and execute the desired command
What actually happened
because PATH is not set correctly, the
wp
command is not found. Also, in order to successfully executeC:\Users\[username]\AppData\Local\studio\app-1.0.5\resources\bin\wp.bat
, the variableSTUDIO_APP_PATH
must be set.Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform
Windows
Logs or notes
A possible workaround is to:
STUDIO_APP_PATH
toC:\Users\[username]\AppData\Local\studio\app-1.0.5\Studio.exe
PATH
to includeC:\Users\[username]\AppData\Local\studio\app-1.0.5\resources\bin
The text was updated successfully, but these errors were encountered: