WP-CLI package command for VirtualHost
Manage multiple WordPress sites in the server.
Demo: https://www.youtube.com/watch?v=d0ozf2JmkOg
$ wp package install miya0001/wp-cli-vhosts:@stable
Place sites
in the .wp-cli/config.yml
.
sites:
- /path/to/example.com/www
- /path/to/example.org/www
- /path/to/example.jp/www
Try wp help vhosts
.
See help:
$ wp help vhosts
Verify WordPress files against WordPress.org's checksums.
$ wp vhosts core verify-checksums
Update all WordPress.
$ wp vhosts core update
Update all plugins in all WordPress sites.
$ wp vhosts plugin update --all
Install jetpack into all WordPress sites.
$ wp vhosts plugin install jetpack
$ git clone [email protected]:miya0001/wp-cli-vhosts.git
Add following into your ~/.wp-cli/config.yml
.
require:
- commands/wp-cli-vhosts/cli.php
$ npm run setup
$ npm test