Download the PHP package n5s/wp-cli-move without Composer

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

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.

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:

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 <alias> 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.

[!NOTE] Each time you sync your database from one stage to another, wp-cli-move will locally backup the database of the synced stage (a local database dump when pulling, a remote database dump when pushing).

Examples

Pulling content

Pull your production content to your local environment:

[!TIP] Using @ as declared in wp-cli.yml is optional. For example, production and @production will resolve the same alias.

Pushing content

Push your local content to your staging environment:

Credits

This WP-CLI package aims to replace the (still working but unmaintained) awesome Wordmove Ruby gem 💎. It has been a time and life saver for many years. I'll be forever grateful to @alessandro-fazzi for creating it! 🙌

Although Wordmove is a great and handy tool for your daily WordPress work, some reasons led me to come with a simpler, more WordPress flavoured alternative:


All versions of wp-cli-move with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 n5s/wp-cli-move contains the following files

Loading the files please wait ....