← 返回
未分类 中文

Halo Blog

Use when managing a Halo blog instance via CLI, including authentication, posts, pages, themes, plugins, attachments, backups, comments, moments, notificatio...
用于通过 CLI 管理 Halo 博客实例,包括认证、文章、页面、主题、插件、附件、备份、评论、动态、通知等功能。
alex-shen1121
未分类 clawhub v1.0.5 1 版本 100000 Key: 无需
★ 0
Stars
📥 373
下载
💾 0
安装
1
版本
#blog#cli#content-management#halo#latest

概述

Halo Blog CLI Skill

A command-line tool skill for managing Halo blog instances.

Installation

npm install -g @halo-dev/cli

Verify:

halo --version
halo --help

Requirements: Node.js >= 22

Quick Start

  1. Authenticate (see references/auth.md):

```bash

halo auth login --profile local --url http://127.0.0.1:8090 --auth-type bearer --token

```

  1. Create a post from Markdown (see content.md for full format rules):

```bash

halo post import-markdown --file ./article.md --force

```

Markdown files are automatically converted to HTML by default; if conversion fails, falls back to raw Markdown import.

  1. List posts:

```bash

halo post list

```

Command Areas

AreaCommandsReference
---------------------------
Authenticationhalo auth *auth.md
Publishing RulesMarkdown → HTML workflow, front matter, visibility checkspublishing.md
Posts & Pageshalo post , halo single-page content.md
Themes, Plugins, Attachments, Backups, Momentshalo theme , halo plugin , halo attachment , halo backup , halo moment *operations.md
Comments & Notificationshalo comment , halo notification moderation.md
Public Searchhalo search *search.md

Shared Conventions

  • Profile selection: Use --profile when working with multiple Halo instances.
  • JSON output: Use --json for scripted or automated workflows.
  • Non-interactive safety: Destructive commands (delete, uninstall, overwrite imports) usually require --force when run non-interactively.
  • Basic Auth requirement: If using basic auth instead of bearer token, ensure Halo is started with --halo.security.basic-auth.disabled=false.

Common Workflows

Switch between environments

halo auth profile list
halo auth profile use production

Export and import a post

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

Publish via Markdown file

halo post import-markdown --file ./article.md --force

Upgrade all App Store themes/plugins

halo theme upgrade --all
halo plugin upgrade --all --yes

Search public content without login

halo search --keyword "halo" --url https://www.halo.run

Troubleshooting

  • Login fails with anonymous user: Basic auth is likely disabled on the Halo server. Add --halo.security.basic-auth.disabled=false to Halo startup flags.
  • Credential issues: Run halo auth profile doctor to diagnose keyring/config problems.
  • Profile not found: Ensure --profile matches an existing profile from halo auth profile list.

版本历史

共 1 个版本

  • v1.0.5 当前
    2026-05-07 15:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Feishu Group Company

alex-shen1121
配置飞书多机器人公司群,使一个协调机器人(如 company‑ceo)负责处理普通群消息,而专业机器人仅在特定情况下回复。
★ 0 📥 376

WuyinKeji GPT-Image-2

alex-shen1121
通过速创科技的WuyinKeji GPT-Image-2 API生成图像,支持文字生成图像、参考图像、多种宽高比以及异步结果轮询。
★ 0 📥 437

MiniMax Token Plan Quota

alex-shen1121
检查 MiniMax Token 计划的剩余配额、使用窗口重置时间以及各模型的剩余限额,特别适用于中国大陆的 Token 计划流程。
★ 0 📥 414