I'm trying to install the config github-oauth.github.com <token> in composer.json

1 . If I enter the command as indicated in the official documentation ( https://getcomposer.org/doc/articles/troubleshooting.md ):

composer config -g github-oauth.github.com <my_token>

displays a syntax error.


2 If they write like this:

composer config -g github-oauth.github.com my_token

then how the command passes, but nothing happens, even if you execute the commands:

composer install

composer update


3 If I write this:

composer config github-oauth.github.com my_token

This creates an auth.json file, where the token itself is written.

Question : Tell me why it does not work as it is written in the official documentation, that is, like this:

composer config -g github-oauth.github.com <мой_токен> или composer config -g github-oauth.github.com мой_токен 

    1 answer 1

    The documentation lists the commands for the globally installed compositor, as indicated by the -g parameter in the commands.

    The arrows do not need to be entered, they mean the parameter that needs to be replaced, so the entered command should look like this:

     composer config -g github-oauth.github.com abc543785qwerwe