Download the PHP package aaemnnosttv/wp-cli-valet-command without Composer

On this page you can find all versions of the php package aaemnnosttv/wp-cli-valet-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-cli-valet-command

aaemnnosttv/wp-cli-valet-command

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

Packagist

Quick links: Contributing

Using

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>] [--dbhost=<dbhost>] [--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.

NB If you have not used valet park for the directory or parent directory you are running the installation in you need to do a valet link to make sure the site will run without running into 404s.

OPTIONS

<name>
    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`

[--project=<project>]
    The WordPress project to install. Choose from any project supported by Laravel Valet.
    ---
    default: wp
    options:
      - wp
      - bedrock
    ---

[--in=<dir>]
    Specify the path to the parent directory to create the install in.
    Defaults to the current working directory.

[--version=<version>]
    WordPress version to install.
    ---
    default: latest
    ---

[--locale=<locale>]
    Select which language you want to install.

[--db=<db>]
    Database driver to provision the site with.
    ---
    default: mysql
    options:
      - mysql
      - sqlite
    ---

[--dbname=<dbname>]
    Database name (MySQL only).
    Defaults to 'wp_<name>'.

[--dbuser=<dbuser>]
    Database User (MySQL only).
    ---
    default: root
    ---

[--dbpass=<dbpass>]
    Set the database user password (MySQL only).
    ---
    Default: ''
    ---

[--dbhost=<dbhost>]
    Set the database host.
    ---
    default: localhost
    ---

[--dbprefix=<dbprefix>]
    Set the database table prefix.
    ---
    default: 'wp_'
    ---

[--admin_user=<username>]
    The username to create for the WordPress admin user.
    ---
    default: admin
    ---

[--admin_password=<password>]
    The password to create for the WordPress admin user.
    ---
    default: admin
    ---

[--admin_email=<email>]
    The email to use for the WordPress admin user.

[--unsecure]
    Provision the site for http rather than https.

[--portable]
    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.

OPTIONS

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

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

Installing

This command leverages Laravel Valet -- an open source development environment for Mac + *nix minimalists.

It runs various commands lightning fast, allowing you to spin up a site in your browser immediately after creating it, without any other configuration, all from a single command.

You should also understand how Valet works, especially the portion on Serving Sites.

Environment Setup

0) MacOS users should install Homebrew first.

1) Follow the Valet installation instructions on the Laravel documentation to get started.

Note: Linux users should use Valet-linux instead, a fork of the original project that shares most of the same valet commands powering this wp-cli plugin.

2) Confirm your wp-cli environment works and meets the minimum version specified below by running wp cli info and proceed if the output looks something like:

Update, if needed, to the latest stable release with wp cli update.

Loading the wp-cli-valet-command package

Installing this package requires WP-CLI v1 || v2 or greater. Update to the latest stable release with wp cli update.

Once you've done so, you can install the latest stable version of this package with:

To install the latest development version of this package, use the following command instead:

Troubleshooting

Error: ERROR 1045 (28000): Access denied for user 'root'@'localhost' The installer halts at the database creation stage because it doesn't have a password for your local MySQL instance.

Prevent this from happening by appending your wp valet commands like such: wp valet new site --dbpass=local_root_password.

At this point, you can: 1) Either create a wp-config.php file manually, 2) use wp configcommand to have wp-cli create one for you, or 3) use wp valet destroy site and try running your wp valet new command again, this time using the --dbpass attribute.

Configuring Alternate Defaults

As with other wp-cli commands, you can set default attributes when running wp valet.

Simply add the appropriate details in ~/.wp-cli/config.yml:

The wp valet new defaults are shown here as an example for clarity.

One simple usage for the config.yml could look like

to enable wp valet new site to spin up a full, live, running local WordPress site in ~3 seconds without any additional parameters.

Support

GitHub issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support

Contributing

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.

For a more thorough introduction, check out WP-CLI's guide to contributing. This package follows those policy and guidelines.

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. Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, review our bug report documentation.

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. See "Setting up" for details specific to working on this package locally.

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.


All versions of wp-cli-valet-command with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
illuminate/container Version >=5.1 <5.7 || ^6.5.1 || ^7 || ^8
symfony/filesystem Version ^2.7 || ^3 || ^4
wp-cli/config-command Version ^1 || ^2
wp-cli/core-command Version ^1 || ^2
wp-cli/db-command Version ^1 || ^2
wp-cli/wp-cli Version ^1 || ^2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aaemnnosttv/wp-cli-valet-command contains the following files

Loading the files please wait ....