WP-CLI Redeploy Command
This WP-CLI command allows you to redeploy an existing publication using the currently active deployment method from the command-line.
Note: WP-CLI is a command-line interface for WordPress that makes many tasks easier. See wp-cli.org for more information.
Syntax
The basic command to start a publication is as follows:
wp staatic redeploy <id>
Setting up
Initializing deployment
Initializing indexer
Deploying WordPress site
Deploying... 100% [=======================] 0:00 / 0:00
Indexing WordPress site
Finishing deployment
Finishing indexer
Finishing
Success: Publication finished in 3 seconds!
Options
There are several options available when running the publish command, which are all optional:
--[no-]force
: Whether or not to force publishing, even if another publication is in progress.--[no-]verbose
: Whether or not to output logs during publication.
Examples
wp staatic redeploy abc-def-123 --verbose