Today I was installing laravel nova and discovered a command in the installation process that was new to me.
composer config \
repositories.nova \
'{"type": "composer", "url": "https://nova.laravel.com"}' \
--file composer.json
It adds the composer repository to your composer.json file without having to manually edit the file. In the past I've always fired up sublime text to make these edits by hand.
composer config \
repositories.treasure \
'{"type": "composer", "url": "https://treasure.cove.no"}' \
--file composer.json