Could not open input file: composer.phar

If you, like me try to use the following command in using composer

 php composer.phar update friendsofsymfony/user-bundle

and get this error

 Could not open input file: composer.phar

You are probably using Windows command prompt to do the update.

Try this instead.

composer update friendsofsymfony/user-bundle

Related posts

Common Code Error When Upgrading to PHP 8.1

Installation of Magento CE 2.3.5 in XAMPP Windows 10

Mixing YML and Annotation