modify composer.json bash code example Example 1: composer self update command composer self-update Example 2: composer clear cache $ composer clearcache