create-wp-site
is a command line tool to create your local WordPress development
with 10up/wp-local-docker.
This tools is inspired by site creation wizard for VVV by brad/vv.
- NodeJs >= v.6.10.1
- Npm >= v.3.10.10
- Docker
- docker-compose
$ npm install -g create-wp-site
Once installed globally, create-wp-site
should be available from shell.
$ create-wp-site
Usage: create-wp-site [options] [command]
Commands:
info Show information about this tool
create Create new WordPress Site
addhost [options] Add hosts to /etc/hosts or C:/Windows/System32/drivers/etc/hosts, need sudo privileges
Options:
-h, --help output usage information
-V, --version output the version number
Examples:
$ create-wp-site <directory-name>
$ yarn create wp-site <directory-name>
For more help on specific command, supply -h
or --help
.
If you want to contribute or want to compile from the source
$ git clone https://github.com/ivankristianto/create-wp-site.git
$ cd create-wp-site
$ npm install && npm run build
- Clone a repository to
wp-content
- Import SQL File
- Option to remove default themes & plugins
- Option to add
WP_DEBUG
andWP_DEBUG_LOG
- Option to enable multisite subdirectory / subdomain
- Command to compress everything
Note: Pull requests and any feedbacks are always welcome!
- This is not tested on Windows platform yet.
MIT