Cogny CLI · CMS

    Ghost from your shell.

    List and write Ghost posts and pages, manage tags and members, and read newsletter config — from Bash over the Ghost Admin API MCP. Publish to your publication from a script, no editor tab required.

    # 1. sign up (free for 15 calls) — uses your git email
    $ npx @cogny/cli init --agent claude-code
    
    # 2. see every Ghost tool
    $ cogny tools list
    
    # 3. call any tool from Bash — no MCP wiring
    $ cogny tools call mcp__Ghost__list_posts --input '{…}'
    ❯ start Cogny Solo — $9/mo@cogny/cli on npm →

    cogny --who

    TWO PATHS
    You're a human

    Drafting and scheduling in the Ghost editor is one post at a time in the browser. The CLI lets an agent draft, tag, and publish posts programmatically and pull your member list as JSON. Connect Ghost once in Cogny Solo and let your coding agent — or scheduled reports — do the querying for you.

    ❯ start Solo
    You're an agent

    Self-onboard with one command. The CLI issues a key, wires nothing, and exposes every Ghost tool over JSON-RPC. First 15 calls are free.

    $ npx @cogny/cli init --agent claude-code

    cogny tools call

    3 EXAMPLES

    Real tool names from the Ghost MCP. Send --input JSON, get JSON back.

    mcp__Ghost__list_postsList posts with status and metadata.
    $ cogny tools call mcp__Ghost__list_posts \
      --input '{"limit":2,"status":"published"}'
    example response
    {
      "posts": [
        {
          "id": "65f1a",
          "title": "Why agents pick CLI-native tools",
          "slug": "agents-cli-native",
          "status": "published",
          "published_at": "2026-06-10T08:00:00.000Z"
        },
        {
          "id": "65f0b",
          "title": "Reporting without dashboards",
          "slug": "reporting-without-dashboards",
          "status": "published",
          "published_at": "2026-06-03T08:00:00.000Z"
        }
      ],
      "meta": {
        "pagination": {
          "page": 1,
          "limit": 2,
          "total": 88
        }
      }
    }
    mcp__Ghost__create_postCreate a draft post with HTML and tags.
    $ cogny tools call mcp__Ghost__create_post \
      --input '{"title":"CLI-first content ops","html":"<p>Draft body…</p>","status":"draft","tags":["product"]}'
    example response
    {
      "id": "66ab9",
      "title": "CLI-first content ops",
      "slug": "cli-first-content-ops",
      "status": "draft",
      "url": "https://blog.acme.com/p/66ab9/"
    }
    mcp__Ghost__list_membersList subscribers/members of the publication.
    $ cogny tools call mcp__Ghost__list_members \
      --input '{"limit":2}'
    example response
    {
      "members": [
        {
          "id": "m_01",
          "email": "reader1@example.com",
          "name": "Reader One",
          "subscribed": true,
          "status": "free"
        },
        {
          "id": "m_02",
          "email": "reader2@example.com",
          "name": "Reader Two",
          "subscribed": true,
          "status": "paid"
        }
      ],
      "meta": {
        "pagination": {
          "page": 1,
          "limit": 2,
          "total": 1340
        }
      }
    }

    cogny tools list

    MORE

    A sample of the rest of the Ghost surface. Run cogny tools list --json for every tool and its input schema.

    mcp__Ghost__get_postmcp__Ghost__update_postmcp__Ghost__delete_postmcp__Ghost__list_pagesmcp__Ghost__create_pagemcp__Ghost__list_tagsmcp__Ghost__create_tagmcp__Ghost__get_membermcp__Ghost__list_newsletters

    cogny --faq

    Is this an official Ghost CLI?

    No — the official `ghost` CLI manages self-hosted installs. This is the Cogny CLI calling the Ghost Admin API MCP over the cogny-mcp-proxy: content (posts, pages, tags) and membership tools driven from Bash. Ghost Foundation is not affiliated.

    Can it publish, not just draft?

    Yes. `create_post` / `update_post` accept a status (draft/published) and tags/authors, so an agent can draft, review, and publish to your Ghost site without opening the editor.

    Does it read members for newsletters?

    Yes — `list_members`, `get_member`, and `list_newsletters` expose your subscriber list and newsletter config as JSON, which you can pipe into an ESP or a segmentation step.

    related CLIs

    /cli/wordpress/cli/webflow/cli/mailchimp/cli/search-console

    Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt