psylosss
psylosss

Reputation: 3529

How to disable prompt to store credentials in composer?

When I update composer with private repositories running composer update, it prompts to store credential:

Do you want to store credentials for bitbucket.org 
in /home/evgeny/.composer/auth.json ? [Yn]

How to surpress this question with answer no by default? I won't answer every update and I won't store this credentials.

Upvotes: 1

Views: 702

Answers (1)

Niels Keurentjes
Niels Keurentjes

Reputation: 41958

You can globally disable all interactive questions by setting the COMPOSER_NO_INTERACTION env variable to 1.

Ref: https://getcomposer.org/doc/03-cli.md#composer-no-interaction

Upvotes: 1

Related Questions