Registry / cli / wp-cli-core-command

wp-cli-core-command

JSON →
library2.1.32phppackagistunverified

Downloads, installs, updates, and manages a WordPress installation.

composer require wp-cli/core-command
INSTALL
IMPORT
SIG · WP-CLI-CORE-COMMAN
W
wp-cli-core-command
cliphpv2.1.32
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CoreCommand
use WP_CLI\Commands\CoreCommand;

Download the latest WordPress core using WP-CLI.

use WP_CLI\Commands\CoreCommand; $command = new CoreCommand(); $command->download(['version' => 'latest']);
Debug
Known issues
gotchaRequires WP-CLI environment to function properly.
fix
Ensure WP-CLI is installed and the command is run in a WordPress context.
affects: >=2.0.0
Upgrade
Version history
2.1.32latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources