返回顶部
g

ghost-cmsGhost 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
安全检测
已通过
120
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

ghost-cms

Ghost CMS

通过其REST API管理Ghost CMS内容。适用于自托管和Ghost Pro站点。

配置

bash

你的Ghost站点URL


export GHOST_URL=https://example.com

管理API密钥(来自Ghost管理后台 > 设置 > 集成)

export GHOSTADMINAPI_KEY=your-admin-api-key

可选:内容API密钥(用于公开数据)

export GHOSTCONTENTAPI_KEY=your-content-api-key

获取文章

bash
bash skills/ghost-cms/scripts/posts.sh [--limit 10] [--page 1] [--status published]

选项:

  • - --limit — 返回文章数量(默认:10)
  • --page — 页码(默认:1)
  • --status — 按状态筛选:published、draft、scheduled、all(默认:published)
  • --format — 输出格式:json 或 table(默认:json)

创建新文章

bash
bash skills/ghost-cms/scripts/new-post.sh \
--title 我的新文章 \
--content ## 你好,世界

这是Markdown格式的文章内容。 \
--tags 新闻,更新 \
--publish

选项:

  • - --title — 文章标题(必填)
  • --content — Markdown格式的文章内容(必填)
  • --excerpt — 简短摘要/概述(可选)
  • --tags — 逗号分隔的标签名称(可选,自动创建)
  • --publish — 立即发布(省略则保存为草稿)
  • --featured — 标记为精选(可选)

管理标签

bash

列出所有标签


bash skills/ghost-cms/scripts/tags.sh --list

创建标签

bash skills/ghost-cms/scripts/tags.sh --create --name 教程 --description 操作指南 --slug tutorials

通过slug获取标签

bash skills/ghost-cms/scripts/tags.sh --slug tutorials

获取站点统计

bash
bash skills/ghost-cms/scripts/stats.sh

返回:总文章数、已发布文章总数、草稿文章总数、总会员数、付费会员总数、总页面浏览量(如果启用了统计插件)

注意事项

  • - 管理API密钥格式:[id]:[apiKey] — 以冒号分割,使用第二部分作为Bearer令牌
  • 创建文章时,如果标签不存在,会自动创建
  • Ghost对所有API调用使用Content-Type: application/json头
  • 所有脚本默认输出JSON格式;在支持的情况下使用--format table获取人类可读的输出

标签

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

下载

⬇ 下载 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
返回顶部