How to clone directly from Magento Cloud?
-
14-04-2021 - |
Question
I have a project and I don't have access to the Bitbucket repo but I have master access to the Magento Cloud project.
How could I clone the project to my local environment?
Solution 2
You can try to run this command below, dont' forget to use your project id and the environment name.
magento-cloud get bkyvkcoafe -e production
But if you're not able to do it you can clone using this another command.
git clone bkyvkcoafe5@git.us-3.magento.cloud:bkyvkcoafe5.git
OTHER TIPS
After you log in to Magento cloud, go to your project from the top menu. On the left panel, you will the environments/branches available for the project. Click on the environment you want to clone.
After that, you will be able to see the CLI/GIT command to clone the repo from the cloud directly. Please see the below image.
Let me know if you have any questions.