These commands can be used globally or locally. To use locally just remove the global keyword. To learn more about these commands and others that are not listed here go to the composer documentation.
To show installed packages:
composer global show
To show primary packages without dependencies:
composer global show --self
To show all packages installed regardless of dependencies:
composer global show --all
To show all outdated packages:
composer global outdated
To upgrade packages:
composer global upgrade
To install packages
composer global require "vendor/package"
To remove packages:
composer global remove "vendor/package"
composer global remove "vendor/*"
To update composer:
composer global self-update