Start here when the task says "use Halo CLI" but does not yet say whether it is auth, content, search, operations, or moderation.
Install globally:
npm install -g @halo-dev/cli
Binary name:
halo
Check version and top-level help:
halo --version
halo --help
authpostsingle-pagesearchpluginthemeattachmentbackupmomentcommentnotificationhalo auth login to create a profile.--profile when more than one profile exists.--json when output is meant for automation or follow-up parsing.--force.--help before guessing flags for a specific command.Most areas require auth.
The main public workflow is halo search, which can use a direct site URL without login:
halo search --keyword "halo" --url https://www.halo.run
Profile metadata is stored in:
$HALO_CLI_CONFIG_DIR/config.json if HALO_CLI_CONFIG_DIR is set$XDG_CONFIG_HOME/halo/config.json~/.config/halo/config.jsonCredentials are stored in the system keyring.
halo-cli-auth for login, current profile, profile list/use/delete, and credential repair.halo-cli-content for posts and single pages.halo-cli-search for public site search.halo-cli-operations for themes, plugins, attachments, backups, and moments.halo-cli-moderation-notifications for comments, replies, and notifications.共 1 个版本