Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is composer's global auth.json located? [duplicate]

Where is the global auth.json from composer located on linux?

like image 490
Black Avatar asked Sep 12 '25 16:09

Black


1 Answers

Composer global files can usually be found at your home directory:

In a *nix system that is:

~/.composer # early composer 0/1 and 2 upgraded from it
~/.config/composer # composer 1/2+

auth.json is in there as well (if there is a global one).

In a more general sense, on any system, you should be able to find this by executing:

composer config --global home

On my system this results in:

/Users/yivi/.composer
like image 112
yivi Avatar answered Sep 15 '25 05:09

yivi