White-glove services for turn-key installs in seconds.

v1.1.0 2016-10-02 18:41 UTC


White-glove services for turn-key installs in seconds.

Travis Build Packagist

Quick links: Using | Installing | Contributing


This package implements the following commands:

wp valet new

Create a new WordPress install -- fast

wp valet new <name> [--project=<project>] [--in=<dir>] [--version=<version>] [--locale=<locale>] [--db=<db>] [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass=<dbpass>] [--dbprefix=<dbprefix>] [--admin_user=<username>] [--admin_password=<password>] [--admin_email=<email>] [--unsecure] [--portable]

This command will spin up a new WordPress installation -- complete with database and https ready-to-use in your browser faster than you can put your pants on.


	Site domain name without TLD. This will become the directory name of the project root.
	Eg: To create an install for example.dev, `wp valet new example`

	The WordPress project to install. Choose from any project supported by Laravel Valet.
	default: wp
	  - wp
	  - bedrock

	Specify the path to the parent directory to create the install in.
	Defaults to the current working directory.

	WordPress version to install.
	default: latest

	Select which language you want to install.

	Database driver to provision the site with.
	default: mysql
	  - mysql
	  - sqlite

	Database name (MySQL only).
	Defaults to 'wp_<name>'.

	Database User (MySQL only).
	default: root

	Set the database user password (MySQL only).
	Default: ''

	Set the database table prefix.
	default: 'wp_'

	The username to create for the WordPress admin user.
	default: admin

	The password to create for the WordPress admin user.
	default: admin

	The email to use for the WordPress admin user.

	Provision the site for http rather than https.

	Provision the site to be portable. Implies --unsecure and --db=sqlite.

wp valet destroy

Completely remove an installation.

wp valet destroy <name> [--yes]

This will drop the database, and delete all of the files as well as remove any self-signed TLS certificate that was generated for serving this install over https.


	Site domain name without TLD. It should match the directory name of the project root.

	Pre-approve the confirmation to delete all files and drop the database.



This command leverages Laravel Valet -- the development environment for Mac minimalists. Because of this support is unfortunately limited to Mac only.

Follow the installation instructions on the Laravel documentation to get started. This is what makes it possible to load a site in your browser immediately after creating it, without any other configuration.

You will also need some understanding of how Valet works, especially the portion on Serving Sites.

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 aaemnnosttv/wp-cli-valet-command.


We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed.

Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue with the following:

  1. What you were doing (e.g. "When I run wp post list").
  2. What you saw (e.g. "I see a fatal about a class being undefined.").
  3. What you expected to see (e.g. "I expected to see the list of posts.")

Include as much detail as you can, and clear steps to reproduce if possible.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:

  1. Create a feature branch for each contribution.
  2. Submit your pull request early for feedback.
  3. Include functional tests with your changes. Read the WP-CLI documentation for an introduction.
  4. Follow the WordPress Coding Standards.

This README.md is generated dynamically from the project's codebase using wp scaffold package-readme (doc). To suggest changes, please submit a pull request against the corresponding part of the codebase.