Menu
Baba docs

CLI reference

baba <command> [flags]

Flags go before or after arguments, with one or two dashes (-config and --config are the same). Every command exits with 1 and prints baba: <error> on stderr when it fails.

CommandWhat it does
baba setupInteractive wizard, writes config.json (Getting started)
baba validateSends a test alert through every notifier; fails if any refuses it
baba startRuns the monitor in the foreground until SIGINT or SIGTERM
baba installRegisters and starts the background service
baba restartRestarts the background service
baba uninstallRemoves the background service; --purge also deletes /var/lib/baba
baba logsPrints the service log; -f follows it, -n sets the line count (100)
baba healthChecks config, incident history and metrics; exits 1 if any fails
baba list incidentsLists incidents, newest first; -n sets the limit (50)
baba get incident <id>Shows one incident and its notifications
baba updateReplaces the binary with the latest release (Updates)
baba versionPrints the version; also -v and --version
baba helpPrints the command list, as does baba alone

Flags

FlagCommandsDefault
--config <path>setup, validate, start, health, list, get$BABA_CONFIG_PATH, else /var/lib/baba/config.json
-n, --lines, --limitlogs (lines), list incidents (incidents)100, 50
-f, --followlogsoff
--purgeuninstalloff

health

✓ config
✓ incidents
✓ system
  • config: the config loads and validates.
  • incidents: the history file exists and parses. It's created by the first baba start, so this fails on a fresh install.
  • system: memory stats are readable. In Docker, a failure here usually means --pid=host is missing.

The Docker image uses it as its HEALTHCHECK.

This guide lives in the project repo: edit it there, and this page follows within a day.