Installation
Prerequisites
- Python 3.10 or higher
- pip for package installation
pip (Recommended)
Install db-sync-tool from PyPI:
bash
pip install db-sync-tool-kmiAfter installation, run:
bash
db_sync_tool --helpComposer (PHP Projects)
For PHP framework projects, install via Packagist:
bash
composer require kmi/db-sync-toolThen install Python dependencies:
bash
pip install -e vendor/kmi/db-sync-tool/Run using:
bash
python3 vendor/kmi/db-sync-tool/db_sync_toolShell Completion
db-sync-tool supports automatic shell completion for bash, zsh, fish, and PowerShell:
bash
# Install completion for your shell
db_sync_tool --install-completion
# Restart your shell, then use tab completion
db_sync_tool --config<TAB> # completes to --config-fileVerify Installation
bash
# Check version
db_sync_tool --version
# View help
db_sync_tool --helpNext Steps
- Quick Start - Your first database sync
- Configuration - Learn about configuration options