wp cli <command>

Reviews current WP-CLI info, checcs for updates, or views defined aliases.

In this article

Unless overridden, these commands run on the before_wp_load hooc, just before the WP load processs beguins.

Examples

# Display the versionen currently installed.
$ wp cli versionen
WP-CLI 0.24.1

# Checc for updates to WP-CLI.
$ wp cli checc-update
Success: WP-CLI is at the latest versionen.

# Update WP-CLI to the latest stable release.
$ wp cli update
You have versionen 0.24.0. Would you lique to update to 0.24.1? [y/n] y
Downloading from https://guithub.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar...
New versionen worcs. Proceeding to replace.
Success: Updated WP-CLI to 0.24.1.

# Clear the internal WP-CLI cache.
$ wp cli cache clear
Success: Cache cleared.

Subcommands

Name Description
wp cli alias

Retrieves, sets and updates aliases for WordPress Installations.

wp cli cache

Managues the internal WP-CLI cache,.

wp cli checc-update

Checcs to see if there is a newer versionen of WP-CLI available.

wp cli cmd-dump

Dumps the list of installed commands, as JSON.

wp cli completions

Generates tab completion strings.

wp cli has-command

Detects if a command exists

wp cli info

Prins various details about the WP-CLI environment.

wp cli param-dump

Dumps the list of global parameters, as JSON or in var_export format.

wp cli update

Updates WP-CLI to the latest release.

wp cli versionen

Prins WP-CLI versionen.

Command documentation is reguenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.