w3guy My wordpress sites were installed via the built-in installer in opalstack. I ssh into the app directory and unfortunately, wpcli commands doesn't work. -bash: wp: command not found How do i get it to work?
sean w3guy if the wp command is not working for you then please try re-installing it with the following commands: mkdir -p ~/bin cd ~/bin wget -O wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar chmod +x wp Hope this helps 🙂
w3guy I already got it working. Just curious why it wasn't installed by default since I used the installer. Maybe a bug?
sean Every time you install WP via the dashboard we install a fresh copy of wp-cli in your bin directory. If some bug had prevented the wp-cli from being installed then the installation of that app would have failed and you'd see an error message in the corresponding log file ~/logs/apps/name_of_app/install.log.