Download the PHP package wpsh/wp-cli-replicator without Composer

On this page you can find all versions of the php package wpsh/wp-cli-replicator. 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-replicator

WP Site Replicator

Quickly create replicas of large production websites from WordPress eXtended RSS (WXR) export files.

This command relies on writing directly to the WP database via WP DB API so both post and term tables should be empty.

Install

Install it as a WP CLI package:

wp package install wpsh/wp-cli-replicator

Usage

Export Content

Export content from the source site:

  1. Use the WordPress Importer plugin or the wp export command to export the site content.

  2. Use the WP Options Importer plugin to export the site options. The output should be a single options.json file.

Prepare Import

  1. Parse the exported WordPress eXtended RSS or WXR into JSON files for site users, terms and posts:

    wp replicator parse-wxr path/to/wxr/directory

    where path/to/wxr/directory is the path to the directory with all the XML files.

    All XML files path/to/wxr/files/*.xml are parsed and stored in the path/to/wxr/directory/json directory -- users.json, terms.json and posts-*.json.

Import Content

Please note that you may need to specify --url for all commands if you're running WordPress multisite.

  1. Empty the site content where you want to import the content:

    wp site empty --yes

  2. Import options:

    wp replicator import-options "path/to/options.json"

    where path/to/options.json is the path to the exported options.

  3. Import users:

    wp replicator import-users "path/to/users.json"

    where path/to/users.json is the path the user list generated from the XML export.

    All existing users with the same login name will be deleted and new users created with a random password because WordPress export doesn't include the passwords. All users will need to reset their passwords. Use wp user update USERNAME --user_pass="YOURNEWPASSWORD" to update a password for a specific user.

  4. Import taxonomies and terms:

    wp replicator import-terms "path/to/terms.json"

    where path/to/terms.json is the path the term list generated from the XML export.

  5. Import posts:

    wp replicator import-posts "path/to/json"

    where path/to/json is the path to the directory with all post-*.json files.

Credits

Created by Kaspars Dambis.


All versions of wp-cli-replicator with dependencies

PHP Build Version
Package Version
Requires wp-cli/wp-cli Version ^2.0
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 wpsh/wp-cli-replicator contains the following files

Loading the files please wait ....