Skip to content

miya0001/wp-cli-vhosts

Repository files navigation

wp vhosts <sub-command>

Build Status

Manage multiple WordPress sites in the server.

Demo: https://www.youtube.com/watch?v=d0ozf2JmkOg

Requires

  • WP-CLI 0.23 or later

Install

$ wp package install miya0001/wp-cli-vhosts:@stable

Configuration

Place sites in the .wp-cli/config.yml.

sites:
  - /path/to/example.com/www
  - /path/to/example.org/www
  - /path/to/example.jp/www

http://wp-cli.org/config/

Sub commands

  • wp vhosts core
  • wp vhosts core language
  • wp vhosts plugin
  • wp vhosts theme
  • wp vhosts add

Try wp help vhosts.

Examples

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

How to contribute

Clone this repository

$ git clone git@github.com:miya0001/wp-cli-vhosts.git

Manually activate

Add following into your ~/.wp-cli/config.yml.

require:
  - commands/wp-cli-vhosts/cli.php

Automated testing

$ npm run setup
$ npm test