该技能用于通过终端操作 Halo 的主题、插件、附件、备份和瞬间。可用 --help 查看各子命令:halo theme、halo plugin、halo attachment、halo backup、halo moment。
主题方面,支持 list、current、get,以及 install(--file 本地或 --url 远程)、activate、reload、upgrade(--online 走应用商店)、delete --force。list 会标记当前激活主题;升级全部可用 halo theme upgrade --all --online --yes。
插件方面,支持 list、get、install(--file、--url 或 --app-id 从应用商店)、enable、disable --force、upgrade(--online)、uninstall --force;disable、upgrade、uninstall 属变更性操作。安装或升级用 --url 且远程主机非 www.halo.run 时需确认,--yes 可跳过以用于自动化。
附件方面,支持 list、get、upload(--file 或 --url,二者只能选一)、download(--output)、delete --force;TTY 下显示进度,除非启用 --json。
备份方面,支持 list、get、create(可带可选名称,--wait 轮询至完成或超时,--wait-timeout 设超时,--format 设格式默认 zip,--expires-at 用 ISO-8601)、download --output、delete --force。
瞬间方面,支持 list、get、create --content、update、delete --force;--visible 接受 PUBLIC 或 PRIVATE,--tags 逗号分隔,--release-time 接受 ISO-8601 时间,--approved 接受 true 或 false。
安全与自动化:用 --profile 指定目标环境,用 --json 输出结构化结果,用 --force 执行非交互式破坏性操作;批量或破坏性维护前优先用 list 或 get 查看。具体定价与平台限制资料未提供。