I don't know if this question has been asked, because searching finds results mostly about moving the libraries installation directory.
I have a globally installed composer command. Is there a way to run, for example, composer install
in a different directory than current, i.e. to specify the directory in which I would like tu run the command?
E.g. being in /home/someuser
, I would like to acquire the same result as in running composer install
it inside /home/someuser/myproject
. Of course, one way would be to simply change the current directory, run composer and go back.