wp help
Получить справку по WP-CLI или по определенной команде.
Использование
wp help [{command}...]
Можно указать Глобальные параметры и следующие:
- [{command}...]
- Название команды, по которой нужно получить справку.
Примеры
# 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 # ответ 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. и т.д. ...