CLI¶
| Command | Description |
|---|---|
standalone [--data DIR] |
Run everything in one process: the API, the admin UI, the worker, the dispatcher and the scheduler, with the database job queue (no Redis). SQLite database, uploads and a generated JWT secret go to DIR (default data, or GOHEAD_DATA_DIR) unless configured. See Standalone. |
start |
Run the HTTP API and the embedded admin UI: applies pending migrations (unless auto_migrate is false), seeds roles, creates the configured first admin. Graceful shutdown on SIGINT/SIGTERM. |
migrate |
Apply pending database migrations and exit. |
migrate status |
List migrations and when they ran; exits non-zero if some are pending. |
migrate down [--steps N] |
Revert the last N migrations (only those that can be undone). |
admin create --username U --email E --password-stdin |
Create an administrator (password: 12+ characters, from stdin). |
admin set-password --username U --password-stdin |
Replace a user's password, e.g. to recover the admin account. |
worker |
Run agent jobs and webhook deliveries (10 concurrent jobs). |
dispatcher |
Turn content events from the events queue into agent jobs and webhook deliveries. |
scheduler |
Enqueue cron-triggered agent runs; reloads schedules every minute. Run one instance. |
version |
Print version, commit and build date. |
All long-running commands accept -c, --config (default config.yaml, optional) and read
GOHEAD_* environment variables, see configuration.