I’m attempting to set up a local Trellis (v1.7.0) existing project that I’m collaborating with another developer on. Currently setting this project up on a new machine and starting fresh.
After cloning the repo I ran vagrant up from the trellis directory then composer install from site - both worked as intended. Next I attempted to import the database from vagrant ssh when running:
wp db import ******.sql
and get the following message:
$ wp
-bash: wp: command not found
I have made sure WP-Cli is properly installed. Currently running WP-CLI version: 2.4.0
Further digging, I set up a new example.test Trellis project just to test and I was able to successfully run wp in the vagrant ssh without fail.
So wp is installed on your workstation? What does which wp say?
The wp executable may not be in the PATH of your shell, hence it can’t be found when invoking wp.
I am having the exact same issue as mentioned by @matthew.hay in his original post above. And I get the same output including “-bash: wp: command not found”
I am running the wp db import from the /srv/www/example.com/current folder
It appears this wasn’t resolved and any help/guide will be appreciated.