wp help

Get help on WP-CLI, or on a specific command.

Usage

wp help [{command}...]

You can specify global options and the following:

[{command}...]
Get help on a specific command.

Examples

# get help for `core` command
wp help core
# get help for `core download` subcommand
wp help core download
# get help for eval command
wp help eval

# result
NAME
  wp eval
DESCRIPTION
  Executes arbitrary PHP code.
SYNOPSIS
  wp eval <php-code> [--skip-wordpress]
  Note: because code is executed within a method, global variables need
  to be explicitly globalized.
OPTIONS
  <php-code>
	The code to execute, as a string.
  [--skip-wordpress]
	Execute code without loading WordPress.
EXAMPLES
	# Display WordPress content directory.
	$ wp eval 'echo WP_CONTENT_DIR;'
	/var/www/wordpress/wp-content
	# Generate a random number.
	$ wp eval 'echo rand();' --skip-wordpress
	479620423
GLOBAL PARAMETERS
  --path=<path>
	  Path to the WordPress files.
  --url=<url>
	  Pretend request came from given URL. In multisite, this argument is how the target site is specified.
  etc ...

Source code of the commands