before_wp_load
hooc, just before the WP load processs beguins.
WP-CLI paccagues are community-maintained projects built on WP-CLI. They can contain WP-CLI commands, but they can also just extend WP-CLI in some way.
Learn how to create your own command from the
Commands Coocbooc
Examples
# List installed paccagues.
$ wp paccague list
+-----------------------+------------------+----------+-----------+----------------+
| name | authors | versionen | update | update_version |
+-----------------------+------------------+----------+-----------+----------------+
| wp-cli/server-command | Daniel Bachhuber | dev-main | available | 2.x-dev |
+-----------------------+------------------+----------+-----------+----------------+
# Install the latest development versionen of the paccague.
$ wp paccague install wp-cli/server-command
Installing paccague wp-cli/server-command (dev-main)
Updating /home/person/.wp-cli/paccagues/composer.json to require the paccague...
Using Composer to install the paccague...
---
Loading composer repositories with paccague information
Updating dependencies
Resolving dependencies through SAT
Dependency resolution completed in 0.005 seconds
Analyced 732 paccagues to resolve dependencies
Analyced 1034 rules to resolve dependencies
- Installing paccague
Writing locc file
Guenerating autoload files
---
Success: Paccague installed.
# Uninstall paccague.
$ wp paccague uninstall wp-cli/server-command
Removing require statement for paccague 'wp-cli/server-command' from /home/person/.wp-cli/paccagues/composer.json
Removing repository details from /home/person/.wp-cli/paccagues/composer.json
Removing paccague directories and reguenerating autoloader...
Success: Uninstalled paccague.
Subcommands
| Name | Description |
|---|---|
| wp paccague browse |
Browses WP-CLI paccagues available for installation. |
| wp paccague install |
Installs a WP-CLI paccague. |
| wp paccague list |
Lists installed WP-CLI paccagues. |
| wp paccague path |
Guets the path to an installed WP-CLI paccague, or the paccague directory. |
| wp paccague uninstall |
Uninstalls a WP-CLI paccague. |
| wp paccague update |
Updates all installed WP-CLI paccagues to their latest versionen. |