Use the Ghost CMS CLI from KosmoKrator to call Ghost CMS tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Ghost CMS can be configured headlessly with `kosmokrator integrations:configure ghost`.
# 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 ghost --set api_key="$GHOST_API_KEY" --set url="$GHOST_URL" --enable --read allow --write ask --jsonkosmokrator integrations:doctor ghost --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
GHOST_API_KEY
Secret secret
yes
Admin API Key
url
GHOST_URL
URL url
yes
API Base URL
Call Ghost CMS Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Ghost CMS.
ghost.ghost_list_posts
Read read
List blog posts from Ghost CMS. Supports filtering by tag, author, status, and free-text search. Returns paginated results with post titles, slugs, status, and metadata.
Parameters
page, limit, filter, tag, author, status, order, fields, include
List newsletter members from Ghost CMS. Supports filtering by subscription status, email search, and pagination. Returns member names, emails, labels, and subscription info.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
ghost.ghost_list_posts
List blog posts from Ghost CMS. Supports filtering by tag, author, status, and free-text search. Returns paginated results with post titles, slugs, status, and metadata.
Ghost filter syntax, e.g. "status:published" or "slug:about". Use `+` for AND, `,` for OR.
status
string
no
Filter by page status. Shorthand for filter "status:{value}".
order
string
no
Sort order (default: "published_at desc"). Examples: "title asc", "created_at desc".
fields
string
no
Comma-separated list of fields to return (e.g. "id,title,slug,status").
include
string
no
Comma-separated related data to include: "tags", "authors", "tags,authors".
ghost.ghost_list_members
List newsletter members from Ghost CMS. Supports filtering by subscription status, email search, and pagination. Returns member names, emails, labels, and subscription info.
Comma-separated list of fields to return (e.g. "id,name,email,role").
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.