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# -
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 Try giving the full path like
/app/pkg/wp. See also https://docs.cloudron.io/apps/wordpress-developer/#wp-cli -
@girish I never had to do anything extra before. It just worked beautifully. I dont understand what changed...
-
root@2af864b3-a9db-4fa1-b9ac-8dc1d5e94f60:/app/code# wp plugin list
bash: wp: command not found
root@2af864b3-a9db-4fa1-b9ac-8dc1d5e94f60:/app/code# -
-
@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/.bashrcin the web terminal which should make the wp command work as a workaround for now.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login