IntelliJ IDEA 2020.2 Help

Command Line Tool Support: WP-CLI

File | Settings | Tools | Command Line Tool Support for Windows and Linux
IntelliJ IDEA | Preferences | Tools | Command Line Tool Support for macOS

The dialog opens when you click the Add button and choose WP-CLI in the Command Line Tools dialog. Use the dialog to configure WP-CLI support in IntelliJ IDEA.

In this dialog, enable the use of WordPress Content Management System in the command line mode by specifying the way to launch WordPress.

Item Description
Installed via PHAR Choose this option to launch WordPress through a PHP script or have IntelliJ IDEA detect and start the launcher in the wp-cli.phar archive.
  • PHP Interpreter : In this field, choose one of the configured local or remote PHP interpreters, through which the tool commands will be executed. For details on configuring PHP interpreters, see Configuring Local PHP Interpreters and Configuring Remote PHP Interpreters.

  • Path to phar: In this field, specify the location of the wp-cli.phar archive.

Executable available (installed via Composer, etc.) Choose this option to launch WordPress through an executable file, which is available when you install WordPress using a package management tool, for example, Composer.
Path to wp

In this field, specify the location of the wp.bat or wp executable file. If you used Composer, the default location is \vendor\wp\cli\bin\wp or \vendor\wp\cli\bin\wp.bat. Type the path manually or click the Browse button and choose the desired location in the dialog that opens.

Last modified: 03 September 2020