From e2e8eb0e050ff6f154aac869bfbe9bc41a21d705 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Tue, 3 Mar 2026 10:29:04 +0000 Subject: [PATCH] Regenerate README file - 2026-03-03 --- README.md | 110 +++++++++++++++++++++++++++--------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index e0cdeac0..820b7c51 100644 --- a/README.md +++ b/README.md @@ -248,6 +248,30 @@ for future authorization requests. +### wp package is-installed + +Checks if a given package is installed. + +~~~ +wp package is-installed +~~~ + +Returns exit code 0 when installed, 1 when uninstalled. + +**OPTIONS** + + + The package to check. + +**EXAMPLES** + + # Check whether "foo/bar" is installed; exit status 0 if installed, otherwise 1 + $ wp package is-installed foo/bar + $ echo $? + 1 + + + ### wp package list Lists installed WP-CLI packages. @@ -310,6 +334,37 @@ These fields are optionally available: +### wp package path + +Gets the path to an installed WP-CLI package, or the package directory. + +~~~ +wp package path [] +~~~ + +If you want to contribute to a package, this is a great way to jump to it. + +**OPTIONS** + + [] + Name of the package to get the directory for. + +**EXAMPLES** + + # Get package path. + $ wp package path + /home/person/.wp-cli/packages/ + + # Get path to an installed package. + $ wp package path wp-cli/server-command + /home/person/.wp-cli/packages/vendor/wp-cli/server-command + + # Change directory to package path. + $ cd $(wp package path) && pwd + /home/vagrant/.wp-cli/packages + + + ### wp package update Updates installed WP-CLI packages to their latest version. @@ -376,61 +431,6 @@ wp package uninstall [--insecure] Removing package directories and regenerating autoloader... Success: Uninstalled package. - - -### wp package is-installed - -Checks if a given package is installed. - -~~~ -wp package is-installed -~~~ - -Returns exit code 0 when installed, 1 when uninstalled. - -**OPTIONS** - - - The package to check. - -**EXAMPLES** - - # Check whether "foo/bar" is installed; exit status 0 if installed, otherwise 1 - $ wp package is-installed foo/bar - $ echo $? - 1 - - - -### wp package path - -Gets the path to an installed WP-CLI package, or the package directory. - -~~~ -wp package path [] -~~~ - -If you want to contribute to a package, this is a great way to jump to it. - -**OPTIONS** - - [] - Name of the package to get the directory for. - -**EXAMPLES** - - # Get package path. - $ wp package path - /home/person/.wp-cli/packages/ - - # Get path to an installed package. - $ wp package path wp-cli/server-command - /home/person/.wp-cli/packages/vendor/wp-cli/server-command - - # Change directory to package path. - $ cd $(wp package path) && pwd - /home/vagrant/.wp-cli/packages - ## Installing This package is included with WP-CLI itself, no additional installation necessary.