Via Curl curl --user username:password https://repo.magento.com/packages.json > packages.json Via HTTP request Add the an HTTP Basic Authorization header with base64 of the username:password combo. Authorization: Basic BASE64STRING