Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

wpcli-readme

=== WP Cli Exec ===
Contributors: csine
Tags: wpcli, wp-cli, run wpcli
Donate link: https://www.coversine.net
Requires at least: 4.0
Tested up to: 5.0.3
Requires PHP: 5.6
Stable tag: 1.0.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Execute wp-cli commands from within wordpress admin dashboard.

== Description ==
WP-CLI is a powerful command line interface for WordPress, that allows scripted execution of many administration related tasks. 

Normally, these commands are executed via an OS shell like `bash` in Linux or `powershell` in Windows. But sometimes there is a need to run wp-cli commands via web browser, like when you are on a shared hosting and/or cannot access the server shell.

This plugin has the following requirements:
* The `exec`  PHP function must be enabled
* WP-CLI must be installed on the server, as per guidelines on this page.

== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/wp-cli-exec` directory, or install the plugin zip file, through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to `Tools->Wp Cli Exec` screen to start executing wpcli commands.

== Frequently Asked Questions ==
= Is this plugin safe? =
Yes, this plugin is safe to use, and is only available to administrators - for obvious reasons. Any plugin code is only as safe as your current web-host security configuration. So choose your web-host carefully!

= Why would I need this plugin? =
If you already have shell access to your hosting server, then you don't need this plugin. But if you are on a shared hosting platform (eg. Plesk) with no command-line access, then `wp-cli exec` can help you in scripting repetitive WordPress tasks via WP-CLI.



== Screenshots ==
1. main command editor and results screen

== Changelog ==
= 1.0.0 =
First version

== Upgrade Notice ==
Pending...