{"repo":"nlemoine/wp-cli-move","free":true,"listed":false,"github":"https://github.com/nlemoine/wp-cli-move","clone":"git clone https://github.com/nlemoine/wp-cli-move.git","description":"Sync your WordPress content (database and uploads) between stages using the power of WP-CLI aliases.","language":"PHP","stars":33,"topics":["sync","wordpress","wp-cli","cli","php","wp-cli-package","database","deployment","migration","rsync"],"license":"MIT","category":"cli-tools","readme_excerpt":"wp-cli-move Sync your WordPress content (database and uploads) between stages using the power of WP-CLI aliases. Install Using composer: Using wp package install : Requirements The requirements must be met on both stages. - SSH access - WP-CLI - mysql/mysqldump - rsync - gzip (optional, can be disabled with the --disable-compress flag) Before running commands, make sure you have WP-CLI aliases set up. This can be done either with the wp cli alias command or by editing your wp-cli.yml file. Once you're done, quickly check that remote WP-CLI commands work as expected: For more information about alias configuration, refer to the following WP-CLI documentation: - https://make.wordpress.org/cli/handbook/guides/running-commands-remotely/#aliases - https://make.wordpress.org/cli/handbook/references/config/ Usage Depending on the sync direction, use either the pull or push commands. If you omit the --db or --uploads flags, both data types will be synced by default. Note that the argument is optional. Configured aliases will be shown in a menu to choose from if left empty. [!CAUTION] Just like any tool that manipulates your data, it's always a good idea to make a backup before running commands . Especially when syncing uploads, which uses the rsync command with the --delete flag under the hood and can wipe all your media files if used incorrectly. Be sure to know what you're doing. Options Both pull and push commands use the same options. - [ ] : The alias you want to sync with. - --d","default_branch":null,"files":null,"tree":[],"storefront":"/r/nlemoine","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nlemoine/wp-cli-move/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}