Agent skill · magnus919
ghost-cli
Manage Ghost CMS content from the terminal — create and list posts, pages,
What it needs
About 4k tokens when loaded.
What this skill does
ghost-cli — Ghost CMS from the Terminal Manage content on a Ghost CMS site: view site info, list and create posts and pages, manage tags — all via the Ghost Admin API (v5/v6). Setup 1. Get your Admin API key from Ghost Admin → Settings → Advanced → Integrations (or Ghost Admin → Integrations). Create a custom integration to get a key in id:secret format. 2. Set these environment variables: --help and --dry-run work without credentials (lazy auth). Essential Commands site — Get site information Shows: site title, URL, description. posts — List blog posts Shows: title, status, slug, and last-updated date for each post. create-post — Create a new blog post Creates the post and returns its title, slug, and status. pages — List pages Shows: title, status, slug, and last-updated date for each page. tags — List tags Shows: tag name, slug, and number of posts using each tag. Global Flags These flags work anywhere in the command — before or after the subcommand: Flag Effect ------ -------- --json Output machine-readable JSON instead of human-readable text --dry-run Show what API call would be made without executing it --quiet Suppress non-essential diagnostic output --verbose Enable verbose/debug logging Known Gotchas Admin API key format — The GHOSTADMINKEY must be in id:secret format (e.g. 644a4c1a2b3c4d5e6f7g8h9i:abcd1234efgh5678ijkl9012). This is the format Ghost generates when you create a Custom Integration. A plain token or JWT will not work. JWT token auto-generated — The CLI generates a short-lived JWT (HS256, 5-minute expiry) internally from the Admin API key on each request. You don't need to create or manage JWT tokens yourself. 5-minute JWT window — Each JWT is valid for 300 seconds (5 minutes). If your system clock is significantly skewed, requests may fail. Ensure NTP is synced. API version v6 — The CLI sends Accept-Version: v6.0 on all requests, targeting the Ghost Admin API v6. Response shapes follow the v6 spec. May also work against v5 sites. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills magnus919/ghost-cli