Migrations Technical
| ⇧ | Overview | Configuration | Use cases | Tenants | Technical |
|---|
Web services
Command-line interface
The following commands will allow you to perform export and import from CLI:
php admin/tool/wp/cli/export.php
php admin/tool/wp/cli/import.php
Use the --help parameter to display all the available options, alongside a short description of each parameter. Exporter and importer-specific parameters are passed as JSON-encoded strings.
The two migration CLIs support interactive and non-interactive modes.
During interactive mode, you will be asked various questions, such as the program name to be exported, and you have to confirm actions, such as the usage of default values. This is particularly useful during one-off operations and when testing new processes.
In non-interactive mode, no questions are asked, no confirmations are needed, and default values are used. It is intended for usage in scripts to automate regular processes fully.
When run in interactive mode, the non-interactive counterpart, that is, the valid command will be displayed. That way, you can create your command step by step and, once completed, use it in your shell scripts.