PHPackages                             josephdsouza86/wp-sync-db-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. josephdsouza86/wp-sync-db-cli

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

josephdsouza86/wp-sync-db-cli
=============================

WP Sync DB CLI Addon

00PHP

Since Mar 7Pushed 4y agoCompare

[ Source](https://github.com/josephdsouza86/wp-sync-db-cli)[ Packagist](https://packagist.org/packages/josephdsouza86/wp-sync-db-cli)[ RSS](/packages/josephdsouza86-wp-sync-db-cli/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

WP Sync DB CLI
==============

[](#wp-sync-db-cli)

An addon for [WP Sync DB](https://github.com/slang800/wp-sync-db) that allows you to execute migrations using a function call or via WP-CLI

Example usage
-------------

[](#example-usage)

The following two variations of the `wpsdb migrate` command are possible by supplying either a profile id or connection info string.

#### Target a user created profile already stored in the system/database

[](#target-a-user-created-profile-already-stored-in-the-systemdatabase)

`wp wpsdb migrate --profile=1`

**profile** represents the profile number as seen in the Migrate tab's "saved migration profiles" list in WP.

#### Manually target a connection string (no profile)

[](#manually-target-a-connection-string-no-profile)

`wp wpsdb migrate --connection-info=https://example.com\n6AvE1jnBHIZtITuNCXj2eZArNM8uqNXC --action=pull --create-backup=1`

**connection-info** is the string found on the target site's Settings tab. The line break is replaced with the `\n` equivalent character in order to pass the whole string on a single line.

**action** can be set to either `pull` or `push` depending on the direction of the DB sync

**create-backup** is a bit field that indicates whether the DB should be backed up prior to a transfer. This defaults to 1.

#### Target a profile and fallback to a connection string

[](#target-a-profile-and-fallback-to-a-connection-string)

`wp wpsdb migrate --profile=1 --connection-info=https://example.com\n6AvE1jnBHIZtITuNCXj2eZArNM8uqNXC --action=pull --create-backup=1`

In this example we can attempt to target a profile that doesn't yet exist before the migration and instead fallback to the manual profile arguments provided. Once the migration is complete if we re-run this command, then the profile will have been migrated over and this will be used. This is useful from an automation point of view.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25466885?v=4)[Joseph D'Souza](/maintainers/josephdsouza86)[@josephdsouza86](https://github.com/josephdsouza86)

---

Top Contributors

[![notslang](https://avatars.githubusercontent.com/u/1049204?v=4)](https://github.com/notslang "notslang (6 commits)")[![josephdsouza86](https://avatars.githubusercontent.com/u/25466885?v=4)](https://github.com/josephdsouza86 "josephdsouza86 (4 commits)")[![etcook](https://avatars.githubusercontent.com/u/2329397?v=4)](https://github.com/etcook "etcook (1 commits)")

### Embed Badge

![Health badge](/badges/josephdsouza86-wp-sync-db-cli/health.svg)

```
[![Health](https://phpackages.com/badges/josephdsouza86-wp-sync-db-cli/health.svg)](https://phpackages.com/packages/josephdsouza86-wp-sync-db-cli)
```

###  Alternatives

[selective/config

Config component, strictly typed

19194.8k3](/packages/selective-config)[elfsundae/laravel-hashid-uuid

Shorten UUID encoding for Laravel Hashid.

132.7k](/packages/elfsundae-laravel-hashid-uuid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
