I installed Magento 2 without using composer, because I encountered issues and the hosting company helped me with the installation and did not use composer.

Is it possible to add my private and public key to magento now? So that I could update it using composer from now on?

2 Answers 2


You can also do it through system -> web setup wizard

Depending on the version you might get a 200 error, but there is a fix for that here;

200 Error Fix


Save auth.json.sample as auth.json


Put your details in

However it's possible an auth.json have been saved elsewhere under user.

If you are using linux try whereis auth.json see what comes up.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.