cms
Ghost CMS CLI for Headless Automation
Use the Ghost CMS CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write API key auth
Ghost CMS CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The Ghost CMS CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Ghost CMS CLI for Headless Automation
kosmokrator integrations:configure ghost --set api_key="$GHOST_API_KEY" --set url="$GHOST_URL" --enable --read allow --write ask --json
kosmo integrations:call ghost.ghost_list_posts '{"page":1,"limit":1,"filter":"example_filter","tag":"example_tag","author":"example_author","status":"example_status","order":"example_order","fields":"example_fields"}' --json Discovery Before Execution
Agents and scripts can inspect Ghost CMS docs and schemas before choosing a function.
kosmo integrations:docs ghost --json
kosmo integrations:docs ghost.ghost_list_posts --json
kosmo integrations:schema ghost.ghost_list_posts --json
kosmo integrations:search "Ghost CMS" --json
kosmo integrations:list --json Useful Ghost CMS CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
ghost.ghost_list_posts | Read | page, limit, filter, tag, author, status, order, fields, include | 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.ghost_get_post | Read | id, fields, include, formats | Get a single Ghost blog post by ID. Returns full post content, metadata, tags, and authors. |
ghost.ghost_create_post | Write | title, html, status, featured, tags, authors, excerpt, feature_image | Create a new blog post in Ghost CMS. Supports setting title, HTML content, status (draft or published), featured flag, tags, and authors. |
ghost.ghost_update_post | Write | id, title, html, status, featured, tags, excerpt, feature_image, updated_at | Update an existing blog post in Ghost CMS. Provide the post ID and any fields to change (title, content, status, featured flag, tags). |
ghost.ghost_list_pages | Read | page, limit, filter, status, order, fields, include | List static pages from Ghost CMS. Supports filtering, pagination, and ordering. Pages are non-blog content like "About", "Contact", etc. |
ghost.ghost_list_members | Read | page, limit, filter, order, fields | List newsletter members from Ghost CMS. Supports filtering by subscription status, email search, and pagination. Returns member names, emails, labels, and subscription info. |
ghost.ghost_get_current_user | Read | fields | Get the currently authenticated Ghost admin user. Useful for verifying API credentials and checking user role/permissions. |
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.