I am using following command to install magento 2.4.7 in xampp on windows platform,
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.7 magento2
Note : I know my private key and public key, when i enter the command it’s never asking the details