1

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?

2 Answers 2

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 [email protected]:bkyvkcoafe5.git
1
  • 1
    I am trying to clone it on another server, I copied git command and run on my server it says git: fatal: Could not read from remote repository. Then I tried using CLI but it ask to login using magento-cloud login I run this command and it ask to open url in browser and login http://127.0.0.1:5000 but this is localhost url Oct 22, 2020 at 16:01
1

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.

enter image description here

Let me know if you have any questions.

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.