Developer Beta: ghst cli

Hi everyone,

Wanted to share a new ghst CLI tool we’ve been working on - as a developer beta - which allows you to interact with Ghost publications from the command line.

In short, this allows you (or an LLM like Claude, or Codex) to automate tasks within Ghost using a set of pre-built tools. Pretty much everything you can do in Ghost Admin, you can do using this CLI.

For example:

  • Create/edit posts and publish them
  • Import or export members
  • Download/upload/activate themes
  • Find out which post got the most traffic last month
  • Post an update to the social web
  • Check your latest newsletter open rate
  • Create a new paid tier or special offer

Here’s a quick demo of how it works:

It’s pretty fun! While the demo shows off a lighthearted example of writing a post about cats, the point of the tool is not “AI can write content for you now” - but rather that you can automate site administration for whatever tasks matter to you.

Personally, I’ve found it really useful for making quick changes and updates to my site, or doing customer (member) support just by saying things like “go and give [Jamie Larson] a complimentary subscription” out loud.

But, this tool does come with a big disclaimer:

:warning: Important warning :warning:

CLI tools are powerful, and ghst includes support for destructive actions, such as deleting posts and members. There are multiple safety features, confirmation steps, and built-in guardrails to avoid accidents, but allowing AI agents to interact with CLI tools always comes with some risk that they may do something you don’t want them to.

For this reason, this tool is currently only recommended for use by developers who are comfortable navigating terminal apps, and LLM / bash permissions.

As always: It’s good practice to make sure you have backups

With that said,

I’ve been using this in production for a few weeks now, and it’s been a great experience so far. I’d love to hear what you think, and any open source contributions are welcomed!

15 Likes

Interesting! If I’m not wrong, it’s sort of a “packaged gctools”? Anyways, I’ll check it out.
Thanks!

1 Like

Well… this is timely!

2 Likes

Funny, I was just stubbing out a workflow in n8n to use as an MCP server. This is a much better path!

1 Like

I currently go from Notion → n8n → Ghost. Would love to see a better way of doing this.

(Notion is where I hold all of my context… not sure if that’s a future Ghost thing)

1 Like

hi @AlanSoon , I think that N8N is a bit old fashioned nowadays. Maybe have a look at claude code and see if how it can connect with notion and ghost so you will have your context and you can publish your articles, do curation, do almost everything honestly.