BASIC

Terminal

Terminal is a command line inside wp-admin. It keeps its working directory between commands and comes with WP-CLI, so you can run wp commands on hosts that give you no SSH access.

Using it

Type a command and press Enter.

  • ↑ / ↓ recalls earlier commands.
  • clear empties the screen.
  • A command that runs longer than 30 seconds is stopped.

Commands run as the web server's PHP user, with that user's file permissions. Every command, its output and its exit code are written to wp-content/devkit-terminal.log.

WP-CLI

If the server has no wp command, click Install wp-cli. DevKit downloads the official WP-CLI build (about 6 MB) into wp-content/uploads/devkit-cli, and wp then works in the terminal whatever the host provides.

Production sites

Terminal switches itself off on any site that reports itself as production. WordPress reports production whenever WP_ENVIRONMENT_TYPE is not set, so most live sites count.

If a production site really needs it, add this to wp-config.php:

define( 'DEVKIT_TERMINAL_ALLOW_PRODUCTION', true );

This is a wp-config.php constant and not a setting on purpose: someone with a stolen admin password can't turn it on without also having access to the site's files.