In your Magento root folder, you will found auth.json.sample just rename it to auth.json and add your public and private key from your marketplace account.
For more you can refer this:
https://www.mageplaza.com/devdocs/magento-2-install-uninstall-sample-data.html