Download the PHP package leymannx/wp-cli-launcher without Composer

On this page you can find all versions of the php package leymannx/wp-cli-launcher. 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-launcher

WP-CLI Launcher

A small wrapper around WP-CLI for your global $PATH.

Why?

In order to avoid dependency issues, it is best to require WP-CLI on a per-project basis via Composer (composer require wp-cli/wp-cli). This makes WP-CLI available to your project by placing it at vendor/bin/wp.

However, it is inconvenient to type vendor/bin/wp in order to execute WP-CLI commands. By installing the WP-CLI Launcher globally on your local machine, you can simply type wp on the command line, and the launcher will find and execute the project specific version of WP-CLI located in your project's vendor directory.

Installation - Phar

  1. Download latest stable release via CLI (code below) or browse to https://github.com/leymannx/wp-cli-launcher/releases/latest.

    OSX:

    Linux:

  2. Make downloaded file executable:

  3. Move wp-cli.phar to a location listed in your $PATH, rename to wp:

  4. Windows users: create a wp-cli.bat file in the same folder as wp-cli.phar with the following lines. This gets around the problem where Windows does not know that .phar files are associated with php:

Update

The WP-CLI Launcher Phar is able to self update to the latest release.

Alternatives

If you only have one codebase on your system (typical with VMs, Docker, etc,), you should add /path/to/vendor/bin to your $PATH.

Fallback

When a site-local WP-CLI is not found, this launcher usually throws a helpful error. You may avoid the error and instead hand off execution to a global WP-CLI (any version) by doing either of:

  1. Export an environment variable: export WP_CLI_LAUNCHER_FALLBACK=/path/to/wp
  2. Specify an option: --fallback=/path/to/wp

Xdebug compatibility

WP-CLI Launcher, like Composer automatically disables Xdebug by default. This improves performance substantially. You may override this feature by setting an environment variable. WP_CLI_ALLOW_XDEBUG=1 wp [command]

License

GPL-2.0+


All versions of wp-cli-launcher with dependencies

PHP Build Version
Package Version
Requires leymannx/wordpress-finder Version ^0.0.14
padraic/phar-updater Version ^1.0
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 leymannx/wp-cli-launcher contains the following files

Loading the files please wait ....