- Write README and document how the tool shoudl work
- Development
- Release
A person using Laravel Homestead to develop or test WordPress sites locally. (Mac OS, Linux)
It's a simple command to install a wp site locally using Laravel Homestead box. Saves you about 1-2 minutes
of manuall work.
npx ez-wp sitename
- Creates entry in
~/Homestead/Homestead.yaml
for sitename (change in options)[^1] - Adds database entry in
~/Homestead/Homestead.yaml
- Creates WP installation folder
./current-path/sitename
- Adds
sitename.test
to your/etc/hosts
file using the IP in yourHomestead.yaml
file - Boots or Reloads vagrant box and adds
--provision
to the vagrant commmand. - Opens Default Browser on
sitename.test
You must have Laravel Homestead installed for the ez-wp
command to work.
Option | Description |
---|---|
-r --root |
. by default, value can be relative path or absiolute path |
-d --domain |
By default will user application name unless specififed |
-wv --wp-v |
lts by default.Allows you to provide wp version |
-p --php-v |
application-name.test will be default if not specified |
-c --cron |
false by default |
-h --homesteadfile |
/Homestead/Homestead.yaml by default unles specifed |