Creating Blog Posts from the Terminal with Claude Code

Brent Peterson | 1 min read

The Problem with Traditional Blogging

Every time I wanted to publish a blog post, I had to leave my development environment. Open a browser. Log into the CMS. Copy paste content. Format it. Add tags. Click publish.

That workflow is broken.

Terminal to Blog in One Command

I built a system that lets me create and publish blog posts directly from Claude Code. No browser. No CMS login. Just a curl command and done.

The workflow is simple:

  1. Write content in the terminal (Claude helps with this)
  2. Claude formats it as HTML
  3. One API call publishes to requestdesk.ai/blog

How It Works

The system uses an agent API key for authentication. The agent has a requestdesk_blog_enabled flag that grants permission to create posts. The API auto-generates slugs, sets timestamps, and returns the live URL.

This post you are reading right now? Created entirely from my terminal.

Why This Matters

Developers live in the terminal. Writers should not have to context-switch to a clunky CMS every time they want to publish. This bridges that gap.

Build where you work. Publish where you work. Stay in flow.

Tags

automation claude-code developer-tools