|
1 | | -# site-command |
| 1 | +# EasyEngine/site-command |
| 2 | + |
| 3 | +Performs basic site functions in easyengine. |
| 4 | + |
| 5 | +`site` command contains following subcommand |
| 6 | + * [ee site create](#ee-site-create) |
| 7 | + * [ee site delete](#ee-site-delete) |
| 8 | + * [ee site disable](#ee-site-disable) |
| 9 | + * [ee site enable](#ee-site-enable) |
| 10 | + * [ee site info](#ee-site-info) |
| 11 | + * [ee site list](#ee-site-list) |
| 12 | + * [ee site start](#ee-site-start) |
| 13 | + * [ee site stop](#ee-site-stop) |
| 14 | + * [ee site restart](#ee-site-restart) |
| 15 | + * [ee site reload](#ee-site-reload) |
| 16 | + |
| 17 | +#### ee site create |
| 18 | +Runs the site creation. |
| 19 | + |
| 20 | +```bash |
| 21 | +ee site create example.com --wp # install wordpress without any page caching |
| 22 | +ee site create example.com --wpredis # install wordpress with page caching |
| 23 | +ee site create example.com --wpsubir # install wpmu-subdirectory without any page caching |
| 24 | +ee site create example.com --wpsubir --wpredis # install wpmu-subdirectory with page caching |
| 25 | +ee site create example.com --wpsubdom # install wpmu-subdomain without any page caching |
| 26 | +ee site create example.com --wpsubdom --wpredis # install wpmu-subdomain with page cache |
| 27 | +``` |
| 28 | + |
| 29 | +#### ee site delete |
| 30 | +Deletes an existing EasyEngine site including the webroot and the database. |
| 31 | + |
| 32 | +_Warning: Doesn't ask for confirmation_ |
| 33 | + |
| 34 | +```bash |
| 35 | +ee site delete example.com |
| 36 | +``` |
| 37 | + |
| 38 | +#### ee site disable |
| 39 | +Disables a website. It will stop all containers which will free up resources used by this site. The site's data stored in the disk will still be safe. |
| 40 | + |
| 41 | +```bash |
| 42 | +ee site disable example.com |
| 43 | +``` |
| 44 | + |
| 45 | +#### ee site enable |
| 46 | +Enables a website. It will start the docker containers of the website if they are stopped. |
| 47 | + |
| 48 | +```bash |
| 49 | +ee site enable example.com |
| 50 | +``` |
| 51 | + |
| 52 | +#### ee site info |
| 53 | +Display all the relevant site information, credentials and useful links. |
| 54 | + |
| 55 | +```bash |
| 56 | +ee site info example.com |
| 57 | +``` |
| 58 | + |
| 59 | +#### ee site list |
| 60 | +Lists the created websites. |
| 61 | + |
| 62 | +```bash |
| 63 | +ee site list |
| 64 | +ee site list --enabled |
| 65 | +ee site list --enabled --format=csv |
| 66 | +``` |
| 67 | + |
| 68 | +#### ee site start |
| 69 | +Starts services associated with site. |
| 70 | + |
| 71 | +```bash |
| 72 | +ee site start example.com # Defaults to all services |
| 73 | +ee site start example.com --nginx |
| 74 | +``` |
| 75 | + |
| 76 | +#### ee site stop |
| 77 | +Stops services associated with site. |
| 78 | + |
| 79 | +```bash |
| 80 | +ee site stop example.com # Defaults to all services |
| 81 | +ee site stop example.com --mailhog |
| 82 | +``` |
| 83 | + |
| 84 | +#### ee site restart |
| 85 | +Restarts containers associated with site. This action will have a few seconds of downtime. |
| 86 | + |
| 87 | +```bash |
| 88 | +ee site restart example.com # Defaults to all services |
| 89 | +ee site restart example.com --nginx |
| 90 | +``` |
| 91 | + |
| 92 | +#### ee site reload |
| 93 | +Reload services in containers without restarting container(s) associated with site. |
| 94 | + |
| 95 | +```bash |
| 96 | +ee site reload example.com # Defaults to all services |
| 97 | +ee site reload example.com --nginx |
| 98 | +``` |
| 99 | + |
0 commit comments