wp Command Examples

The official command-line interface to manage WordPress instances. More information: https://wp-cli.org/.

wp --info

wp cli update

wp core download --locale={{locale}}

wp config create --dbname={{dbname}} --dbuser={{dbuser}} --dbpass={{dbpass}}

wp plugin install {{plugin}} --activate

wp search-replace {{old_string}} {{new_string}}

wp import {{path/to/file.xml}}