Skip to content

Your EMCP guide

Answers from our docs

YOUR CHAT, YOUR CHOICE

Before we chat

MSR Builds processes your question and up to four recent messages on our server to answer from the EMCP docs. AI is optional and needs your separate permission.

The chat is kept in this page's memory, not saved as a conversation in our database or browser storage. Our hosting and security services process connection information, such as your IP address, to prevent abuse.

Cloudflare Turnstile checks your browser and connection to prevent automated abuse when you send a question. No login is required.

Please leave out personal, sensitive or confidential information, passwords and API keys.

You can withdraw consent and clear this page's chat at any time. This cannot undo a request already sent or erase provider/security records.

Chat privacy, retention & your rights ↗ · Privacy contact

Starting chat consents to this processing. You can browse our docs without using the chat.

WP-CLI execution

New in v3.4.0. Free, ships disabled by default. Lets a connected agent run wp-cli commands directly, synchronously for quick lookups, or as a detached background job for long migrations and bulk tasks.

Runs a command synchronously and returns stdout, stderr, and the exit code. Runs in-process over the WP-CLI stdio transport, or via a configured wp binary over HTTP.

Input: command (required) is the command without the leading wp (e.g. "plugin list --format=json"). timeout sets the max seconds on the shell path, default 60, max 300.

Runs a command as a detached background job, for long migrations or bulk tasks, and returns a job id. Requires a configured wp base command. Poll it with get-wp-cli-job.

Input: command (required). timeout sets the advisory max seconds, default 900.

Returns a background job’s status (running / completed / failed), exit code, and captured stdout/stderr. Read-only.

Input: job_id (required).

Lists background jobs. Read-only.

Over HTTP, run-wp-cli and dispatch-wp-cli need to know how to start WP-CLI on your server. Set it on EMCP Tools → Connection → 3rd-party services, in the WP-CLI card, field WP-CLI command (for example wp, or php /path/to/wp-cli.phar), then choose Save changes. Leave it empty to run the tools in-process only, which works when the agent is connected over the WP-CLI stdio transport. The EMCP_TOOLS_WPCLI_COMMAND constant in wp-config.php also sets it, and the field then shows “Set in wp-config.php”.

All four are off until enabled on EMCP Tools → Tools: go to the WordPress tab, find the WP-CLI section, switch on the ones you want, then choose Save changes in the save bar. See Disabling tools. Given the blocklist still allows a wide range of wp-cli subcommands (plugin/theme management, user operations, cron, transients, and more), treat enabling these the same as granting shell-adjacent access, only turn them on for agents and sites you trust.