11# WP-CLI Valet Command
22
3- Harness the power of Laravel Valet for creating fully functional WordPress installs in seconds.
3+ White-glove services for turn-key installs in seconds.
44
55[ ![ Build Status] ( https://travis-ci.org/aaemnnosttv/wp-cli-valet-command.svg?branch=master )] ( https://travis-ci.org/aaemnnosttv/wp-cli-valet-command )
66
@@ -15,15 +15,20 @@ This package implements the following commands:
1515Create a new WordPress install -- fast
1616
1717~~~
18- wp valet new <domain > [--project=<project>] [--version=<version>] [--locale=<locale>] [--db=<db>] [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass=<dbpass>] [--dbprefix=<dbprefix>] [--admin_user=<username>] [--admin_password=<password>] [--admin_email=<email>] [--unsecure]
18+ wp valet new <name > [--project=<project>] [--version=<version>] [--locale=<locale>] [--db=<db>] [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass=<dbpass>] [--dbprefix=<dbprefix>] [--admin_user=<username>] [--admin_password=<password>] [--admin_email=<email>] [--unsecure]
1919~~~
2020
21+ This command will spin up a new WordPress installation -- complete with database and https
22+ _ ready-to-use in your browser_ faster than you can put your pants on.
23+
2124** OPTIONS**
22- <domain >
23- Site domain name without TLD. Eg: example.com = example
25+
26+ <name>
27+ Site domain name without TLD.
28+ Eg: To create an install for example.dev, `wp valet new example`
2429
2530 [--project=<project>]
26- Composer project to use instead of vanilla WordPress .
31+ The WordPress project to install. Choose from any project supported by Laravel Valet .
2732 ---
2833 default: wp
2934 options:
@@ -32,16 +37,16 @@ wp valet new <domain> [--project=<project>] [--version=<version>] [--locale=<loc
3237 ---
3338
3439 [--version=<version>]
35- WordPress version to install
40+ WordPress version to install.
3641 ---
3742 default: latest
3843 ---
3944
4045 [--locale=<locale>]
41- Select which language you want to install
46+ Select which language you want to install.
4247
4348 [--db=<db>]
44- Database driver
49+ Database driver to provision the site with.
4550 ---
4651 default: mysql
4752 options:
@@ -50,10 +55,11 @@ wp valet new <domain> [--project=<project>] [--version=<version>] [--locale=<loc
5055 ---
5156
5257 [--dbname=<dbname>]
53- Database name (MySQL only). Default: 'wp_{domain}'
58+ Database name (MySQL only).
59+ Defaults to 'wp_<name>'.
5460
5561 [--dbuser=<dbuser>]
56- Database User (MySQL only)
62+ Database User (MySQL only).
5763 ---
5864 default: root
5965 ---
@@ -65,7 +71,7 @@ wp valet new <domain> [--project=<project>] [--version=<version>] [--locale=<loc
6571 ---
6672
6773 [--dbprefix=<dbprefix>]
68- Set the database table prefix. Default: 'wp_'
74+ Set the database table prefix.
6975 ---
7076 default: 'wp_'
7177 ---
@@ -92,22 +98,37 @@ wp valet new <domain> [--project=<project>] [--version=<version>] [--locale=<loc
9298
9399### wp valet destroy
94100
95- Blow away an installation.
101+ Completely remove an installation.
96102
97103~~~
98104wp valet destroy <name> [--yes]
99105~~~
100106
107+ This will drop the database, and delete all of the files as well as
108+ remove any self-signed TLS certificate that was generated for serving
109+ this install over https.
110+
101111** OPTIONS**
102112
103113 <name>
104- Site domain name without TLD. Eg: example.com = example
114+ Site domain name without TLD.
115+ Eg: To create an install for example.dev, `wp valet new example`
105116
106117 [--yes]
107- Pre-approve the confirmation to delete all files and drop database.
118+ Pre-approve the confirmation to delete all files and drop the database.
108119
109120## Installing
110121
122+ ### Prerequisites
123+
124+ This command leverages [ Laravel Valet] ( https://laravel.com/docs/5.2/valet#installation ) -- the development environment for Mac minimalists.
125+ Because of this ** support is unfortunately limited to Mac only** .
126+
127+ Follow the [ installation instructions] ( https://laravel.com/docs/5.2/valet#installation ) on the Laravel documentation to get started.
128+ This is what makes it possible to load a site in your browser immediately after creating it, without any other configuration.
129+
130+ You will also need some understanding of how Valet works, especially the portion on [ Serving Sites] ( https://laravel.com/docs/5.2/valet#serving-sites ) .
131+
111132Installing this package requires WP-CLI v0.23.0 or greater. Update to the latest stable release with ` wp cli update ` .
112133
113134Once you've done so, you can install this package with ` wp package install aaemnnosttv/wp-cli-valet-command ` .
0 commit comments