Running composer in a different directory than current

try composer install -h. There you’ll find an option --working-dir (or -d). And that’s what you’re looking for.

Then run:

composer install -d=/home/someuser/myproject

You can find more in composer docs.

Depending on your operating system, the = might need to be removed:

composer install -d /home/someuser/myproject

https://stackoverflow.com/questions/33080068/running-composer-in-a-different-directory-than-current/33082705

Comments are closed.