闲社服务运行正常AI智能体自动化平台
h

终端管理Halo内容

技能标识:halo-cli-content

Use when managing Halo posts or single pages from the terminal, including list, get, create, update, delete, open, export-json, import-json, categories, tags, and content files.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.1
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

终端管理Halo内容

Halo CLI 内容

使用此技能处理 halo post 和 halo single-page 命令。

如果认证可能尚未就绪,请先运行 halo auth current 或加载 halo-cli-auth。

命令

bash
halo post --help
halo single-page --help

文章工作流:

  • - list
  • get <名称>
  • open <名称>
  • create
  • update <名称>
  • delete <名称>
  • export-json <名称>
  • import-json
  • category(子命令)
  • tag(子命令)

单页工作流:

  • - list
  • get <名称>
  • open <名称>
  • create
  • update <名称>
  • delete <名称>
  • export-json <名称>
  • import-json

文章

列出和查看:

bash
halo post list
halo post list --keyword halo --publish-phase PUBLISHED
halo post get my-post --json

创建或更新:

bash
halo post create --title Hello Halo --content # Hello Halo --publish true
halo post create --title Hello Halo --content

Hello Halo

--raw-type html
halo post update my-post --title Updated title
halo post update my-post --content Updated content --publish true
halo post update my-post --new-name my-post-renamed

支持分类的创建/更新:

bash
halo post create \
--title Release Notes \
--content Release notes content \
--categories News,CLI \
--tags Halo,Release

JSON 往返:

bash
halo post export-json my-post --output ./post.json
halo post import-json --file ./post.json --force

Markdown 往返:

bash
halo post export-markdown my-post
halo post export-markdown my-post --output ./post.md
halo post import-markdown --file ./post.md --force

规则:

  • - --raw-type 默认为 markdown,因此 --content 会被渲染为 Markdown,除非你设置 --raw-type html。
  • 直接内联更新时优先使用 --content,或使用 import-markdown 处理 Markdown 文件。
  • open 仅适用于已发布的内容;使用 --json 时会返回 URL。
  • 导入负载必须包含 post.metadata.name。
  • 导入负载必须包含 content.raw 或 content.content。

文章分类

管理文章分类:

bash
halo post category list
halo post category list --keyword Technology
halo post category get category-abc123
halo post category create --display-name Technology --slug tech
halo post category create --display-name News --description Latest news --priority 100
halo post category update category-abc123 --display-name Tech News
halo post category delete category-abc123 --force

文章标签

管理文章标签:

bash
halo post tag list
halo post tag list --keyword Halo
halo post tag get tag-abc123
halo post tag create --display-name Halo --slug halo --color #1890ff
halo post tag update tag-abc123 --display-name Halo CMS
halo post tag delete tag-abc123 --force

单页

列出和查看:

bash
halo single-page list
halo single-page get about --json

创建或更新:

bash
halo single-page create --title About --content # About --publish true
halo single-page create --title About --content

Hello Halo

--raw-type html
halo single-page update about --title About Halo
halo single-page update about --new-name about-page

JSON 往返:

bash
halo single-page export-json about --output ./about.json
halo single-page import-json --file ./about.json --force

规则:

  • - 命令名称为 single-page,而非 singlePage。
  • 单页不使用文章分类/标签工作流。
  • single-page 没有 --pinned 选项。
  • 导入负载必须包含 page.metadata.name。

安全与自动化

  • - 当存在多个 Halo 配置文件时,使用 --profile <名称>。
  • 在脚本中使用 --json。
  • 对于破坏性的非交互式命令(如 delete 或覆盖式导入),使用 --force。
  • 在目标资源不确定时,先读取当前状态再进行修改。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 halo-cli-content-1776124515 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 halo-cli-content-1776124515 技能

通过命令行安装

skillhub install halo-cli-content-1776124515

下载

⬇ 下载 halo-cli-content v0.1.1(免费)

文件大小: 2.03 KB | 发布时间: 2026-4-14 11:41

v0.1.1 最新 2026-4-14 11:41
- Added documentation for new subcommands: post category and post tag, including list, get, create, update, and delete workflows.
- Described post content input enhancements: support for --content (inline) and --raw-type for Markdown or HTML, and new import/export-markdown commands.
- Clarified rules for content type handling and recommended usage patterns for --content and file-based imports.
- Expanded examples and command references for posts, categories, tags, and single pages.
- No changes to underlying code or API, documentation only.
返回顶部