Download the PHP package timneutkens/wp-cli-dbsync without Composer

On this page you can find all versions of the php package timneutkens/wp-cli-dbsync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-cli-dbsync

WP-CLI DB Sync

Remote to local database import tool for wp-cli

This is a wp-cli command version of this gist

Installation

composer require timneutkens/wp-cli-dbsync:^1.0.0

Configuration

This command uses wp-cli-ssh.

To get started use their instructions to setup a remote host:

Add an ssh section to your wp-cli.yml/wp-cli.local.yml, as seen in the sample config. You indicate the ssh command templates for each host you want to connect to. The template variable %cmd% is replaced with the full command to run on the server; the %pseudotty% template variable is replaced with -t/-T depending on whether you're on a TTY or piping the command output.

For a step-by-step guide, please refer to the wiki.

Now you can run the following command:

wp dbsync <host here>

The command will import the database. After that it will search replace the old home url to the new home url using wp search-replace. The new home url will be guessed using wp option get home. Beware that if you define WP_HOME this command will return that url instead of the url set in the wp_options table. Optionally you can provide --new-base-url=http://example.com to override this behaviour.

Replace <host here> with the host you just setup in your wp-cli.yml/wp-cli.local.yml.


All versions of wp-cli-dbsync with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
wp-cli/wp-cli Version ~1.5.1
x-team/wp-cli-ssh Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package timneutkens/wp-cli-dbsync contains the following files

Loading the files please wait ....