wp-cli disappeared
-
Connecting...
If you resize the browser window, press Ctrl+D to start a new session with the current size.
root@dc02c0b5-c9f1-43a7-8c31-2c8598105832:/app/code# wp plugin deactivate --all --network
bash: wp: command not found
root@dc02c0b5-c9f1-43a7-8c31-2c8598105832:/app/code# -
When I do this I get this code. This is for all the wordpress install on the server:
root@1de1f6d3-3227-4781-bc12-d6c9a3f750e2:/app/code/wordpress# /app/pkg/wp
Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.
If you'd like to continue as root, please run this again, adding this flag: --allow-root
If you'd like to run it as the user that this site is under, you can run the following to become the respective user:
sudo -u USER -i -- wp <command>
-
@derin we roll out releases slowly, so for those who it hasn't been rolled out to, it will say 'unstable'. It's safe to update. you can also do
source /root/.bashrc
in the web terminal which should make the wp command work as a workaround for now.