WP-CLI command that generates a new VCCW.
Clone or download
miya0001 Merge pull request #7 from mimosafa/fix/template
comment out line that won't be necessary #6
Latest commit 0719e97 Sep 13, 2018

README.md

vccw/scaffold-vccw

Build Status

This is a WP-CLI command that generates a VCCW envirionment.

$ wp scaffold vccw wordpress.dev --lang=ja
Generating:   100% [===========================] 0:03 / 0:06
Success: Generated.

Install

Installing this package requires WP-CLI v0.23.0 or greater. Update to the latest stable release with wp cli update.

Once you've done so, you can install this package with:

$ wp package install vccw/scaffold-vccw:@stable

Usage

NAME

  wp scaffold vccw

DESCRIPTION

  Generate a new VCCW environment.

SYNOPSIS

  wp scaffold vccw <directory> [--host=<hostname>] [--ip=<ip-address>]
  [--lang=<language>] [--update]

OPTIONS

  <directory>
    The directory of the new VCCW based guest machine.

  [--host=<hostname>]
    Hostname of the guest machine. Default is `vccw.test`.

  [--ip=<ip-address>]
    IP address of the guest machine. Default is `192.168.33.10`.

  [--lang=<language>]
    Language of the WordPress. Default is `en_US`.

  [--update]
    Update files of the VCCW to latest version.

EXAMPLES

    $ wp scaffold vccw wordpress.dev
    Generating:   100% [===========================] 0:03 / 0:06
    Success: Generated.

    $ wp scaffold vccw wordpress.dev --lang=ja
    Generating:   100% [===========================] 0:03 / 0:06
    Success: Generated.

Customize your default site.yml

  1. Download default template from GitHub.
  2. Edit it.
  3. Place it under the file name of ~/.wp-cli/vccw.yml.mustache.