When you clone the Adobe Commerce Cloud project to your local system, it may not include the auth.json file containing the public and private keys of repo.magento.com. These keys are necessary to validate your Adobe Commerce Cloud version and use it to install or upgrade Commerce Cloud native modules.
But the problem is how to get this key for your Adobe Commerce Cloud website. The answer is you can get auth.json magento keys from your Adobe Cloud project dashboard.
Why Are auth.json Keys Important?
Before we move to how to get these keys, first, let’s see why auth.json file is important.
The auth.json file is crucial for the following
- Accessing Magento 2 repositories for downloading and updating modules.
- Authenticating with Magento Marketplace to install purchased extensions.
- Ensuring secure communication between your development environment and Magento services.
How to get Magento keys for auth.json for Adobe Commerce Cloud
These keys are inserted into the Adobe Commerce Cloud dashboard or Cloud Console under “environment variable“.
To access environment variables, click on a specific environment, for example, production, then click on settings and access environment variables.
Here you can find the public and private keys of Magento in the auth.json file. You can simply copy this key and create the auth.json file in your local instance to proceed.
Stay tuned to our blog for more Adobe Commerce tips and tutorials.

