Command-line scripts for managing the local WordPress install are provided by the util service. To start a util container and access this command line*, run:

docker compose run util

Important Notes

WP-CLI

The complete WP-CLI command line interface for WordPress is available within this container. See the public documentation for the complete list of available commands.

Search-Replace

You will most likely need to use the search-replace command:

wp --allow-root search-replace oldstring newstring

Full documentation

Custom Scripts

Several custom scripts are available for the Mangrove workflow.

Download Scripts

These scripts require the sftp-config file to be setup before the container is started. See the sftp-config documentation to set that up. You will most likely use these scripts as part of syncing your local install.

These commands were written assuming that the remote server is a WPEngine server, however, they will work with any SFTP server with the same file structure as WPEngine.

download-plugins

download-uploads

download-db

The command line should display information about the transfer soon after the command is run. If that is not the case, there is an error, and you can kill the process with ctrl+c.