KosmoKrator

productivity

WP Engine CLI for AI Agents

Use the WP Engine CLI from KosmoKrator to call WP Engine tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 7 read 0 write Bearer token auth

WP Engine CLI Setup

WP Engine can be configured headlessly with `kosmokrator integrations:configure wp_engine`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure wp_engine --set access_token="$WP_ENGINE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor wp_engine --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token WP_ENGINE_ACCESS_TOKEN Secret secret yes API Token
url WP_ENGINE_URL URL url no API Base URL

Call WP Engine Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call wp_engine.wp_engine_list_sites '{
  "limit": 1,
  "page": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:wp_engine wp_engine_list_sites '{
  "limit": 1,
  "page": 1
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities 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

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to WP Engine.

wp_engine.wp_engine_list_sites

Read read

List WP Engine sites. Supports pagination with limit and page parameters.

Parameters
limit, page

Generic CLI call

kosmo integrations:call wp_engine.wp_engine_list_sites '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:wp_engine wp_engine_list_sites '{"limit":1,"page":1}' --json

wp_engine.wp_engine_get_site

Read read

Get details for a specific WP Engine site by ID.

Parameters
id

Generic CLI call

kosmo integrations:call wp_engine.wp_engine_get_site '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:wp_engine wp_engine_get_site '{"id":"example_id"}' --json

wp_engine.wp_engine_list_installs

Read read

List WP Engine installs. Supports pagination with limit and page parameters.

Parameters
limit, page

Generic CLI call

kosmo integrations:call wp_engine.wp_engine_list_installs '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:wp_engine wp_engine_list_installs '{"limit":1,"page":1}' --json

wp_engine.wp_engine_get_install

Read read

Get details for a specific WP Engine install by ID.

Parameters
id

Generic CLI call

kosmo integrations:call wp_engine.wp_engine_get_install '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:wp_engine wp_engine_get_install '{"id":"example_id"}' --json

wp_engine.wp_engine_list_domains

Read read

List domains across WP Engine installs. Supports pagination with limit and page parameters.

Parameters
limit, page

Generic CLI call

kosmo integrations:call wp_engine.wp_engine_list_domains '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:wp_engine wp_engine_list_domains '{"limit":1,"page":1}' --json

wp_engine.wp_engine_list_users

Read read

List WP Engine users. Supports pagination with limit and page parameters.

Parameters
limit, page

Generic CLI call

kosmo integrations:call wp_engine.wp_engine_list_users '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:wp_engine wp_engine_list_users '{"limit":1,"page":1}' --json

wp_engine.wp_engine_get_current_user

Read read

Get the profile of the currently authenticated WP Engine user. Useful for verifying credentials and displaying account information.

Parameters
none

Generic CLI call

kosmo integrations:call wp_engine.wp_engine_get_current_user '{}' --json

Provider shortcut

kosmo integrations:wp_engine wp_engine_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

wp_engine.wp_engine_list_sites

List WP Engine sites. Supports pagination with limit and page parameters.

Operation
Read read
Schema command
kosmo integrations:schema wp_engine.wp_engine_list_sites --json
ParameterTypeRequiredDescription
limit integer no Number of sites per page (default: 100).
page integer no Page number for pagination (1-indexed, default: 1).

wp_engine.wp_engine_get_site

Get details for a specific WP Engine site by ID.

Operation
Read read
Schema command
kosmo integrations:schema wp_engine.wp_engine_get_site --json
ParameterTypeRequiredDescription
id string yes The site ID.

wp_engine.wp_engine_list_installs

List WP Engine installs. Supports pagination with limit and page parameters.

Operation
Read read
Schema command
kosmo integrations:schema wp_engine.wp_engine_list_installs --json
ParameterTypeRequiredDescription
limit integer no Number of installs per page (default: 100).
page integer no Page number for pagination (1-indexed, default: 1).

wp_engine.wp_engine_get_install

Get details for a specific WP Engine install by ID.

Operation
Read read
Schema command
kosmo integrations:schema wp_engine.wp_engine_get_install --json
ParameterTypeRequiredDescription
id string yes The install ID.

wp_engine.wp_engine_list_domains

List domains across WP Engine installs. Supports pagination with limit and page parameters.

Operation
Read read
Schema command
kosmo integrations:schema wp_engine.wp_engine_list_domains --json
ParameterTypeRequiredDescription
limit integer no Number of domains per page (default: 100).
page integer no Page number for pagination (1-indexed, default: 1).

wp_engine.wp_engine_list_users

List WP Engine users. Supports pagination with limit and page parameters.

Operation
Read read
Schema command
kosmo integrations:schema wp_engine.wp_engine_list_users --json
ParameterTypeRequiredDescription
limit integer no Number of users per page (default: 100).
page integer no Page number for pagination (1-indexed, default: 1).

wp_engine.wp_engine_get_current_user

Get the profile of the currently authenticated WP Engine user. Useful for verifying credentials and displaying account information.

Operation
Read read
Schema command
kosmo integrations:schema wp_engine.wp_engine_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.