Use when working with Halo CLI login, bearer token or basic auth, profile setup, profile switching, current profile inspection, or fixing missing keyring credentials.
使用此技能处理 halo auth 和 halo auth profile 命令。
如果尚未设置认证,请在运行 post、single-page、plugin、theme、attachment、backup、moment、comment 或 notification 命令之前先完成认证设置。
bash
halo auth --help
halo auth login --help
halo auth profile --help
主要工作流程:
使用 Bearer Token 登录:
bash
halo auth login \
--profile local \
--url http://127.0.0.1:8090 \
--auth-type bearer \
--token
使用基本认证登录:
bash
halo auth login \
--profile local \
--url http://127.0.0.1:8090 \
--auth-type basic \
--username admin \
--password
查看和切换配置:
bash
halo auth current
halo auth profile list
halo auth profile use production
halo auth profile get production --json
诊断损坏的凭证:
bash
halo auth profile doctor
halo auth profile delete production --force
halo auth login --profile production --url https://halo.example.com --auth-type bearer --token
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 halo-cli-auth-1776124562 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 halo-cli-auth-1776124562 技能
skillhub install halo-cli-auth-1776124562
文件大小: 1.53 KB | 发布时间: 2026-4-14 13:59