How to avoid user inputs on running composer commands

Composer is a tool for dependency management in PHP. Usually it requires some user interactions on running the same. This will be a problem on automating the composer commands.

But there is an option to pick up the default option whenever an interactive action required on running the composer.

We need to use the switch --no-interaction or -n along with the composer command.

--no-interaction (-n): Do not ask any interactive question.

That's all…

Leave a Reply

Your email address will not be published. Required fields are marked *