productivity
WP Engine CLI for Shell Scripts
Use the WP Engine CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 7 read 0 write Bearer token auth
WP Engine CLI for Shell Scripts
Call integration functions from shell scripts with stable JSON input and output.
Use shell scripts for small local automations that need one or more integration calls. The WP Engine CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# WP Engine CLI for Shell Scripts
kosmokrator integrations:configure wp_engine --set access_token="$WP_ENGINE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call wp_engine.wp_engine_list_sites '{"limit":1,"page":1}' --json Discovery Before Execution
Agents and scripts can inspect WP Engine docs and schemas before choosing a function.
kosmo integrations:docs wp_engine --json
kosmo integrations:docs wp_engine.wp_engine_list_sites --json
kosmo integrations:schema wp_engine.wp_engine_list_sites --json
kosmo integrations:search "WP Engine" --json
kosmo integrations:list --json Useful WP Engine CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
wp_engine.wp_engine_list_sites | Read | limit, page | List WP Engine sites. Supports pagination with limit and page parameters. |
wp_engine.wp_engine_get_site | Read | id | Get details for a specific WP Engine site by ID. |
wp_engine.wp_engine_list_installs | Read | limit, page | List WP Engine installs. Supports pagination with limit and page parameters. |
wp_engine.wp_engine_get_install | Read | id | Get details for a specific WP Engine install by ID. |
wp_engine.wp_engine_list_domains | Read | limit, page | List domains across WP Engine installs. Supports pagination with limit and page parameters. |
wp_engine.wp_engine_list_users | Read | limit, page | List WP Engine users. Supports pagination with limit and page parameters. |
wp_engine.wp_engine_get_current_user | Read | none | Get the profile of the currently authenticated WP Engine user. Useful for verifying credentials and displaying account information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.