A command-line tool for managing Halo instances.
npm install -g @halo-dev/cliThe installed binary is:
haloCheck the version:
halo --version- Node.js
>= 22
halo auth login \
--profile local \
--url http://127.0.0.1:8090 \
--auth-type bearer \
--token <your-token>Before using Basic Auth, make sure your Halo instance enables it.
Start Halo with:
--halo.security.basic-auth.disabled=falseThen login:
halo auth login \
--profile local \
--url http://127.0.0.1:8090 \
--auth-type basic \
--username admin \
--password <your-password>halo auth current
halo auth profile listGet help:
halo --help
halo auth --help
halo post --help
halo single-page --helpExample root help output:
halo/1.0.0
Usage:
$ halo <command> [options]
Commands:
auth Authentication commands
post Post management commands
single-page Single page management commands
search Search public site content
plugin Plugin management commands
theme Theme management commands
attachment Attachment management commands
backup Backup management commands
moment Moment management commands
comment Comment management commands
notification Notification management commands
For more info, run any command with the `--help` flag:
$ halo auth --help
$ halo post --help
$ halo single-page --help
$ halo search --help
$ halo plugin --help
$ halo theme --help
$ halo attachment --help
$ halo backup --help
$ halo moment --help
$ halo comment --help
$ halo notification --help
Options:
-h, --help Display this message
-v, --version Display version number
Use a specific saved profile:
halo post list --profile productionUse JSON output for scripting:
halo post list --json
halo single-page get about --jsonHalo CLI currently includes these command groups:
authpostsingle-pagesearchpluginthemeattachmentbackupmomentcommentnotification
For details on any command, use --help.
This package also ships with reusable skills under the root skills/ directory.
Included skills:
halo-sharedhalo-authhalo-contenthalo-operationshalo-moderation-notifications
Add the skills with:
npx skills add halo-dev/cliRecommended starting point after installation:
skills/halo-shared/SKILL.mdProfile metadata is stored in:
$HALO_CLI_CONFIG_DIR/config.jsonifHALO_CLI_CONFIG_DIRis set- otherwise
$XDG_CONFIG_HOME/halo/config.json - otherwise
~/.config/halo/config.json
Credentials are stored in the system keyring.
Useful commands:
pnpm typecheck
vp lint
vp test
vp packBefore publishing, verify the package contents:
npm pack --dry-runThe published package should include:
dist/skills/README.mdLICENSE
MIT