Skip to content

How I can clone a magento2 website settings (catalog, and stores) if I have the code in a git repo?

I havbe my magento website in a git repo. And for local development I try to replicate the production environment into my own setup with different domain.

I manged to have basic php running but I want to clone the store settings and the catalog from one magento setup to my local one.

So far in my local setup I managed to run:

git clone ^repo^ ./repo_folder
cd ./repo_folder
php bin/magento setup:install

And have setup my local db with admin user. If I get a database dump and a server’s env.php am I able to reproduce the remote environment into my own?

What I want is to have the remote magento setup (from a given codebase) as my own but with change domain from: mymagentostore.example.com -> mymagentostore.local

Is there a tool that runs upon gnu/linux and is able to clone the nessesary settings into my local environment from a given git repo and admin?