-
-
Notifications
You must be signed in to change notification settings - Fork 8
Installation
Jelle Siderius edited this page Nov 12, 2025
·
16 revisions
- WP CLI when using WordPress databases
Install directly from npm:
npm install -g mage-db-sync@latestAfter installation, the tool will automatically:
- Create
~/.mage-db-sync/config/directory - Generate sample configuration files in
~/.mage-db-sync/config/
If you want to develop or customize the tool:
-
Clone the repository:
git clone https://github.com/jellesiderius/mage-db-sync.git cd mage-db-sync -
Install as a global package:
npm install -g
After installation, you'll find sample configuration files in ~/.mage-db-sync/config/:
Edit ~/.mage-db-sync/config/settings.json:
# General settings for mage-db-sync
vi ~/.mage-db-sync/config/settings.jsonEdit the database configuration files:
# For staging databases
vi ~/.mage-db-sync/config/databases/staging.json
# For production databases
vi ~/.mage-db-sync/config/databases/production.json