We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e516414 commit 4c68c26Copy full SHA for 4c68c26
php/commands/src/CLI_Command.php
@@ -615,6 +615,14 @@ private function get_update_type_str( $assoc_args ) {
615
* $ echo $?
616
* 1
617
*
618
+ * # Install a WP-CLI package if not already installed
619
+ * $ if ! $(wp cli has-command doctor); then wp package install wp-cli/doctor-command; fi
620
+ * Installing package wp-cli/doctor-command (dev-main || dev-master || dev-trunk)
621
+ * Updating /home/person/.wp-cli/packages/composer.json to require the package...
622
+ * Using Composer to install the package...
623
+ * ---
624
+ * Success: Package installed.
625
+ *
626
* @subcommand has-command
627
628
* @when after_wp_load
0 commit comments