返回顶部
g

ghost-cms

Manage Ghost CMS content via the REST API. Create and publish posts, manage tags, and fetch site analytics. Supports both the Content API (public data) and Admin API (authenticated management).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
95
下载量
0
收藏
概述
安装方式
版本历史

ghost-cms

# Ghost CMS Manage Ghost CMS content via its REST API. Works with self-hosted and Ghost Pro sites. ## Configuration ```bash # Your Ghost site URL export GHOST_URL="https://example.com" # Admin API key (from Ghost Admin > Settings > Integrations) export GHOST_ADMIN_API_KEY="your-admin-api-key" # Optional: Content API key (for public data) export GHOST_CONTENT_API_KEY="your-content-api-key" ``` ## Get Posts ```bash bash skills/ghost-cms/scripts/posts.sh [--limit 10] [--page 1] [--status published] ``` Options: - `--limit` — Number of posts to return (default: 10) - `--page` — Page number (default: 1) - `--status` — Filter by status: `published`, `draft`, `scheduled`, `all` (default: published) - `--format` — Output format: `json` or `table` (default: json) ## Create a New Post ```bash bash skills/ghost-cms/scripts/new-post.sh \ --title "My New Post" \ --content "## Hello World This is the post content in Markdown." \ --tags "news,updates" \ --publish ``` Options: - `--title` — Post title (required) - `--content` — Post content in Markdown (required) - `--excerpt` — Short excerpt/summary (optional) - `--tags` — Comma-separated tag names (optional, auto-creates) - `--publish` — Publish immediately (omit to save as draft) - `--featured` — Mark as featured (optional) ## Manage Tags ```bash # List all tags bash skills/ghost-cms/scripts/tags.sh --list # Create a tag bash skills/ghost-cms/scripts/tags.sh --create --name "Tutorials" --description "How-to guides" --slug "tutorials" # Get a tag by slug bash skills/ghost-cms/scripts/tags.sh --slug "tutorials" ``` ## Get Site Stats ```bash bash skills/ghost-cms/scripts/stats.sh ``` Returns: total posts, total published posts, total draft posts, total members, total paid members, total pageviews (if stats addon is enabled) ## Notes - Admin API key format: `[id]:[apiKey]` — split on the colon, use the second part as the bearer token - Tags are created automatically if they don't exist when creating posts - Ghost uses a `Content-Type: application/json` header for all API calls - All scripts output JSON by default; use `--format table` for human-readable output where supported

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ghost-cms-agent-1776022351 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ghost-cms-agent-1776022351 技能

通过命令行安装

skillhub install ghost-cms-agent-1776022351

下载 Zip 包

⬇ 下载 ghost-cms v1.0.0

文件大小: 7.08 KB | 发布时间: 2026-4-13 10:26

v1.0.0 最新 2026-4-13 10:26
Initial release—manage Ghost CMS via command-line scripts with REST API integration.

- Create, list, and publish posts (with tags and featured options)
- Manage tags: list, create, fetch by slug
- Fetch site analytics (post/member stats and pageviews)
- Supports both Content and Admin API (requires environment variable setup)
- Output formats: JSON (default) or table for supported commands

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部