how to run composer.json in cmd code example Example 1: composer clear cache $ composer clearcache Example 2: update packages composer global composer global update