M
M
Michael2017-12-04 17:27:41
Composer
Michael, 2017-12-04 17:27:41

Is it possible for composer to have multiple auth files?

When authenticating, composer offers to save the data to the user's home directory. This is convenient when it is enough for a resource to simply get a username and password. However, this scheme does not work when you need to use different accounts in different projects for the same resource.
1. Is it possible to specify the auth.json file when requesting composer install/update?
2. Is it possible to have globally different configs or different auth.json?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2017-12-04
@springimport

Found the answer: there is no support for different configurations except for the configuration in the project folder, but this is not recommended.
https://github.com/composer/composer/issues/5434

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question