The following exception occurs when the default Dev Hub org is not set.
“This command requires a dev hub org username set either with a flag or by default in the config.”
So, use the following command to set the default Dev Hub org.
sfdx force:config:set defaultdevhubusername=<org username>
