“compser require thing/package” saves the details to the “require” section of composer.json
So why doesn’t “compser require-dev thing/package” add the details to the “require-dev” section of composer.json?
Instead you have to do “compser require thing/package –dev”