KosmoKrator

productivity

Cloudways CLI for AI Agents

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

7 functions 7 read 0 write Bearer token auth

Cloudways CLI Setup

Cloudways can be configured headlessly with `kosmokrator integrations:configure cloudways`.

# 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 cloudways --set access_token="$CLOUDWAYS_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor cloudways --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 CLOUDWAYS_ACCESS_TOKEN Secret secret yes API Key
url CLOUDWAYS_URL URL url no API Base URL

Call Cloudways Headlessly

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

kosmo integrations:call cloudways.cloudways_list_servers '{}' --json

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

kosmo integrations:cloudways cloudways_list_servers '{}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs cloudways --json
kosmo integrations:docs cloudways.cloudways_list_servers --json
kosmo integrations:schema cloudways.cloudways_list_servers --json
kosmo integrations:search "Cloudways" --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 Cloudways.

cloudways.cloudways_list_servers

Read read

List all servers in the Cloudways account.

Parameters
none

Generic CLI call

kosmo integrations:call cloudways.cloudways_list_servers '{}' --json

Provider shortcut

kosmo integrations:cloudways cloudways_list_servers '{}' --json

cloudways.cloudways_get_server

Read read

Get details for a specific Cloudways server.

Parameters
server_id

Generic CLI call

kosmo integrations:call cloudways.cloudways_get_server '{"server_id":1}' --json

Provider shortcut

kosmo integrations:cloudways cloudways_get_server '{"server_id":1}' --json

cloudways.cloudways_list_apps

Read read

List all applications across all servers in the Cloudways account.

Parameters
none

Generic CLI call

kosmo integrations:call cloudways.cloudways_list_apps '{}' --json

Provider shortcut

kosmo integrations:cloudways cloudways_list_apps '{}' --json

cloudways.cloudways_get_app

Read read

Get details for a specific Cloudways application.

Parameters
server_id, app_id

Generic CLI call

kosmo integrations:call cloudways.cloudways_get_app '{"server_id":1,"app_id":1}' --json

Provider shortcut

kosmo integrations:cloudways cloudways_get_app '{"server_id":1,"app_id":1}' --json

cloudways.cloudways_list_domains

Read read

List domains for a specific Cloudways application.

Parameters
server_id, app_id

Generic CLI call

kosmo integrations:call cloudways.cloudways_list_domains '{"server_id":1,"app_id":1}' --json

Provider shortcut

kosmo integrations:cloudways cloudways_list_domains '{"server_id":1,"app_id":1}' --json

cloudways.cloudways_list_projects

Read read

List all projects in the Cloudways account.

Parameters
none

Generic CLI call

kosmo integrations:call cloudways.cloudways_list_projects '{}' --json

Provider shortcut

kosmo integrations:cloudways cloudways_list_projects '{}' --json

cloudways.cloudways_get_current_user

Read read

Get the current authenticated Cloudways account information.

Parameters
none

Generic CLI call

kosmo integrations:call cloudways.cloudways_get_current_user '{}' --json

Provider shortcut

kosmo integrations:cloudways cloudways_get_current_user '{}' --json

Function Schemas

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

cloudways.cloudways_list_servers

List all servers in the Cloudways account.

Operation
Read read
Schema command
kosmo integrations:schema cloudways.cloudways_list_servers --json
ParameterTypeRequiredDescription
No parameters.

cloudways.cloudways_get_server

Get details for a specific Cloudways server.

Operation
Read read
Schema command
kosmo integrations:schema cloudways.cloudways_get_server --json
ParameterTypeRequiredDescription
server_id integer yes The server ID to look up.

cloudways.cloudways_list_apps

List all applications across all servers in the Cloudways account.

Operation
Read read
Schema command
kosmo integrations:schema cloudways.cloudways_list_apps --json
ParameterTypeRequiredDescription
No parameters.

cloudways.cloudways_get_app

Get details for a specific Cloudways application.

Operation
Read read
Schema command
kosmo integrations:schema cloudways.cloudways_get_app --json
ParameterTypeRequiredDescription
server_id integer yes The server ID the application belongs to.
app_id integer yes The application ID to look up.

cloudways.cloudways_list_domains

List domains for a specific Cloudways application.

Operation
Read read
Schema command
kosmo integrations:schema cloudways.cloudways_list_domains --json
ParameterTypeRequiredDescription
server_id integer yes The server ID the application belongs to.
app_id integer yes The application ID to list domains for.

cloudways.cloudways_list_projects

List all projects in the Cloudways account.

Operation
Read read
Schema command
kosmo integrations:schema cloudways.cloudways_list_projects --json
ParameterTypeRequiredDescription
No parameters.

cloudways.cloudways_get_current_user

Get the current authenticated Cloudways account information.

Operation
Read read
Schema command
kosmo integrations:schema cloudways.cloudways_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.